summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* network: introduce Announce= in [DHCPv6PrefixDelegation]Yu Watanabe2020-10-195-4/+11
| | | | | | When disabled, the delegated prefixes are not emit by RA. Closes #17353.
* network: introduce DHCPv6PrefixDelegation= settingYu Watanabe2020-10-196-4/+13
| | | | | Then, the link can configure prefix delegated by DHCPv6 without emitting RA.
* network: drop static prefixes and static route prefixes earlier if ↵Yu Watanabe2020-10-192-42/+39
| | | | IPv6PrefixDelegation=no or dhcpv6
* network: sort and rename elements in Network objectYu Watanabe2020-10-195-58/+62
|
* network: introduce network_adjust_radv()Yu Watanabe2020-10-193-8/+22
|
* network: clear DNS and domains for RA when an empty string is assignedYu Watanabe2020-10-191-0/+11
|
* network: use string_hash_ops_free for search domainsYu Watanabe2020-10-192-7/+7
|
* NEWS: fix typo: speicify → specifyAnsgar Burchardt2020-10-181-1/+1
|
* Block TEST-50-DISSECT on Ubuntu CI temporarilyLuca Boccassi2020-10-171-0/+0
| | | | | | It looks like we need to do some whack-a-mole before it will fully pass, so disable for now. It was skipped until today anyway due to missing dependencies.
* Merge pull request #17358 from keszybz/hwdb-add-starsLennart Poettering2020-10-1613-607/+638
|\ | | | | Add trailing star to all hwdb patterns
| * man: describe wildcards and range matches in hwdb syntaxZbigniew Jędrzejewski-Szmek2020-10-151-4/+26
| |
| * parse_hwdb: enforce the ":*" suffixZbigniew Jędrzejewski-Szmek2020-10-151-2/+3
| |
| * hwdb: add trailing ":*" everywhereZbigniew Jędrzejewski-Szmek2020-10-1511-531/+526
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No functional change is intended. The general pattern of changes: -usb:v04F3p2B7C* +usb:v04F3p2B7C:* This is mostly a clarification, to make the part that makes the usb vXXXXpYYYY part visually separated. It would only make a difference if we added further keys with a different number of digits, which is unlikely. -usb:v0627p0001:*QEMU USB Keyboard* -usb:v0627p0001:*QEMU USB Mouse* -usb:v0627p0001:*QEMU USB Tablet* +usb:v0627p0001:*QEMU USB Keyboard*:* +usb:v0627p0001:*QEMU USB Mouse*:* +usb:v0627p0001:*QEMU USB Tablet*:* Again, only a clarification. We know that ":" will appear somewhere later in the match key, so anything that matches "…Keyboard*" will also match "…Keyboard*:*". -evdev:name:ETPS/2 Elantech Touchpad:dmi:*svnASUSTeKComputerInc.:pnN53SV* +evdev:name:ETPS/2 Elantech Touchpad:dmi:*svnASUSTeKComputerInc.:pnN53SV:* This makes the match narrower. Previously we would match product "N53SV" and "N53SV2", "N53SV3", and others. Here we are saying that the ':pn' part must match exactly. Most of the changes in this patch match this pattern. I made a few judgement calls and used "pn…*:*" when I wasn't sure if the full pn is included: -evdev:name:Dell WMI hotkeys:dmi:bvn*:bvr*:bd*:svnDell*:pnPrecision* +evdev:name:Dell WMI hotkeys:dmi:bvn*:bvr*:bd*:svnDell*:pnPrecision*:* -evdev:name:Cypress APA Trackpad ?cyapa?:dmi:*:svnHewlett-Packard*:pnFalco*: +evdev:name:Cypress APA Trackpad ?cyapa?:dmi:*:svnHewlett-Packard*:pnFalco*:* This more like the "QEMU" example above, since all dmi strings end in ":", so anything which matches the old version will also match the new version. -evdev:atkbd:dmi:bvn*:bvr*:bd*:svnGateway*:pnA0A1*:pvr* +evdev:atkbd:dmi:bvn*:bvr*:bd*:svnGateway*:pnA0A1*:* I replaced trailing ":pvr*" by ":*". This makes no functional difference because we expect "pvr" to always appear in the dmi string. This makes patterns shorter. -evdev:atkbd:dmi:bvn*:bvr*:bd*:svnAcer*:pn* +evdev:atkbd:dmi:bvn*:bvr*:bd*:svnAcer*:pn*:* OTOH, ":pn*" is kept. This is because almost patterns include ":pn*", and if we skip it, we should make it clear that this is on purpose, that we really want to match any product name. The python script to generate autosuspend rules is updated to use ":*" too. Inspired by https://github.com/systemd/systemd/pull/17281#discussion_r501489750.
| * hwdb: add missinging ":*" suffixZbigniew Jędrzejewski-Szmek2020-10-151-5/+5
| | | | | | | | | | | | | | | | | | | | I'm keeping this part separate because a function change is intended here. Those patterns didn't match: $ systemd-hwdb query 'evdev:atkbd:dmi:bvn_:bvr_:bd_:svnLENOVO:pn_:pvrThinkPadT430s' KEYBOARD_LED_CAPSLOCK=0 $ systemd-hwdb query 'evdev:atkbd:dmi:bvn_:bvr_:bd_:svnLENOVO:pn_:pvrThinkPadT430s:' (nil)
| * hwdb: reindent commments and say that "*" should always be trailingZbigniew Jędrzejewski-Szmek2020-10-159-66/+77
| |
| * hwdb: update chromiumos autosuspend rulesZbigniew Jędrzejewski-Szmek2020-10-151-0/+2
| |
* | meson: Fix missing libseccomp dependenciesMichal Koutný2020-10-162-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The builds with HAVE_SECCOMP fail on missing include paths: FAILED: src/basic/libbasic.a.p/parse-util.c.o cc -Isrc/basic/libbasic.a.p -Isrc/basic -I../src/basic -Isrc/boot -I../src/boot -Isrc/home -I../src/home -Isrc/shared -I../src/shared -Isrc/systemd -I../src/systemd -Isrc/journal -I../src/journal -Isrc/journal-remote -I../src/journal-remote -Isrc/nspawn -I../src/nspawn -Isrc/resolve -I../src/resolve -Isrc/timesync -I../src/timesync -I../src/time-wait-sync -Isrc/login -I../src/login -Isrc/udev -I../src/udev -Isrc/libudev -I../src/libudev -Isrc/core -I../src/core -Isrc/shutdown -I../src/shutdown -I../src/xdg-autostart-generator -I../src/libsystemd/sd-bus -I../src/libsystemd/sd-device -I../src/libsystemd/sd-event -I../src/libsystemd/sd-hwdb -I../src/libsystemd/sd-id128 -I../src/libsystemd/sd-netlink -I../src/libsystemd/sd-network -I../src/libsystemd/sd-resolve -Isrc/libsystemd-network -I../src/libsystemd-network -I. -I.. -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -g -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wno-format-signedness -Werror=undef -Wlogical-op -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wfloat-equal -Wsuggest-attribute=noreturn -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=missing-declarations -Werror=return-type -Werror=incompatible-pointer-types -Werror=format=2 -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wimplicit-fallthrough=5 -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Werror=overflow -Werror=shift-count-overflow -Werror=shift-overflow=2 -Wdate-time -Wnested-externs -Wno-maybe-uninitialized -ffast-math -fno-common -fdiagnostics-show-option -fno-strict-aliasing -fvisibility=hidden -fstack-protector -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=shadow -include config.h -fPIC -pthread -fvisibility=default -MD -MQ src/basic/libbasic.a.p/parse-util.c.o -MF src/basic/libbasic.a.p/parse-util.c.o.d -o src/basic/libbasic.a.p/parse-util.c.o -c ../src/basic/parse-util.c In file included from ../src/basic/parse-util.c:20: ../src/shared/seccomp-util.h:4:10: fatal error: seccomp.h: No such file or directory 4 | #include <seccomp.h> | ^~~~~~~~~~~ compilation terminated. FAILED: test-parse-util.p/src_test_test-parse-util.c.o cc -Itest-parse-util.p -I. -I.. -Isrc/basic -I../src/basic -Isrc/boot -I../src/boot -Isrc/home -I../src/home -Isrc/shared -I../src/shared -Isrc/systemd -I../src/systemd -Isrc/journal -I../src/journal -Isrc/journal-remote -I../src/journal-remote -Isrc/nspawn -I../src/nspawn -Isrc/resolve -I../src/resolve -Isrc/timesync -I../src/timesync -I../src/time-wait-sync -Isrc/login -I../src/login -Isrc/udev -I../src/udev -Isrc/libudev -I../src/libudev -Isrc/core -I../src/core -Isrc/shutdown -I../src/shutdown -I../src/xdg-autostart-generator -I../src/libsystemd/sd-bus -I../src/libsystemd/sd-device -I../src/libsystemd/sd-event -I../src/libsystemd/sd-hwdb -I../src/libsystemd/sd-id128 -I../src/libsystemd/sd-netlink -I../src/libsystemd/sd-network -I../src/libsystemd/sd-resolve -Isrc/libsystemd-network -I../src/libsystemd-network -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -g -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wno-format-signedness -Werror=undef -Wlogical-op -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wfloat-equal -Wsuggest-attribute=noreturn -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=missing-declarations -Werror=return-type -Werror=incompatible-pointer-types -Werror=format=2 -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wimplicit-fallthrough=5 -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Werror=overflow -Werror=shift-count-overflow -Werror=shift-overflow=2 -Wdate-time -Wnested-externs -Wno-maybe-uninitialized -ffast-math -fno-common -fdiagnostics-show-option -fno-strict-aliasing -fvisibility=hidden -fstack-protector -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=shadow -include config.h -MD -MQ test-parse-util.p/src_test_test-parse-util.c.o -MF test-parse-util.p/src_test_test-parse-util.c.o.d -o test-parse-util.p/src_test_test-parse-util.c.o -c ../src/test/test-parse-util.c In file included from ../src/test/test-parse-util.c:14: ../src/shared/seccomp-util.h:4:10: fatal error: seccomp.h: No such file or directory 4 | #include <seccomp.h> | ^~~~~~~~~~~ compilation terminated. Add the respective deps. Fixes: 005bfaf118 ("exec: Add kill action to system call filters")
* | Merge pull request #17363 from keszybz/oomd-meson-and-newsYu Watanabe2020-10-163-13/+48
|\ \ | | | | | | oomd meson and NEWS adjustments
| * | NEWS: add blurbs about -Dmode= and oomd/oomctlZbigniew Jędrzejewski-Szmek2020-10-151-11/+38
| | |
| * | meson: enable oomd by default in developer modeZbigniew Jędrzejewski-Szmek2020-10-152-2/+10
| | | | | | | | | | | | | | | | | | We want to compile the new code in CI without having to explicitly specify -Doomd=true everywhere. Let's enable it by default, and rely on distros setting -Dmode=release to not have it enabled by default.
* | | Merge pull request #17361 from keszybz/oomd-introspection-stubYu Watanabe2020-10-166-24/+133
|\ \ \ | | | | | | | | Implement --version,--bus-introspect in oomd, add man page for the dbus api
| * | | man: add org.freedesktop.oom1(5) stubZbigniew Jędrzejewski-Szmek2020-10-152-0/+75
| | | |
| * | | oomd: add names to dbus parameters and implement --bus-introspectionZbigniew Jędrzejewski-Szmek2020-10-154-6/+30
| | | |
| * | | oomd: check number of arguments, add --version, fix indentationZbigniew Jędrzejewski-Szmek2020-10-151-18/+28
| |/ /
* | | pid1: ignore whole /run/host hierarchyLennart Poettering2020-10-151-12/+15
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let's mark the whole /run/host hierarchy as something to ignore by PID 1 for generation of .mount units, i.e. consider it as "extrinsic". By unifying container mgr supplied resources in one dir it's also easy to exclude the whole lot from PID1's management inside the container. This is the right thing to do, since from the payload's PoV these mounts are just API and not manipulatable as they are established, managed and owned by the container manager, not the payload. (While we are it, also add the boot ID mount to the existing list, as nspawn and other container managers overmount that too, typically, and it is thus owned by the container manager and not the payload typically.)
* | Merge pull request #15206 from anitazha/systoomd-v0Zbigniew Jędrzejewski-Szmek2020-10-1566-11/+3421
|\ \ | | | | | | systemd-oomd
| * | meson: disable systemd-oomd by defaultAnita Zhang2020-10-142-1/+4
| | | | | | | | | | | | systemd-oomd can be enabled when in developer mode (-Dmode=developer)
| * | man: document systemd-oomd and related itemsAnita Zhang2020-10-095-0/+319
| | |
| * | core: add systemd-oomd implicit dependenciesAnita Zhang2020-10-071-0/+29
| | |
| * | systemd-oomd: service filesAnita Zhang2020-10-075-0/+76
| | |
| * | systemd-oomd: dbus hook ups and oomctl CLIAnita Zhang2020-10-0710-0/+406
| | |
| * | core: systemd-oomd pid1 integrationAnita Zhang2020-10-076-1/+65
| | |
| * | systemd-oomd: manager/daemonAnita Zhang2020-10-079-0/+700
| | |
| * | cgroup-util: add cg_get_attribute_as_bool() helperAnita Zhang2020-10-072-0/+23
| | |
| * | systemd-oomd: unit testable helper functionsAnita Zhang2020-10-078-2/+880
| | | | | | | | | | | | | | | | | | | | | | | | Helpers used by the systemd-oomd daemon to read/fill in various contexts and make detection and kill decisions. i.e. a simplified/less configurable version of https://github.com/facebookincubator/oomd/tree/master/src/oomd.
| * | shared: helpers to read pressure stats from cgroupsAnita Zhang2020-10-075-0/+234
| | |
| * | parse-util: add parse_loadavg_fixed_pointAnita Zhang2020-10-075-4/+145
| | |
| * | core: add varlink call to get cgroup paths of units using ManagedOOM*=Anita Zhang2020-10-079-11/+227
| | |
| * | varlink: add server write states to disconnect checkAnita Zhang2020-10-071-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While a server is in the VARLINK_PENDING_METHOD or VARLINK_PENDING_METHOD_MORE states and its write end is disconnected and it gets a POLLHUP, we should disconnect since it can't write anymore. In the case of systemd-oomd disconnecting while pid1 was pending-more, this condition left pid1 in a state where it started throttling from continually getting POLLHUP.
| * | core: add ManagedOOM*= properties to configure systemd-oomd on the unitAnita Zhang2020-10-0720-3/+319
| | | | | | | | | | | | | | | This adds the hook ups so it can be read with the usual systemd utilities. Used in later commits by sytemd-oomd.
* | | Merge pull request #17359 from poettering/lesssecuresecureLennart Poettering2020-10-152-5/+5
|\ \ \ | | | | | | | | paranoia: getenv_bool_secure("SYSTEMD_PAGERSECURE")
| * | | systemctl: fix tabs indentationsLennart Poettering2020-10-151-4/+4
| | | |
| * | | pager: lets check SYSTEMD_PAGERSECURE with secure_getenv()Lennart Poettering2020-10-151-1/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | I can't think of any real vulnerability about this, but it still feels better to check a variable with "secure" in its name with secure_getenv() rather than plain getenv(). Paranoia FTW!
* | | update NEWSLennart Poettering2020-10-151-29/+69
| |/ |/|
* | hwdb: mount matrix for Chuwi Hi8 (CWI509) (#17355)Máté Pozsgay2020-10-151-0/+4
| |
* | Merge pull request #17354 from dtardon/udev-cleanupZbigniew Jędrzejewski-Szmek2020-10-152-17/+8
|\ \ | | | | | | some udev cleanup
| * | udev-rules: drop pointless castDavid Tardon2020-10-141-8/+8
| | |
| * | udev-ctrl: drop workaround for old kernel bugDavid Tardon2020-10-141-9/+0
| | | | | | | | | | | | | | | | | | It's been 7 years. That should be long enough :-) This reverts commit b97caef538ae37bd2dc04fc15b448c12a2c9422b.
* | | sd-bus: break the loop in bus_ensure_running() if the bus is not connectingZbigniew Jędrzejewski-Szmek2020-10-151-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This might fix #17025: > the call trace is > bus_ensure_running -> sd_bus_process -> bus_process_internal -> process_closeing --> sd_bus_close > | > \-> process_match We ended doing callouts to the Disconnected matches from bus_ensure_running() and shouldn't. bus_ensure_running() should never do callouts. This change should fix this however: once we notice that the connection is going down we will now fail instantly with ENOTOCONN instead of calling any callbacks.
* | | Merge pull request #17317 from yuwata/network-gateway-dhcp4-raYu Watanabe2020-10-1514-82/+143
|\ \ \ | | | | | | | | network: about Gateway=_dhcp4 or _ipv6ra