summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* main: use sysctl_writef() where appropriateLennart Poettering2019-07-131-18/+2
|
* shutdown: merge variable declaration lines a bitLennart Poettering2019-07-131-4/+2
|
* shutdown: bump kmsg log level to LOG_WARNING onlyLennart Poettering2019-07-131-8/+10
| | | | Fixes: #12337
* shutdown: rework bump_sysctl_printk_log_level() to use sysctl_writef()Lennart Poettering2019-07-131-8/+9
|
* sysctl: add sysctl_writef() helperLennart Poettering2019-07-132-0/+16
|
* shutdown: use "int" for log level typeLennart Poettering2019-07-131-6/+7
| | | | | | | | Let's remove some unnecessary confusion around signed/unsigned types for log levels. Let's just stick to signed, because that is what glibc generally appears to use. While we are at it, add explicit logging for all error causes.
* killall: bump log message about unkilled processes to LOG_WARNINGLennart Poettering2019-07-131-10/+13
| | | | | By raising this, we can raise the kernel kmsg log level safely, and still see these messages.
* alloc-util: drop _alloc_ decorator from memdup_suffix0()Lennart Poettering2019-07-131-1/+1
| | | | Fixes: https://github.com/systemd/systemd/pull/13034#issuecomment-510801671
* semaphore: avoid running autopkgtest with --apt-upgradeEvgeny Vereshchagin2019-07-131-13/+3
| | | | | by getting rid of the cache and upgrading images once every time they are built from scratch.
* Merge pull request #13036 from poettering/more-doc-fixesZbigniew Jędrzejewski-Szmek2019-07-125-21/+48
|\ | | | | Six documentation fixes
| * man: add example for setting multiple properties at onceLennart Poettering2019-07-121-5/+9
| | | | | | | | Fixes: #4908
| * man: CPUShares= is so 2015Lennart Poettering2019-07-121-1/+1
| | | | | | | | | | Let's update our example to the brave new cgroupsv2 world, and use CPUWeight= in our example.
| * man: document that WakeSystem= requires privsLennart Poettering2019-07-121-7/+8
| | | | | | | | Fixes: #11677
| * man: document that "systemd-analyze blame/critical-chain" is not useful to ↵Lennart Poettering2019-07-121-2/+13
| | | | | | | | | | | | track down job latency Fixes: #12272
| * man: be more explicit that Type=oneshot services are not "active" after startingLennart Poettering2019-07-121-5/+11
| | | | | | | | Fixes: #13000
| * man: document that the supplementary groups list is initialized from User='s ↵Lennart Poettering2019-07-121-1/+6
|/ | | | | | database entry Fixes: #12936
* Merge pull request #13034 from poettering/memdup-suffix0-multiply-fixoLennart Poettering2019-07-122-5/+7
|\ | | | | memdup_suffix0_multiply fix
| * test: modernize test-alloc-util.c test a bitLennart Poettering2019-07-121-4/+4
| |
| * alloc-util: drop _alloc_(2, 3) decorator from memdup_suffix0_multiply()Lennart Poettering2019-07-121-1/+3
| | | | | | | | | | | | | | This decorator tells compilers that the memory we return is shorter than it actually is, thus triggering misleading bad memory access complaints. Fixes: #13026
* | util-lib: fix commentLennart Poettering2019-07-121-3/+2
|/ | | | | | As suggested by @ralt. Fixes: #12896
* Merge pull request #13022 from keszybz/coverity-cleanupsLennart Poettering2019-07-127-49/+55
|\ | | | | Coverity cleanups
| * shared/ask-password-api: backspace all chars at onceZbigniew Jędrzejewski-Szmek2019-07-121-23/+23
| | | | | | | | | | | | | | | | | | We'd call loop_write() separately for each char. Let's be nice to serial console users, and write the full string in one go. Coverity was complaining that we're not checking the return value from loop_write(). Rework the code a bit and add voidify. CID#1402323.
| * test-process-util: invert reporting to make sure that we're not dividing by 0Zbigniew Jędrzejewski-Szmek2019-07-121-2/+2
| | | | | | | | CID#1402334.
| * udevd: add helper with error handling to synthesize "change" eventsZbigniew Jędrzejewski-Szmek2019-07-121-13/+16
| | | | | | | | | | Coverity was unhappy that we ignore the return value from write_string_file(). We should at least warn. CID#1302373.
| * test: minor modernizationZbigniew Jędrzejewski-Szmek2019-07-122-5/+5
| | | | | | | | | | | | | | | | | | Coverity was complaining that read() does not terminate the data. But we did that termination earlier, so covirity is wrong (CID#1402306, CID#1402340). Let's modernize the style a bit nevertheless. (size_t) cast is needed to avoid the warning about comparison, iff the value is not a constant.
| * test-alloc-util: assert on the return value to appease coverityZbigniew Jędrzejewski-Szmek2019-07-111-1/+1
| | | | | | | | | | Coverity is right that we should check the return value… CID#1403006.
| * pid1: shorten dump output a bit by not repeating unit id twiceZbigniew Jędrzejewski-Szmek2019-07-111-5/+8
| | | | | | | | | | | | | | | | | | Most units have just one name, but we'd print it twice: -> Unit systemd-sysctl.service: ... Name: systemd-sysctl.service Let's only print the "main" name once, and call the other names Aliases.
* | Merge pull request #13031 from yuwata/network-route-type-local-12975-2Yu Watanabe2019-07-128-52/+242
|\ \ | | | | | | network: make Route.Type= support local or friends
| * | test-network: add tests for route with type local, multicast, anycast, or ↵Yu Watanabe2019-07-122-0/+33
| | | | | | | | | | | | broadcast
| * | network: also show route protocol in debugging logsYu Watanabe2019-07-123-7/+27
| | |
| * | network: use string table for route protocolYu Watanabe2019-07-121-6/+11
| | |
| * | network: use string table to parse route table or scopeYu Watanabe2019-07-122-16/+18
| | |
| * | network: show route scope, table, and type in debugging logsYu Watanabe2019-07-123-4/+86
| | |
| * | network: update log messageYu Watanabe2019-07-121-9/+9
| | | | | | | | | | | | | | | Follow-up for 7f474ed78df138677557fb43701efeb6e2588c6f and 44e891bbf6908e494856fcf3011e88a70a12e087.
| * | network: make Route.Type= support local, broadcast, anycast, multicast, nat, ↵Yu Watanabe2019-07-123-1/+29
| | | | | | | | | | | | | | | | | | and xresolve Closes #12975.
| * | network: use string table to parse route typeYu Watanabe2019-07-122-13/+21
| | |
| * | test-network: test more bridge propertiesYu Watanabe2019-07-123-5/+17
| | | | | | | | | | | | Imported from networkd-test.py
* | | tree-wide: get rid of strappend()Lennart Poettering2019-07-1268-146/+115
|/ / | | | | | | | | It's a special case of strjoin(), so no need to keep both. In particular as typing strjoin() is even shoert than strappend().
* | Merge pull request #12971 from yuwata/network-reassign-static-routesYu Watanabe2019-07-128-20/+100
|\ \ | | | | | | network: reassign static routes and process reply address messages
| * | test-network: add test for route reassignmentYu Watanabe2019-07-113-2/+46
| | |
| * | network: re-assign static routes when dynamic address is updatedYu Watanabe2019-07-112-0/+4
| | | | | | | | | | | | | | | | | | Follow-up for b5799eeb0787deacb30d5984f6ac78f88f23b97e. Closes #7354.
| * | network: process address reply messageYu Watanabe2019-07-113-9/+33
| | |
| * | network: rework route_scope_from_address()Yu Watanabe2019-07-111-2/+2
| | |
| * | util: introduce in4_addr_equal()Yu Watanabe2019-07-112-1/+9
| | |
| * | network: route_configure() do nothing when it returns 0Yu Watanabe2019-07-111-6/+6
| | |
* | | Merge pull request #13024 from poettering/errno-or-elseYu Watanabe2019-07-1217-58/+71
|\ \ \ | | | | | | | | Errno or else
| * | | tree-wide: make use of errno_or_else() everywhereLennart Poettering2019-07-1116-58/+60
| | | |
| * | | errno-util: add new errno_or_else() helperLennart Poettering2019-07-111-0/+11
|/ / /
* | | Merge pull request #13025 from poettering/tmpfiles-fixoFrantisek Sumsal2019-07-111-2/+2
|\ \ \ | | | | | | | | unbreak the build
| * | | tmpfiles: use path_join() where it makes senseLennart Poettering2019-07-111-1/+1
| | | |