Yu Watanabe
7b5ed18779
Merge pull request #18294 from ssahani/net-2
...
tree wide use ensure_put
2021-01-19 16:46:41 +09:00
Yu Watanabe
29d65a4388
Merge pull request #18303 from yuwata/verity-cleanup
...
veritysetup-generator: drop unused struct and variable
2021-01-19 12:22:55 +09:00
Yu Watanabe
7e2757c42f
Merge pull request #18038 from yuwata/meson-split
...
meson: various cleanups
2021-01-19 12:22:34 +09:00
Yu Watanabe
4c6dd238b8
Merge pull request #18267 from lucaswerkmeister/truncate
...
Two StandardOutput=truncate:file improvements
2021-01-19 08:47:39 +09:00
Yu Watanabe
ceed428305
Merge pull request #18299 from ssahani/ensure-put
...
More use of hashmap_ensure_put and ordered_hashmap_ensure_put
2021-01-19 08:42:26 +09:00
Yu Watanabe
13a4e9f209
TODO: fix typo
2021-01-19 07:22:48 +09:00
Yu Watanabe
71ce3ba25b
veritysetup-generator: drop unused struct and variable
...
Follow-ups for 08b04ec7e7 .
This also drops unnecessary inclusion.
Fixes CID#1443889.
2021-01-19 07:21:57 +09:00
Yu Watanabe
024e9084c1
meson: move several definitions related libsystemd to src/libsystemd/meson.build
2021-01-19 07:06:32 +09:00
Yu Watanabe
40dbce36df
meson: use static_libsystemd_pic
2021-01-19 07:06:32 +09:00
Yu Watanabe
a0e150b2f4
meson: add missing license header
2021-01-19 07:06:32 +09:00
Yu Watanabe
e025c9dfe3
meson: move test or fuzzer definitions to relevant meson.build in subdirectories
2021-01-19 07:06:32 +09:00
Yu Watanabe
b5c34d6bf1
meson: drop unused variable
2021-01-19 07:06:32 +09:00
Yu Watanabe
04e7ada0d7
meson: drop unnecessary files from test definitions
2021-01-19 07:06:32 +09:00
Yu Watanabe
74b28f2b36
meson: drop unnecessary libraries from journal related tests
2021-01-19 07:06:32 +09:00
Yu Watanabe
8d40961c3c
meson: slightly disentangle code dependencies
...
But, still sd-id128 is used in src/basic.
2021-01-19 07:06:32 +09:00
Yu Watanabe
b61016f207
meson: sort inclusion of meson.build files in subdirectories
2021-01-19 07:06:32 +09:00
Yu Watanabe
529642936b
meson: move libjournal_core definition to src/journal/meson.build
2021-01-19 07:06:32 +09:00
Yu Watanabe
3976f372ae
meson: move libudev related definitions to src/libudev/meson.build
...
Also, this makes libudev.so built in build directory.
2021-01-19 07:06:32 +09:00
Yu Watanabe
f6fe732ff3
meson: move and gather find_program()
2021-01-19 07:06:32 +09:00
Yu Watanabe
73e994f291
meson: drop redundant source files in executable()
2021-01-19 07:06:32 +09:00
Yu Watanabe
0275e918af
meson: move source file list for systemd-xdg-autostart-generator and its tests
2021-01-19 07:06:32 +09:00
Yu Watanabe
f98df767e1
meson: move source file list for busctl
2021-01-19 07:06:32 +09:00
Yu Watanabe
2ad279cfa4
meson: move source file list for systemd-cryptenroll
2021-01-19 07:06:32 +09:00
Yu Watanabe
b4d1892aac
meson: move source file list for systemd-cryptsetup
2021-01-19 07:06:32 +09:00
Yu Watanabe
18b49798a6
meson: show standalone-binaries setting in the summary
2021-01-19 07:06:32 +09:00
Yu Watanabe
d33b0daa6c
meson: use condition argument in test definition
2021-01-19 07:06:32 +09:00
Yu Watanabe
cbaaf7b9dd
meson: drop redundant directory specification in additional source files
2021-01-19 07:06:32 +09:00
Yu Watanabe
c35125732f
meson: move definition of systemctl source files
2021-01-19 07:06:29 +09:00
Yu Watanabe
f5a5284ea1
meson: introduce libtimesyncd_core library
2021-01-19 07:04:19 +09:00
Yu Watanabe
b09f01463a
meson: enable several tests even if the relevant features are disabled
2021-01-19 07:04:19 +09:00
Yu Watanabe
a28c0617de
meson: fix indentation
2021-01-19 07:04:19 +09:00
Yu Watanabe
4fc47fa82a
meson: drop unnecessary variable declarations
2021-01-19 07:04:19 +09:00
Yu Watanabe
7087e4729f
meson: drop unnecessary loop
2021-01-19 07:04:19 +09:00
Yu Watanabe
6969a671d9
test: drop bus-util.h from sd-bus
...
To drop src/shared from include directories to build libsystemd.so later.
2021-01-19 07:04:19 +09:00
Yu Watanabe
0159eee04a
efi: create symbolic link to efi/loader-feature.h
...
To drop src/boot/efi from include directories for binaries later.
2021-01-19 07:04:19 +09:00
Yu Watanabe
c11e5f43d2
util: move several DNS related definitions to src/basic/dns-def.h
...
DNS_HOSTNAME_MAX is used by sd-resolve, but it was defined in
src/shared/dns-domain.h. The library libsystemd should be independent
of source files under src/shared.
2021-01-19 07:04:19 +09:00
Yu Watanabe
af182ae1dc
util: move unit-file.[ch] to src/basic
...
As basic/path-lookup.[ch] depend on them.
2021-01-19 07:04:19 +09:00
Yu Watanabe
22eadc289b
util: move parse_syscall_and_errno() to seccomp-util.c
...
This makes parse-util.c independent of seccomp-util.c, which is located
in src/shared.
2021-01-19 07:04:19 +09:00
Yu Watanabe
09f7c7c668
fuzzers: move several fuzzers
2021-01-19 07:04:19 +09:00
Yu Watanabe
c5abccfa58
meson: fix indentation
2021-01-19 07:04:19 +09:00
Yu Watanabe
5acb3cabd1
meson: make the second and third elements of tests or fuzzers optional
...
Then, we can shorten many test definitions.
2021-01-19 07:04:19 +09:00
Yu Watanabe
9aeec01e77
test: move test-umount.c to src/shutdown
...
Then, we can drop src/shutdown from include directories later.
2021-01-19 07:04:19 +09:00
Yu Watanabe
bac11cd667
core: move several source files to src/shared
...
As, the files are used by many executables, fstab-generator, remount-fs,
machine-id-setup, and etc.
With this change, the total size of the relevant executables and
libshared slightly decreases.
Before:
```
$ ll systemd-fstab-generator systemd-remount-fs systemd-machine-id-setup systemd-shutdown systemd-nspawn systemd src/shared/libsystemd-shared-247.so
-rwxrwxr-x 1 watanabe watanabe 7577800 Jan 5 13:35 src/shared/libsystemd-shared-247.so
-rwxrwxr-x 1 watanabe watanabe 4608360 Jan 5 13:35 systemd
-rwxrwxr-x 1 watanabe watanabe 117240 Jan 5 13:35 systemd-fstab-generator
-rwxrwxr-x 1 watanabe watanabe 61576 Jan 5 13:35 systemd-machine-id-setup
-rwxrwxr-x 1 watanabe watanabe 853080 Jan 5 13:35 systemd-nspawn
-rwxrwxr-x 1 watanabe watanabe 70600 Jan 5 13:35 systemd-remount-fs
-rwxrwxr-x 1 watanabe watanabe 172624 Jan 5 13:35 systemd-shutdown
```
Total: 13461280
After:
```
$ ll systemd-fstab-generator systemd-remount-fs systemd-machine-id-setup systemd-shutdown systemd-nspawn systemd src/shared/libsystemd-shared-247.so
-rwxrwxr-x 1 watanabe watanabe 7658336 Jan 5 13:32 src/shared/libsystemd-shared-247.so
-rwxrwxr-x 1 watanabe watanabe 4523560 Jan 5 13:32 systemd
-rwxrwxr-x 1 watanabe watanabe 78288 Jan 5 13:32 systemd-fstab-generator
-rwxrwxr-x 1 watanabe watanabe 30984 Jan 5 13:32 systemd-machine-id-setup
-rwxrwxr-x 1 watanabe watanabe 840384 Jan 5 13:32 systemd-nspawn
-rwxrwxr-x 1 watanabe watanabe 39104 Jan 5 13:32 systemd-remount-fs
-rwxrwxr-x 1 watanabe watanabe 117160 Jan 5 13:32 systemd-shutdown
```
Total: 13287816
2021-01-19 07:04:19 +09:00
Yu Watanabe
772e0a76f3
test: rewrite test-sd-device-thread.c to depend only on libsystemd
...
Similarly, this makes test-udev-device-thread.c depend only on libudev.
2021-01-19 07:04:19 +09:00
Yu Watanabe
261fc53b99
test: move tests for libudev into src/libudev
2021-01-19 07:04:19 +09:00
Yu Watanabe
cf2423503b
time-wait-sync: move time-wait-sync.c -> src/timesync/wait-sync.c
...
As wait-online is located under src/network.
2021-01-19 07:04:19 +09:00
Yu Watanabe
e2e7888191
xdg: move tests for xdg-autostart-generator
...
Then, we can drop src/xdg-autostart-generator from include directories
later.
2021-01-19 07:04:19 +09:00
Yu Watanabe
a79e17234d
meson.build: drop unused variable
2021-01-19 07:04:19 +09:00
Yu Watanabe
0703d2f6c4
test: move test-systemd-tmpfiles.py from src/test to test
...
As the other test scripts, e.g. test-sysusers.sh, are located under
test rather than src/test.
2021-01-19 07:04:19 +09:00
Yu Watanabe
0f46548deb
login: move src/login/logind-acl.[ch] -> src/shared/devnode-acl.[ch]
...
The files are used by logind and udevd. And the functions in the files
are not specific to logind, and quite general enough to move to
libshared.
2021-01-19 07:04:19 +09:00
Yu Watanabe
100fd93f55
tmpfiles: move offline-passwd.[ch] to src/tmpfiles
...
offline-passwd.[ch] are only used by systemd-tmpfiles and the relevant
test. And are not included in libshared. So, it is not suitable to
located under src/shared.
2021-01-19 07:04:18 +09:00
Yu Watanabe
99b9f8fddd
sd-journal: move source files for sd-journal to src/libsystemd/sd-journal
2021-01-19 07:04:18 +09:00
Yu Watanabe
b9b442a0cc
analyze: resolve executable path if it is relative
...
Fixes #18252 .
2021-01-19 06:39:25 +09:00
Yu Watanabe
ece852c845
path-util: also check absolute path is a directory or not in find_executable()
2021-01-19 06:39:07 +09:00
Yu Watanabe
aac6673f02
network: address-pool: also check conflicts with foreign addresses
...
Fixes CI issue found in
https://github.com/systemd/systemd-centos-ci/pull/334 .
2021-01-17 23:23:08 +00:00
Yu Watanabe
2400743e1f
core: add logs when credential value is duplicated
2021-01-18 01:32:49 +09:00
Yu Watanabe
8c6493e59e
core: make config_parse_documentation() explicitly return 0 on success
2021-01-18 01:27:14 +09:00
Yu Watanabe
16eb0c4ad0
core: add missing log_oom()
2021-01-18 01:25:05 +09:00
Yu Watanabe
ca9169f47f
core: do not fail when an invalid cpu affinity is specified
2021-01-18 01:22:48 +09:00
Yu Watanabe
22ede2c1dc
Merge pull request #18286 from ssahani/net-1
...
tree-wide: more use of hashmap_ensure_put() and TAKE_PTR()
2021-01-18 01:18:17 +09:00
Yu Watanabe
25351bc557
basic: drop unused module
...
Follow-up for 35b42e5600 .
2021-01-17 11:48:05 +00:00
Yu Watanabe
6e75df0866
Merge pull request #18284 from ssahani/net-7
...
Tree wide tighten variable scope used in loop
2021-01-17 20:08:59 +09:00
Yu Watanabe
f9ead1a2f4
Merge pull request #18230 from ssahani/macvlan-bcqueuelen
...
network: macvlan - add support to configure rx queue for broadcast / multicast
2021-01-17 20:05:22 +09:00
Yu Watanabe
38f3e0a58d
tree-wide: fix typo
2021-01-17 16:20:27 +09:00
Yu Watanabe
16ed53658a
Merge pull request #18243 from ssahani/ensure-put-use
...
tree-wide: introduce hashmap_ensure_put() and use it
2021-01-17 15:39:41 +09:00
Yu Watanabe
95dd454edc
Merge pull request #18261 from ssahani/net2
...
network: modernize routing policy rule and add 0 validation where needed
2021-01-17 15:39:01 +09:00
Yu Watanabe
983cbd91a8
udev: add missing short option name
...
Follow-up for 4fcc033b54 .
Fixes CID#1442307.
2021-01-13 21:53:13 +01:00
Yu Watanabe
414cbc3c73
Merge pull request #9864 from ximion/master
...
localed: Run locale-gen if available to generate missing locale
2021-01-14 00:20:04 +09:00
Yu Watanabe
cb2ae9f8b9
Merge pull request #18170 from OnkelUlla/udev_introduce_TxQueueLen=_setting
...
udev: introduce TxQueueLength= setting
2021-01-14 00:19:29 +09:00
Yu Watanabe
fec1b650ad
network: introduce ManageTemporaryAddress= setting in [DHCPv6PrefixDelegation] section
...
The setting is enabled by default, as NDisc also enabled the flag by
default.
Closes #18208 .
2021-01-14 00:17:05 +09:00
Yu Watanabe
8b76ee89d7
network: drop a function argument which is always constant
2021-01-14 00:16:10 +09:00
Yu Watanabe
65ab27211c
Merge pull request #18225 from poettering/tmpfiles-argument
...
tmpfiles: fix documentation about quoting the "argument" field in tmpfiles.d snippets
2021-01-13 15:57:42 +09:00
Yu Watanabe
537ae584c8
network: reconfigure interface when wifi iftype is updated
...
Follow-up for a66a402da4 .
Fixes #18059 .
2021-01-13 06:42:02 +09:00
Yu Watanabe
09db85080a
Merge pull request #18216 from yuwata/dhcp-user-class-length
...
dhcp: length of each user class field must be positive
2021-01-13 05:43:10 +09:00
Yu Watanabe
048be097d2
Merge pull request #18157 from ssahani/vlan-qos
...
network: Allow to configure VLan egress qos maps
2021-01-13 05:42:53 +09:00
Yu Watanabe
7c5869530c
Merge pull request #17628 from ssahani/network-gso
...
udev: Add support to configure Generic Segment Offload
2021-01-13 05:42:23 +09:00
Yu Watanabe
df49792e01
timedate: actually reset system time with new timezone
...
Fix a bug introduced by 56b0ef2fc2 .
Closes CID#1436943.
2021-01-13 00:59:33 +09:00
Yu Watanabe
885598f36c
Merge pull request #18212 from yuwata/two-coverity-fixes
...
Two coverity fixes
2021-01-13 00:57:34 +09:00
Yu Watanabe
6fda02e150
network: merge config_parse_dhcp_user_class() and _vendor_class()
2021-01-13 00:07:48 +09:00
Yu Watanabe
019951ec97
dhcp6: refuse zero length vendor class
...
Also, fixes the maximum length of the vendor class to UINT16_MAX.
Moreover, a memory leak in sd_dhcp6_client_set_request_vendor_class().
2021-01-13 00:07:33 +09:00
Yu Watanabe
361eb4125d
dhcp6: add an assert()
2021-01-13 00:00:56 +09:00
Yu Watanabe
8b6ea477a7
dhcp: do not assign value twice
2021-01-13 00:00:56 +09:00
Yu Watanabe
5a99444e4f
dhcp6: refuse zero length dhcp user class
...
This also fixes a memory leak when
sd_dhcp6_client_set_request_user_class() is called multiple times.
2021-01-13 00:00:56 +09:00
Yu Watanabe
b79951fa32
network: refuse zero length dhcp user class
2021-01-13 00:00:56 +09:00
Yu Watanabe
e4336c0a5d
dhcp: length of each user class field must be positive
...
This also fixes an memory leak when sd_dhcp_client_set_user_class()
is called multiple times.
2021-01-13 00:00:56 +09:00
Yu Watanabe
7c08f24a50
Merge pull request #18217 from ssahani/todo-network
...
TODO: Already implemented with SendDecline=
2021-01-12 22:53:44 +09:00
Yu Watanabe
8f13ef254b
sd-bus: fix memleak
...
Closes CID#1437780.
2021-01-12 20:46:47 +09:00
Yu Watanabe
ecb3e9fba3
boot: at least one of os_name_pretty or os_name exists in this block
...
Closes CID#1438933.
2021-01-12 20:43:06 +09:00
Yu Watanabe
0375cb546f
Merge pull request #18209 from poettering/virt-fix
...
three minor fixes to virt.c
2021-01-12 14:24:37 +09:00
Yu Watanabe
1536b7b2d0
network: introduce new UseAddress= setting in [DHCPv6] section
...
If it is disabled, then the addresses provided by the DHCPv6 server will
be ignored.
Closes #18203 .
2021-01-12 14:19:03 +09:00
Yu Watanabe
e2645ca619
Merge pull request #18204 from yuwata/wifi-util-fix-18059
...
wifi-util: do not ignore wifi iftype when the interface does not have SSID
2021-01-12 14:18:24 +09:00
Yu Watanabe
a66a402da4
wifi-util: do not ignore wifi iftype when SSID is not set
...
Previously, if an interface does not have SSID, e.g. run in mesh-point
type, then the wifi iftype obtained by the netlink call was ignored.
Fixes #18059 .
2021-01-12 01:12:37 +09:00
Yu Watanabe
a533007815
wifi-util: cleanup header inclusion
2021-01-12 01:11:50 +09:00
Yu Watanabe
2e385c48b4
linux: move nl80211.h to basic/linux
...
As sd-netlink uses the header.
2021-01-11 13:31:38 +09:00
Yu Watanabe
59538b6418
udev: drop doubled blank line
2021-01-11 13:29:39 +09:00
Yu Watanabe
2224669546
Merge pull request #18178 from weblate/weblate-systemd-master
...
Translations update from Weblate
2021-01-10 20:41:46 +09:00
Yu Watanabe
83f0ff1eda
Merge pull request #18137 from keszybz/deprecate-blanket-import-environment
...
Deprecate blanket import-environment
2021-01-09 09:24:16 +09:00
Yu Watanabe
66bf4617b1
Merge pull request #18169 from OnkelUlla/can_bus_error_reporting
...
network: can: add support for bus error reporting
2021-01-09 09:21:54 +09:00
Yu Watanabe
608ac76367
Merge pull request #18168 from yuwata/network-cleanups
...
network: several follow-ups for recently merged PRs
2021-01-09 09:21:19 +09:00
Yu Watanabe
0c2c0fd256
resolve: fix use after free in DnsAnswer
...
This fixes a bug introduced by ae45e1a383 .
The set DnsAnswer::set_items contains the reference to the array in
DnsAnswer. So, the set must be reconstructed when we realloc() the
object.
Fixes #18132 .
2021-01-08 19:06:00 +01:00