summaryrefslogtreecommitdiffstats
path: root/units (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-07-14Update NEWSBoucman1-3/+3
2019-07-14NEWS: add some notes for v243Lennart Poettering1-13/+190
Let's get this ball rolling.
2019-07-14man: offline-updates: make dependence on system-update.target explicitMichael Zhivich1-1/+1
Current operation of system-update-cleanup.service (removing /system-update symlink and rebooting) implies that any update must complete *before* system-update.target is reached. Update recommendations to include explicitly setting Before=system-update.target in services that use offline-updates mode. Signed-off-by: Michael Zhivich <mzhivich@akamai.com>
2019-07-14locale-util: suppress non-UTF-8 locales when enumerating themLennart Poettering2-0/+25
Let's hide non-UTF-8 locales by default. It's 2019 after all. Let's add an undocumented env var to reenable listing them though. This should substantially shorten the list of choices we offer users, and only show realistic choices. note that only firstboot and localectl make use of this information, and both allow configuration of values outside of these lists, hence all this change does is hide legacy options, but they are still available if you know what you do, and that's how it should be.
2019-07-14locale-util: normalize UTF-8 locale namesLennart Poettering1-2/+36
Let's generate out lists in the format people expect.
2019-07-14network: do not change to configuring state needlesslyYu Watanabe1-9/+14
When DHCP or any other dynamic addresses are changed, then link_request_set_routes() is invoked, and even if no static routes are configured, the operational state is needlessly changed to configuring state. This makes the state is changed only when static routes are configured.
2019-07-14po: Fix typo in German translationJohannes Schmitz1-1/+1
2019-07-14po: update Polish translationPiotr Drąg1-9/+17
2019-07-13udev: make Match.OriginalName=* matches all interfacesYu Watanabe1-2/+2
Fixes #13035.
2019-07-13firstboot: use color in welcome textLennart Poettering1-4/+15
2019-07-13firstboot: suppress locale menu if there's nothing to choose fromLennart Poettering1-14/+35
2019-07-13main: use sysctl_writef() where appropriateLennart Poettering1-18/+2
2019-07-13shutdown: merge variable declaration lines a bitLennart Poettering1-4/+2
2019-07-13shutdown: bump kmsg log level to LOG_WARNING onlyLennart Poettering1-8/+10
Fixes: #12337
2019-07-13shutdown: rework bump_sysctl_printk_log_level() to use sysctl_writef()Lennart Poettering1-8/+9
2019-07-13sysctl: add sysctl_writef() helperLennart Poettering2-0/+16
2019-07-13shutdown: use "int" for log level typeLennart Poettering1-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.
2019-07-13killall: bump log message about unkilled processes to LOG_WARNINGLennart Poettering1-10/+13
By raising this, we can raise the kernel kmsg log level safely, and still see these messages.
2019-07-13alloc-util: drop _alloc_ decorator from memdup_suffix0()Lennart Poettering1-1/+1
Fixes: https://github.com/systemd/systemd/pull/13034#issuecomment-510801671
2019-07-13semaphore: avoid running autopkgtest with --apt-upgradeEvgeny Vereshchagin1-13/+3
by getting rid of the cache and upgrading images once every time they are built from scratch.
2019-07-12tree-wide: some more [static] related fixesLennart Poettering10-12/+30
let's add [static] where it was missing so far Drop [static] on parameters that can be NULL. Add an assert() around parameters that have [static] and can't be NULL hence. Add some "const" where it was forgotten.
2019-07-12util-lib: [static] array argument sizes are apparently not OK for NULL ↵Lennart Poettering1-4/+10
parameters Let's drop the 'static' logic when a parameter can be NULL. I think asan/ubsan are right here, judging by the C99 spec language: "A declaration of a parameter as ‘‘array of type’’ shall be adjusted to ‘‘qualified pointer to type’’, where the type qualifiers (if any) are those specified within the [ and ] of the array type derivation. If the keyword static also appears within the [ and ] of the array type derivation, then for each call to the function, the value of the corresponding actual argument shall provide access to the first element of an array with at least as many elements as specified by the size expression." If we specify NULL, then we certainly don't pvode access to any valid array. Fixes: #13039
2019-07-12man: add example for setting multiple properties at onceLennart Poettering1-5/+9
Fixes: #4908
2019-07-12man: CPUShares= is so 2015Lennart Poettering1-1/+1
Let's update our example to the brave new cgroupsv2 world, and use CPUWeight= in our example.
2019-07-12man: document that WakeSystem= requires privsLennart Poettering1-7/+8
Fixes: #11677
2019-07-12man: document that "systemd-analyze blame/critical-chain" is not useful to ↵Lennart Poettering1-2/+13
track down job latency Fixes: #12272
2019-07-12man: be more explicit that Type=oneshot services are not "active" after startingLennart Poettering1-5/+11
Fixes: #13000
2019-07-12man: document that the supplementary groups list is initialized from User='s ↵Lennart Poettering1-1/+6
database entry Fixes: #12936
2019-07-12util-lib: fix commentLennart Poettering1-3/+2
As suggested by @ralt. Fixes: #12896
2019-07-12test: modernize test-alloc-util.c test a bitLennart Poettering1-4/+4
2019-07-12alloc-util: drop _alloc_(2, 3) decorator from memdup_suffix0_multiply()Lennart Poettering1-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
2019-07-12tree-wide: get rid of strappend()Lennart Poettering68-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().
2019-07-12test-network: add tests for route with type local, multicast, anycast, or ↵Yu Watanabe2-0/+33
broadcast
2019-07-12network: also show route protocol in debugging logsYu Watanabe3-7/+27
2019-07-12network: use string table for route protocolYu Watanabe1-6/+11
2019-07-12network: use string table to parse route table or scopeYu Watanabe2-16/+18
2019-07-12network: show route scope, table, and type in debugging logsYu Watanabe3-4/+86
2019-07-12network: update log messageYu Watanabe1-9/+9
Follow-up for 7f474ed78df138677557fb43701efeb6e2588c6f and 44e891bbf6908e494856fcf3011e88a70a12e087.
2019-07-12network: make Route.Type= support local, broadcast, anycast, multicast, nat, ↵Yu Watanabe3-1/+29
and xresolve Closes #12975.
2019-07-12network: use string table to parse route typeYu Watanabe2-13/+21
2019-07-12test-network: test more bridge propertiesYu Watanabe3-5/+17
Imported from networkd-test.py
2019-07-12shared/ask-password-api: backspace all chars at onceZbigniew Jędrzejewski-Szmek1-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.
2019-07-12test-process-util: invert reporting to make sure that we're not dividing by 0Zbigniew Jędrzejewski-Szmek1-2/+2
CID#1402334.
2019-07-12udevd: add helper with error handling to synthesize "change" eventsZbigniew Jędrzejewski-Szmek1-13/+16
Coverity was unhappy that we ignore the return value from write_string_file(). We should at least warn. CID#1302373.
2019-07-12test: minor modernizationZbigniew Jędrzejewski-Szmek2-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.
2019-07-11tree-wide: make use of errno_or_else() everywhereLennart Poettering16-58/+60
2019-07-11errno-util: add new errno_or_else() helperLennart Poettering1-0/+11
2019-07-11tmpfiles: use path_join() where it makes senseLennart Poettering1-1/+1
2019-07-11tmpfiles: fix buildLennart Poettering1-1/+1
After I merged #12750 we don't build anymore, since the merged PR (which passed CI) uses prefix_root() which doesn't exist anymore. Let's fix that.
2019-07-11tests: turn on the "object-size" UBSan check on FuzzitEvgeny Vereshchagin1-2/+2
Now that 2eb1c19881678851a7e is merged it should be safe.