Yu Watanabe
6bb8928205
meson: sort files
2022-05-11 02:13:15 +09:00
Yu Watanabe
97cda6e10f
Merge pull request #23335 from keszybz/fuzz-json-more-coverage
...
More coverage in fuzz-json
2022-05-11 02:12:57 +09:00
Yu Watanabe
01c99b29e9
Merge pull request #23336 from keszybz/fuzz-calendarspec-more-coverage
...
More coverage in fuzz-calendarspec
2022-05-11 02:12:11 +09:00
Yu Watanabe
756491af39
core/timer: fix potential use-after-free
2022-05-10 13:50:50 +02:00
Yu Watanabe
d3ab7b8078
core/timer: fix memleak
...
Fixes #23326 .
2022-05-10 13:50:50 +02:00
Yu Watanabe
16f74783d8
resolve: reallocate DNS scope when DNSSEC and/or DNS-over-TLS settings are changed
...
Fixes #23227 .
2022-05-10 09:44:45 +02:00
Yu Watanabe
81391854ec
Merge pull request #23300 from DaanDeMeyer/device-debug
...
core/device: Add more logging
2022-05-10 14:29:35 +09:00
Yu Watanabe
31090c17f4
Merge pull request #23321 from poettering/sockaddr-no-cast
...
tests: avoid sockaddr casts
2022-05-09 23:44:01 +09:00
Yu Watanabe
d171e72e7a
core/slice: make slice_freezer_action() return 0 if freezing state is unchanged
...
Fixes #23278 .
2022-05-09 23:43:32 +09:00
Yu Watanabe
a6b084234c
network: set/unset enumerating flag before/after loop
2022-05-09 18:59:24 +09:00
Yu Watanabe
df423851fc
Merge pull request #23310 from keszybz/suppress-fuzzer-timeouts-and-errors
...
Suppress fuzzer timeouts and errors
2022-05-09 15:50:29 +09:00
Yu Watanabe
b5be9dbebf
Merge pull request #23311 from keszybz/bootspec-fuzzer
...
Fuzzer for bootspec.c and associated fixes
2022-05-09 15:46:49 +09:00
Yu Watanabe
734582830b
core/unit: fix use-after-free
...
Fixes #23312 .
2022-05-08 22:45:07 +02:00
Yu Watanabe
4e5f4733c5
bash-completion: resolvectl: add missing options and verb
2022-05-08 14:14:28 +02:00
Yu Watanabe
3c60643848
man: fix typo
2022-05-07 15:17:56 +09:00
Yu Watanabe
87d3b4ef3b
Merge pull request #23292 from alexhenrie/dhcpv6
...
network: clarify relationship between RA flags and DHCPv6 modes
2022-05-07 11:42:45 +09:00
Yu Watanabe
01af366ef9
Merge pull request #23291 from yuwata/udev-rule-fix-regression
...
udev: fix parent token handling
2022-05-07 04:58:20 +09:00
Yu Watanabe
0139026b3e
Merge pull request #23290 from keszybz/three-fixes
...
Three fixes
2022-05-07 04:57:36 +09:00
Yu Watanabe
af2ff171e0
Merge pull request #23272 from keszybz/logind-man-and-rules
...
Logind man and rules
2022-05-07 04:23:02 +09:00
Yu Watanabe
d94802e988
test: add testcase for #23288
2022-05-07 02:51:31 +09:00
Yu Watanabe
eba782d59b
udev: fix parent token handling
...
This fixes a bug introduced by 03677889f0 .
Fixes #23288 .
2022-05-07 02:51:21 +09:00
Yu Watanabe
ad11dd94fd
README: mention kernel requirement for ambient capabilities
...
Closes #23231 .
2022-05-06 09:33:49 +01:00
Yu Watanabe
9b260c967b
Merge pull request #23264 from keszybz/shorten-test-names
...
Shorten test names
2022-05-04 23:25:47 +09:00
Yu Watanabe
c322cfafba
man/networkctl: mention initialized state
...
Closes #23262 .
2022-05-04 14:44:13 +01:00
Yu Watanabe
87bd4b79e6
sd-lldp: use memcpy_safe() as the buffer size may be zero
2022-05-04 16:05:04 +09:00
Yu Watanabe
9a44966e63
sd-ndisc: drop unused function
2022-05-04 16:03:57 +09:00
Yu Watanabe
4e88a46bfe
libsystemd-network: refuse too large raw_size
...
Closes #23258 .
2022-05-04 15:46:19 +09:00
Yu Watanabe
fa2ba7aea8
Merge pull request #23205 from DaanDeMeyer/tmpfiles-networkd
...
tmpfiles: Split networkd entries into a separate file
2022-05-04 11:48:21 +09:00
Yu Watanabe
e370edbefc
Merge pull request #23257 from evverx/install-valgrind
...
tests: make it possible to install valgrind
2022-05-04 11:47:59 +09:00
Yu Watanabe
bdb2d3c688
udev: check stats of .link files and their drop-in files
...
Fixes #23128 .
2022-05-03 10:26:22 +02:00
Yu Watanabe
0b6bf4b674
shared/install: use correct cleanup function
...
Fixes #23250 .
2022-05-02 22:17:56 +01:00
Yu Watanabe
77f081f363
fix typo
2022-05-03 01:16:32 +09:00
Yu Watanabe
dfd672f84b
Merge pull request #23230 from yuwata/core-device-cleanups
...
core/device: several cleanups
2022-04-30 23:10:22 +09:00
Yu Watanabe
08300bb035
core/device: use DEVICE_FOUND_MASK
2022-04-30 04:14:10 +09:00
Yu Watanabe
1363eeca94
core/device: minor coding style updates
2022-04-30 04:14:10 +09:00
Yu Watanabe
42ebcebfef
core/device: drop unused unit name generated from path
2022-04-30 04:14:10 +09:00
Yu Watanabe
03a94b73c4
core/device: device_found_node() does not accept DEVICE_FOUND_UDEV
2022-04-30 04:14:10 +09:00
Yu Watanabe
0e38cee883
core/device: use sd_device_new_from_devname() to verify the device node
2022-04-30 04:14:10 +09:00
Yu Watanabe
f374631a56
core/device: use udev_available()
2022-04-30 04:14:10 +09:00
Yu Watanabe
4212fa83d6
core/device: use device_get_property_bool()
2022-04-30 04:14:10 +09:00
Yu Watanabe
15345fc677
sd-device: introduce device_get_property_bool()
2022-04-30 04:14:10 +09:00
Yu Watanabe
dd309fcdb8
core/device: use _cleanup_ attribute at one more place
2022-04-30 04:14:10 +09:00
Yu Watanabe
a7fb1f2eae
core/device: unit_name_from_path() does not return -ENAMETOOLONG anymore
...
Follow-up for 1d0727e76f .
2022-04-30 04:14:10 +09:00
Yu Watanabe
47e72170c1
core/device: use strv_consume()
2022-04-30 04:14:10 +09:00
Yu Watanabe
df8774263c
Merge pull request #23226 from keszybz/libsystemd-length-assert
...
Add assert about DHCP packet length in libsystemd-network
2022-04-30 03:03:18 +09:00
Yu Watanabe
606104bcdb
core: drop non-default value for DefaultLimitMEMLOCK=
2022-04-29 21:15:55 +09:00
Yu Watanabe
0bc055cf52
login: drop non-default value for RuntimeDirectoryInodesMax=
2022-04-29 21:15:21 +09:00
Yu Watanabe
08a767f1e0
login: make RuntimeDirectoryInodesMax= support K, G, M suffixes
...
Fixes #23017 .
2022-04-29 21:08:15 +09:00
Yu Watanabe
d10329a08e
hwdb: add keyboard mapping for HP ProBook 11G2
...
Closes #23108 .
2022-04-28 10:10:45 +09:00
Yu Watanabe
1788c6f3c0
meson: also use COMPRESSION_NONE for default compression
2022-04-27 20:49:17 +09:00
Yu Watanabe
9798deaf46
meson: show default compression method in summary
2022-04-27 20:47:38 +09:00
Yu Watanabe
ff56124b11
test: exclude "bdi" subsystem and loop block devices
...
On several CI environments, it seems that some loop block devices and
corresponding bdi devices are sometimes removed during the test is
running. Let's exclude them.
Fixes #22970 .
2022-04-27 16:32:42 +09:00
Yu Watanabe
9409710097
sd-device-enumerator: introduce sd_device_enumerator_add_nomatch_sysname()
2022-04-27 16:32:42 +09:00
Yu Watanabe
c11810ed30
sd-device-enumerator: use set_fnmatch()
2022-04-27 16:32:42 +09:00
Yu Watanabe
d25d4f189c
set: introduce set_fnmatch()
2022-04-27 16:32:15 +09:00
Yu Watanabe
8ac6b05b7c
tree-wide: Fix typo
2022-04-25 10:06:08 +09:00
Yu Watanabe
b1aca4da60
udevadm: wait: check if specified path not exist on --remove
...
Even if the corresponding device node or syspath are already removed,
the specified symlink to the device node may still exist.
Fixes #23166 .
2022-04-23 08:45:01 +09:00
Yu Watanabe
bb78da17fd
test: do not accept IPv6 local address if IPv6 is disabled
2022-04-23 04:19:49 +09:00
Yu Watanabe
db50d326a4
nss-myhostname: do not return IPv6 local address if IPv6 is disabled
2022-04-23 04:18:51 +09:00
Yu Watanabe
f4bdbae725
Merge pull request #23084 from poettering/creds-no-tpm2-fallback
...
creds: add semi-automatic fallback support for initrd credentials on systems lacking TPM2
2022-04-21 04:11:19 +09:00
Yu Watanabe
5a560d4cc3
firewall-util: emphasize that nfnl_netlink_sendv() takes at least one message
...
Addresses https://github.com/systemd/systemd/pull/23090#discussion_r853002631 .
2022-04-20 02:28:54 +09:00
Yu Watanabe
2a86ed67ed
efi-api: use string_replace_char()
2022-04-20 02:23:11 +09:00
Yu Watanabe
9dbfcaf229
sd-device: use string_replace_char() and strspn_from_end()
2022-04-20 02:19:44 +09:00
Yu Watanabe
146f4482b2
string-util: introduce strspn_from_end()
2022-04-20 02:15:01 +09:00
Yu Watanabe
072f5f9b18
string-util: introduce string_replace_char()
2022-04-20 02:14:35 +09:00
Yu Watanabe
e4e1353c25
sd-device: refuse O_DIRECTORY returned from path_extract_filename()
...
In both cases, it is expected that the symlink targets do not end with '/'.
Addresses https://github.com/systemd/systemd/pull/23089#discussion_r853007218 .
2022-04-20 01:43:27 +09:00
Yu Watanabe
bb60956b39
path-util: make readlink_value() refuse O_DIRECTORY returned from path_extract_filename()
...
The function is now only used by sd-device.c and pam_systemd.c, and they
expects the result are not directory. Hence, it is safe to change the
behavior.
Addresses https://github.com/systemd/systemd/pull/23089#discussion_r853006017 .
2022-04-20 01:40:39 +09:00
Yu Watanabe
056a18e465
test: add several tests for track item
2022-04-19 18:02:10 +09:00
Yu Watanabe
63ec7a8490
test: shorten code a bit
2022-04-19 18:02:10 +09:00
Yu Watanabe
c399ed923d
sd-bus: use hashmap_contains() and drop unnecessary cast
2022-04-19 18:02:10 +09:00
Yu Watanabe
55bfacc6c3
sd-bus: do not return negative errno when unknown name is specified
...
When 'recursive' is false, then sd_bus_track_remove_name() does not
return negative errno when unknown name is specified. Let's follow the
same pattern for the case that 'recursive' is true.
2022-04-19 18:02:10 +09:00
Yu Watanabe
6a7ca27740
sd-bus: do not read unused value
2022-04-19 18:02:10 +09:00
Yu Watanabe
c2d7dd35d2
sd-bus: introduce ref/unref function for track_item
2022-04-19 18:01:46 +09:00
Yu Watanabe
b21f237d99
sd-bus: fix reference counter to be incremented
...
Fixes #23097 .
2022-04-19 17:58:08 +09:00
Yu Watanabe
c8431e9e35
macro: check over flow in reference counter
2022-04-19 17:58:02 +09:00
Yu Watanabe
6dd18b34cf
json: use unsigned for refernce counter
...
For other places, we use unsigned for reference counter.
2022-04-19 17:56:40 +09:00
Yu Watanabe
b0c3d2b76b
Merge pull request #23107 from yuwata/man-network-numeric-prefix
...
man: recommend that .network or friends should have a numeric prefix
2022-04-18 07:02:10 +09:00
Yu Watanabe
915774ecb8
Merge pull request #23101 from yuwata/sd-device-cleanups
...
sd-device: several cleanups
2022-04-18 07:01:42 +09:00
Yu Watanabe
98e5a6c93c
resolve: fix typo in dns_class_is_pseudo()
2022-04-18 07:01:17 +09:00
Yu Watanabe
23d20adc05
sd-device: rename arguments and variables
2022-04-18 04:34:14 +09:00
Yu Watanabe
9c5d7151c1
sd-device: fix possible use-of-uninitialized-value
2022-04-18 04:34:14 +09:00
Yu Watanabe
17761fb3bf
sd-device: use ERRNO_IS_DEVICE_ABSENT() at one more place
2022-04-18 04:34:14 +09:00
Yu Watanabe
d82827a107
sd-device: rename function arguments for storing results
2022-04-18 04:34:14 +09:00
Yu Watanabe
c77c1cc201
sd-device: use correct type and parser for device node uid and gid
2022-04-18 04:34:14 +09:00
Yu Watanabe
d37c69c1bf
sd-device: shorten code a bit
2022-04-18 04:34:14 +09:00
Yu Watanabe
ce1d08ba94
sd-device: use path_extract_filename() at one more place
...
This also does several cleanups.
2022-04-18 04:34:14 +09:00
Yu Watanabe
60e50fb20d
sd-device: reset sysname and sysnum on renaming
2022-04-18 04:34:14 +09:00
Yu Watanabe
f5a75f2027
sd-device: reduce indentation
2022-04-18 04:34:14 +09:00
Yu Watanabe
ff58f2ae2a
sd-device: verify new syspath on renaming
2022-04-18 04:34:14 +09:00
Yu Watanabe
625d71b9ae
man: DHCPPrefixDelegation= needs to be enabled on downstream side for assigning delegated prefixes
...
Closes #23041 .
2022-04-18 04:30:56 +09:00
Yu Watanabe
cc9b6bdc96
man: recommend that .network or friends should have a numeric prefix
...
Closes #23105 .
2022-04-18 04:30:49 +09:00
Yu Watanabe
bd4297e761
udevadm: info: also show parent devices by --tree
2022-04-17 21:27:33 +02:00
Yu Watanabe
fe619e998a
Merge pull request #23093 from mrc0mmand/test-md-partitions
...
test: more MD coverage improvements
2022-04-18 01:26:30 +09:00
Yu Watanabe
5984b92726
network: l2tp: refuse null address
2022-04-17 09:31:35 +09:00
Yu Watanabe
96d96ec4e7
network: tunnel: handle null address as "any"
...
Fixes oss-fuzz#44881 (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=44881 ).
Fixes #23098 .
2022-04-17 09:31:30 +09:00
Yu Watanabe
747bee2662
Merge pull request #23089 from yuwata/sd-device-use-path_extract_filename
...
sd-device: use path_extract_filename()
2022-04-16 14:33:58 +09:00
Yu Watanabe
7be87278a3
Merge pull request #23021 from fbuihuu/tmpfiles-fix-precedence-with-plus-sign
...
Tmpfiles fix precedence with plus sign
2022-04-16 01:36:51 +09:00
Yu Watanabe
b9d8209065
test: add tests for sd_device_get_sysnum()
2022-04-16 00:52:24 +09:00
Yu Watanabe
5fa9d220c2
sd-device: shorten code a bit
2022-04-16 00:52:24 +09:00
Yu Watanabe
c58e0ce677
sd-device: use path_extract_filename() at one more place
2022-04-16 00:52:16 +09:00