summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-04-24fstab-generator: do not skip Before= ordering for noauto mountpoints (#5547)Ivan Shapovalov
2017-04-24sd-journal: return SD_JOURNAL_INVALIDATE only if journal files were actually ↵Michal Sekletar
deleted/moved (#5580) When caller invokes sd_journal_open() we usually open at least one directory with journal files. add_root_directory() function increments current_invalidate_counter. After sd_journal_open() returns current_invalidate_counter != last_invalidate_counter. After caller waits for journal events (e.g. waits for new messages in journal) then it usually calls sd_journal_process(). However, on first call to sd_journal_process(), function determine_change() returns SD_JOURNAL_INVALIDATE even though no journal files were deleted/moved. This is because current_invalidate_counter != last_invalidate_counter. After the fix we make sure counters has the same value before we begin processing inotify events.
2017-04-24redirect stdout/stderr back when closing the pager (#5661)Matija Skala
2017-04-24load-fragment: resolve specifiers in BindPaths/BindReadOnlyPaths (#5687)Danielle Church
2017-04-24man: clarify udevadm monitor --tag-match/--filter-match (#5726)Julian Mehne
--tag-match only filters tags, not properties --tag-match only has an effect on udev events --subsystem-match filters both event types
2017-04-24man: systemd.journal-fields: Note about originator PID (#5724)Michal Koutný
2017-04-23man: fix journalctl --new-id128 option name (#5786)Lucas Werkmeister
--new-id works because it’s an unambiguous prefix, but the full option name is --new-id128. (#5381 did the same in one other manpage, but I didn’t check for other manpages using the abbreviated version back then.)
2017-04-23doc: fix incorrect reference (#5784)Marcin Bachry
2017-04-23Merge pull request #5774 from keszybz/printf-annotationsDjalal Harouni
Printf annotation improvements
2017-04-21Merge pull request #5756 from keszybz/make-cleanupsMartin Pitt
Various meson-independent cleanups from the meson patchset
2017-04-21kernel-install: remove unneeded modules.* files created by depmod (#5766)Yu Watanabe
Fixes #5765.
2017-04-21coredump: fix non-literal string used in printfZbigniew Jędrzejewski-Szmek
This was exposed by the previous commit. This could be potentially unpleasant, but we are saved by the fact that this code path was only taken for journald crashes, where we control COMM and know that it doesn't contain any special characters. Use log_dispatch which does not do any format processing to push the message out.
2017-04-21basic/log: expose log_dispatchZbigniew Jędrzejewski-Szmek
This is useful when we want to avoid printf formatting on the message. It's nicer than using log_struct with "%s" as the format, because printf is slow and with a large message (like from a backtrace) this would require extra unnecessary memory. I'm not exposing all the fields in the wrapper: only level and errno. Those are the most likely to be useful.
2017-04-21tree-wide: mark log_struct with _printf_ and fix falloutZbigniew Jędrzejewski-Szmek
log_struct takes multiple format strings, each one followed by arguments. The _printf_ annotation is not sufficiently flexible to express this, but we can still annotate the first format string, though not its arguments (because their number is unknown). With the annotation, the places which specified the message id or similar as the first pattern cause a warning from -Wformat-nonliteral. This can be trivially fixed by putting the MESSAGE= first. This change will help find issues where a non-literal is erroneously used as the pattern.
2017-04-21µhttpd-util: use #pragma to silence warning about nonliteral patternZbigniew Jędrzejewski-Szmek
This is safe, because we're taking a pattern which was already marked with _printf_ and appending a literal string.
2017-04-21bus: include sd-{bus,messages}.h the same as other systemd headersZbigniew Jędrzejewski-Szmek
This is our own header, we should include use the local-include syntax ("" not <>), to make it clear we are including the one from the build tree. All other includes of files from src/systemd/ use this scheme.
2017-04-21microhttpd-util: silence warnings about deprecated optionsZbigniew Jędrzejewski-Szmek
C.f. 21b6ff368438bd3e809c2fabe73038eb305df296.
2017-04-21test-exec-util: drop duplicate constZbigniew Jędrzejewski-Szmek
gcc-7 warns about this with -Wduplicate-decl-specifier.
2017-04-21basic/random-util: add new header for getrandom()Zbigniew Jędrzejewski-Szmek
There's some confusion: older man pages specify that linux/random.h contains getrandom, but newer glibc has it in sys/random.h. Detect if the newer header is available and include it. We still need the older header for the flags.
2017-04-21libshared: fix compilation without libblkidZbigniew Jędrzejewski-Szmek
This reverts a75e27eb. a75e27eb fixed the case of libcryptsetup=no, libblkid=yes, but broke the case of libcryptsetup=no, libblkid=yes. Instead of trying to define the function only when used, which would result in too much ifdeffery, just silence the warning.
2017-04-21basic/missing.h: drop inclusion of macro.hZbigniew Jędrzejewski-Szmek
It's not necessary for anything.
2017-04-21Makefile.am: remove duplicated rules for efiZbigniew Jędrzejewski-Szmek
Specifying the same rule with a slightly different dep list was not useful, since make cannot distinguish rules with the same input / output. (It possibly could have two rules with different dependency list, but here all dependencies that are different between the two rules are always present, so the two rules are effectively the same.)
2017-04-21man: fix small typo (#5778)AsciiWolf
2017-04-21networkd: route - support 'onlink' routes (#5734)Susant Sahani
This work based on Tom's original patch teg@1312172 By setting GatewayOnlink=yes, the kernel will assume that the gateway is onlink even if there is no route to it. Resolves issue #1283.
2017-04-21units: systemd-resolved should start before network-online.target and ↵Yu Watanabe
nss-lookup.target (#5691) systemd-resolved provides 1. local API via NSS and D-Bus 2. kind of a local "DNS proxy" through its stub listener The 1st item should be started before nss-lookup.target. The 2nd item should be started before network-online.target, because if the networking works in general, then DNS (and DNS proxy) should too. Fixes #5650
2017-04-21networkd: vlan add GVRP support (#5761)Susant Sahani
Add support to configure GVRP. Closes #5760
2017-04-21core: move checking default_dependencies into ↵iplayinsun
target_add_default_dependencies. (#5762) Almost units check default_dependencies within [unit]_add_default_dependencies except target unit.
2017-04-21ima: Ensure policy exists before asking the kernel to load it (#5777)Benjamin Gilbert
e8e42b31c5a950a7b43d64f4a531ec59750e823e added support for having the kernel load the IMA policy directly, but didn't check that the policy file exists. If not, this produced a kernel message: IMA: policy update failed
2017-04-21l10n: update Czech Translation (#5776)AsciiWolf
2017-04-20hwdb: fix warning "atkbd serio0: Unknown key pressed" (#5772)Franck Bui
At each time pressing the WiFi Fn key on Dell Latitude E7270 laptop, the system reports the following error/warning messages: atkbd serio0: Unknown key pressed (translated set 2, code 0x88 on isa0060/serio0). atkbd serio0: Use 'setkeycodes e008 ' to make it known. This is due to commit 0e33634 which was added to fix https://bugs.launchpad.net/ubuntu/+source/udev/+bug/1441849. However on Dell Latitude E7* models, we need to restore the old generic behavior which consists in ignoring the key event since it's already done by the HW. Indeed the hardware has a specific driver (dell_wmi) to handle rfkill in the hardware level. So, as long as the hardware handles, the best is to leave as is. This patch was originally written by Takashi Iwai. Fixes #5047
2017-04-20basic/log: fix _printf_ annotation on log_object_internalvZbigniew Jędrzejewski-Szmek
Fixup for 4b58153dd22172d817055d2a09a0cdf3f4bd9db3. I saw this because of a clang warning. With gcc the -Wformat-nonliteral warning doesn't seem to work as expected. In two places, a string constructed with strjoina is used as the pattern. This is safe, because we're taking a pattern which was already marked with _printf_ and prepending a known value to it. Those places are marked with #pragma to silence the warning.
2017-04-20man: Fix reference to timer-sync.target instead of time-sync.target (#5764)Philip Withnall
Also fix an erroneous reference to it in the NEWS file, for posterity. Signed-off-by: Philip Withnall <withnall@endlessm.com>
2017-04-19Makefile.am: link dbus-org.freedesktop.network1 alias in /etcZbigniew Jędrzejewski-Szmek
This makes dbus-org.freedesktop.network1.service like dbus-org.freedesktop.resolve1.service. When systemd-networkd.service is disabled, the alias is also removed.
2017-04-19test-compress*: silence warning about unused definitions when w/o both xz ↵Zbigniew Jędrzejewski-Szmek
and lz4 I think it's nice to mark the test as skipped instead of omitting it entirely, hence #ifdefs in the code instead of excluding the test in Makefile.am/meson.build.
2017-04-19configure: restore check for glib librariesZbigniew Jędrzejewski-Szmek
This is a partial revert of 2375607039517c88df. We still have code guarded by HAVE_GLIB in tests. v2: - do not define the automake conditional, it wasn't used anywhere - rename --disable-gudev to --disable-glib v3: - do not cause an error if the libs are not found, this is supposed to be an "auto" dep by default.
2017-04-19rc-local-generator: drop duplicate definitions for rc.localZbigniew Jędrzejewski-Szmek
We always define those paths in the configure scripts.
2017-04-19basic/def.h: drop TTY_GID definitionZbigniew Jędrzejewski-Szmek
We already provide a definition through the configuration system, this one is duplicate.
2017-04-19units: drop explicit NotifyAccess setting from journald's unit file (#5749)Michal Sekletar
systemd-journald service consists of only single process and that is the MainPID. Make unit file shorter and drop NotifyAccess=all since it is not useful in such case. https://lists.freedesktop.org/archives/systemd-devel/2017-April/038667.html
2017-04-19hwdb: MS Surface Pro Type Cover touchpad integration (#5751)Sarang S. Dalal
Sets ID_INPUT_TOUCHPAD_INTEGRATION=internal for Microsoft Surface Pro Type Covers (IDs should cover at least the type covers for the Surface Pro 3 and 4). This is needed so that libinput can disable the touchpad while typing.
2017-04-19tree-wide: fix wrong indent (#5757)Yu Watanabe
Fixes wrong indent introduced by the commit 43688c49d1fdb585196d94e2e30bb29755fa591b.
2017-04-17Merge pull request #5708 from vcatechnology/arm-cross-compileLennart Poettering
ARM32 cross-compile fixes
2017-04-13Merge pull request #5731 from jprvita/hwdb-acerMartin Pitt
Acer hwdb keymap updates
2017-04-13loginctl: fix typo causing ignoring multiple session IDs (#5732)slodki
Fixes #5733
2017-04-12Merge pull request #5690 from yuwata/fix-5621Djalal Harouni
core: downgrade error message if command is prefixed with `-` and the…
2017-04-12hwdb: Add power button mapping for Acer modelsChris Chiu
The power key keycode e076 is emitted on several different Acer laptop models, and it is expected that it will also be used on upcoming models. Verified on the following models: Aspire ES1-421 Aspire ES1-432 Aspire A515-51 Aspire A515-51G Aspire A517-51 Aspire A517-51G Nitro AN515-31
2017-04-12hwdb: Fix airplane mode key for all Acer seriesChris Chiu
According to the key code v2.02 from Acer, scancode E0 86 will be generated for airplane mode hotkey. Verified on Aspire, TravelMate, Easynote and Predator.
2017-04-12hwdb: Map 0x8a to F20 on the Acer Travelmate P648-G2-MGJoão Paulo Rechi Vita
This model emits 0x9a for the microphone mute button above the keyboard, so let's map it to correct keycode.
2017-04-11man: document how to include an equals sign in a value provided to ↵Mark Stosberg
Environment= (#5710) It wasn't clear before how an equals sign in an "Environment=" value might be handled. Ref: http://stackoverflow.com/questions/43278883/how-to-write-systemd-environment-variables-value-which-contains/43280157
2017-04-11networkd: Add bridge port priority setting (#5545)Dimitri John Ledkov
Allow setting bridge port priority in the Bridge section of the network file, similar to e.g. port path cost setting. Set the default to an invalid value of 128, and only set the port priority when it's not 128. Unlike e.g. path cost, zero is a valid priority value. Add a networkd-test.py to check that bridge port priority is correctly set. Incidently, fix bridge port cost type and document valid ranges.
2017-04-11test/TEST-12-ISSUE-3171: specify -w1 option to netcat due to default change. ↵Dimitri John Ledkov
(#5722) On Ubuntu 17.04 (zesty zapus) netcat-openbsd was upgraded from 1.105-7ubuntu1 to 1.130-3, at the same time the defaults got changed from -q0 to -q-1 (infinity) the net result is that `echo A | nc -U' call now hangs, preventing the testcase to complete. One could use the old default of -q0, but that option is not available in some netcat implementations. Thus settle to specify -w1 instead to mitigate the testcase hang.