Yu Watanabe
18094bdcf4
Merge pull request #10381 from poettering/coverity-fixes
...
fixes for various recent coverity issues
2018-10-14 18:58:36 +09:00
Yu Watanabe
fd8879498d
Revert "alloc-util: return NULL if 0-sized allocation is requested"
...
This reverts commit c05107767b .
2018-10-13 12:34:32 +02:00
Yu Watanabe
8837715ef2
Merge pull request #10371 from poettering/sd-event-man-fix
...
trivial sd-event man page fixes
2018-10-13 17:30:44 +09:00
Yu Watanabe
b4b3649a94
Merge pull request #10366 from poettering/in-set-fixes
...
IN_SET() compile time check fixes
2018-10-13 17:25:36 +09:00
Yu Watanabe
eb43e8a76d
test: sort included headers
2018-10-12 17:54:23 +09:00
Yu Watanabe
be44b572f3
meson: fix '-Dstatic-libsystemd=true' or '-Dstatic-libudev=true'
...
Follow-up for a5d8835c78 .
2018-10-12 17:54:23 +09:00
Yu Watanabe
cb3e926a5d
test: add test for 'thread safety' of libudev
...
This adds a test for 715a970548d03fed18dc66c411c8b42ff21029cf.
2018-10-12 17:54:23 +09:00
Yu Watanabe
5eddbba3a1
meson: do not use mempool from libudev.so
...
Follow-up for a5d8835c78 .
2018-10-12 17:54:23 +09:00
Yu Watanabe
a6ee01caf3
test: add test for 'thread safety' of sd-device
...
This adds a test for a5d8835c78 .
2018-10-12 17:54:23 +09:00
Yu Watanabe
657ccaac1b
sd-device: drop unnecessary header
2018-10-12 17:54:23 +09:00
Yu Watanabe
3ffd12bfbe
test: add tests for $SYSTEMD_MEMPOOL=
...
This adds tests for b4f607433c and
205c085bc3 (#9792 ).
2018-10-12 17:54:23 +09:00
Yu Watanabe
958b8c7bd7
core: fix member access within null pointer
...
config_parse_tasks_max() is also used for parsing system.conf or
user.conf. In that case, userdata is NULL.
Fixes #10362 .
2018-10-11 22:23:39 +02:00
Yu Watanabe
25270cf3db
resolve: fix member access within null pointer
...
Fixes #10333 .
2018-10-11 18:36:21 +09:00
Yu Watanabe
f55f2dce05
resolve: use structured initializers
2018-10-11 18:35:04 +09:00
Yu Watanabe
07a26e42da
udev-builtin: move definitions related to builtin commands to udev-builtin.h
2018-10-11 04:21:14 +09:00
Yu Watanabe
7d68eb1bdf
udev-ctrl: move prototypes of udev_ctrl_*() to udev-ctrl.h
2018-10-11 04:21:14 +09:00
Yu Watanabe
a2554acec6
udev-node: replace udev_device by sd_device and modernize code a bit
2018-10-11 04:21:14 +09:00
Yu Watanabe
7006860271
udev-watch: replace udev_device by sd_device and modernize code a bit
2018-10-11 04:21:14 +09:00
Yu Watanabe
da4bb75f59
udev: drop unused function udev_build_argv()
2018-10-11 04:21:14 +09:00
Yu Watanabe
12a509e512
Merge pull request #10351 from keszybz/meson-cpp-fixups
...
Meson c++-related fixups
2018-10-10 19:50:35 +09:00
Yu Watanabe
0ae286e697
network: make netlink callbacks return 1
...
This is not necessary. But most of netlink callbacks in networkd
return 1.
2018-10-10 14:43:05 +09:00
Yu Watanabe
c8ee637e7f
network: use '_handler' suffix for netlink callbacks
2018-10-10 14:43:05 +09:00
Yu Watanabe
c6de4729b1
network: rename ndisc_netlink_handler() to ndisc_route_handler()
2018-10-10 14:43:05 +09:00
Yu Watanabe
26d6b2147e
network: drop break line in comment
2018-10-10 14:43:05 +09:00
Yu Watanabe
e6bf77744a
network: make netlink callback not return negative value
...
Fixes #10320 .
2018-10-10 14:43:05 +09:00
Yu Watanabe
e8d1666687
network: drop route_expire_callback() as it is duplicate of link_route_remove_handler()
2018-10-10 14:43:05 +09:00
Yu Watanabe
fdb20b7c59
network: make manager_dhcp6_prefix_remove() static
2018-10-10 14:43:05 +09:00
Yu Watanabe
09dd32eea7
network: make netdev_enslave() static
2018-10-10 14:43:05 +09:00
Yu Watanabe
17e57d3cae
networkd: drop unused element from AddressLabel struct
2018-10-10 14:43:05 +09:00
Yu Watanabe
9bcb210ebc
network: add missing set_free() for Manager.dirty_links
2018-10-10 14:43:05 +09:00
Yu Watanabe
1046bf9b1a
network: add destroy callbacks for asynchronous netlink calls
2018-10-10 14:43:05 +09:00
Yu Watanabe
0d0f02cd15
test: add tests for destroy callback of asynchronous netlink call
2018-10-10 14:43:05 +09:00
Yu Watanabe
545bab1f0a
sd-netlink: add destroy_callback argument to sd_netlink_call_async()
2018-10-10 14:43:05 +09:00
Yu Watanabe
2fea60901d
sd-netlink: use structured initializers
2018-10-10 14:43:05 +09:00
Yu Watanabe
f6bdbd9e00
sd-netlink: fix error handling in sd_netlink_call_async()
2018-10-10 14:43:05 +09:00
Yu Watanabe
1e35734480
sd-hwdb: update error log a bit
2018-10-09 14:46:19 +02:00
Yu Watanabe
9c57a73b13
tree-wide: use CMP() macros where applicable
2018-10-09 14:45:55 +02:00
Yu Watanabe
3f6f58e03a
test: add TEST-24-UNIT-TESTS running all basic tests under containers
2018-10-09 19:11:21 +09:00
Yu Watanabe
0013fac248
test: do not use global variable to pass error
2018-10-09 19:11:21 +09:00
Yu Watanabe
dd75c133d8
test: replace duplicated Makefile by symbolic link
2018-10-09 19:11:21 +09:00
Yu Watanabe
ad931fee50
test: make install_keymaps() optionally install more keymaps
2018-10-09 19:11:21 +09:00
Yu Watanabe
83a7051ee1
test: add paths of keymaps in install_keymaps()
...
It seems that the paths of directories storing keymaps are changed.
2018-10-09 19:11:21 +09:00
Yu Watanabe
7d10ec1cda
test: introduce install_zoneinfo()
...
But it is not called by default.
2018-10-09 19:11:21 +09:00
Yu Watanabe
e3d3dada24
test: install libraries required by tests
2018-10-09 19:11:21 +09:00
Yu Watanabe
f6d783ac3d
meson: use same compilers to build fuzzers
2018-10-09 11:54:10 +02:00
Yu Watanabe
56f56d5ad8
meson: use c_args in generator scripts ( #10289 )
...
May be useful in some cases.
2018-10-08 18:37:06 +02:00
Yu Watanabe
aacd352d8c
libsystemd: drop *_unrefp from symbol list
...
Follow-up for 3f608087bd and
6083c4b763 .
2018-10-08 18:28:58 +02:00
Yu Watanabe
dcf0b8a5be
Merge pull request #10293 from poettering/cryptsetup-fixes
...
two tiny cryptsetup-generator fixes
2018-10-06 23:35:28 +09:00
Yu Watanabe
c250bf671b
core/dbus-execute: fix parsing CPUScheduling* and Nice for transient services
...
Fixes #10290 .
2018-10-05 21:41:05 +02:00
Yu Watanabe
8a89c5392d
man: fix explanation about UID/GID field in tmpfiles.d(5)
...
Fixes #9495 .
2018-10-05 19:06:10 +02:00
Yu Watanabe
35f2cb2841
sd-resolve: make struct addrinfo defined
2018-10-05 17:09:26 +09:00
Yu Watanabe
d6263ee4d5
meson: also run compile tests for not installed systemd headers
...
Follow-up for b62f900866 (#10277 ).
2018-10-05 17:08:10 +09:00
Yu Watanabe
e913b7988f
test-execute: add a test for systemcall filter ( #10273 )
...
This adds a test for issue #9939 which is fixed by
a5404992cc (#9942 ).
2018-10-05 14:46:30 +09:00
Yu Watanabe
30782b4396
sd-netlink: sort headers and include net/ethernet.h
2018-10-05 14:27:32 +09:00
Yu Watanabe
b81b9d406d
test: fix memleak in test-fs-util
...
Fixes #10267 and CID#1395997.
2018-10-04 16:24:44 +09:00
Yu Watanabe
b7172f3471
test-execute: also tests under the condition that unshare() is filtered
...
This is mainly for testing 1beab8b0d0 .
2018-10-03 08:33:23 +02:00
Yu Watanabe
6aea927681
test: make systemd-networkd-tests.py run on arbitrary directory
2018-10-03 14:38:30 +09:00
Yu Watanabe
ec6a47044a
test: replace stop+start by restart
...
This suppress the following warnings:
```
Warning: Stopping systemd-networkd.service, but it can still be activated by:
systemd-networkd.socket
```
2018-10-03 14:36:34 +09:00
Yu Watanabe
5b054bfc10
test: add a testcase for oss-fuzz#10746
2018-10-03 08:53:42 +09:00
Yu Watanabe
84452783b8
dhcp6: check option length before reading values
...
Fixes oss-fuzz#10746
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10746 .
2018-10-03 08:49:55 +09:00
Yu Watanabe
9380d34c2a
test: add test for sd_device
2018-10-02 23:04:55 +02:00
Yu Watanabe
491d3911db
test: fix tests for supplementary groups
...
Fixes #9881 .
2018-10-02 09:48:53 +02:00
Yu Watanabe
5c434af721
Merge pull request #10218 from keszybz/export-sd-device-hwdb
...
Export functions in sd-device and sd-hwdb
2018-10-01 19:45:55 +02:00
Yu Watanabe
f9c8c01fcc
test: try system bus if user bus cannot be opened
2018-10-01 10:15:54 +02:00
Yu Watanabe
e986910e87
import: sparse_write() returns negative errno
2018-10-01 08:29:16 +02:00
Yu Watanabe
213e759ad5
dhcp6: fix memleak about sd_event
2018-09-30 14:17:33 +02:00
Yu Watanabe
455e799943
Merge pull request #10200 from evverx/fuzz-dhcp6-client
...
Add a fuzzer for dhcp6-client
2018-09-29 13:41:52 +02:00
Yu Watanabe
431a4bc8c0
dhcp6: fix memleak
...
Let's drop client_set_lease() because just writing what it does in both
places is simpler.
Fixes #10157 .
2018-09-27 18:14:19 +02:00
Yu Watanabe
cb1bdeaf56
dhcp6: fix buffer size checking
2018-09-27 23:48:51 +09:00
Yu Watanabe
23976cb928
dhcp6: use offsetof instead of sizeof
2018-09-27 23:41:23 +09:00
Yu Watanabe
e2975f8548
sd-dhcp-lease: fix memleaks
2018-09-27 18:04:59 +09:00
Yu Watanabe
09348d4081
sd-dhecp-lease: use free_and_replace() at one more
2018-09-27 18:04:08 +09:00
Yu Watanabe
727ba17f55
network: fix memleak around Network.dhcp_vendor_class_identifier
2018-09-27 17:48:34 +09:00
Yu Watanabe
598c85cc46
network: fix alignment
2018-09-27 17:48:34 +09:00
Yu Watanabe
eeab051b28
network: strdup iif and oif when creating RoutingPolicyRule object
2018-09-27 17:48:34 +09:00
Yu Watanabe
8e37fcbd21
network: use TAKE_PTR() at one more place
2018-09-27 17:48:34 +09:00
Yu Watanabe
1b3194d8f2
network: fix memleak about routing policy
2018-09-27 17:48:34 +09:00
Yu Watanabe
9d66b48c7c
network: use structured initializer at one more place
2018-09-27 17:48:34 +09:00
Yu Watanabe
f3241c61f1
ndisc: fix two infinite loops
2018-09-26 18:54:21 +00:00
Yu Watanabe
c1ee267489
udev: use path_make_relative()
2018-09-26 22:58:57 +09:00
Yu Watanabe
6d93eeb7c8
udev-builtin: replace udev_build_argv() by strv_split_extract()
2018-09-26 22:58:51 +09:00
Yu Watanabe
feaa6db7ac
udev-event: replace udev_build_argv() by strv_split_full()
...
This also modernize udev_event_spawn() a bit.
2018-09-26 22:55:22 +09:00
Yu Watanabe
bd206af402
test: introduce test-udev-build-argv
...
This intends to clarify the rule udev_build_argv() uses.
2018-09-26 22:52:01 +09:00
Yu Watanabe
1f938af811
test: add tests for strv_split_full()
2018-09-26 22:50:02 +09:00
Yu Watanabe
8059aa9c92
strv: introduce 'relax' mode to strv_split_full()
...
If SPLIT_RELAX is specified, then it accepts unfinished quotes or
missing separator after right quote.
2018-09-26 22:48:17 +09:00
Yu Watanabe
2c3a11d86e
strv: allow to set separator NULL in strv_split() or strv_split_full()
2018-09-26 19:20:43 +09:00
Yu Watanabe
af0b60b37c
strv: introduce strv_split_full() which optionally handle quotes
2018-09-26 19:17:51 +09:00
Yu Watanabe
0fbc35524c
libsystemd: add missing 'global' specifier in libsystemd.sym
2018-09-25 23:30:58 +02:00
Yu Watanabe
6c9c51e5e2
fs-util: make symlink_idempotent() optionally create relative link
2018-09-24 18:52:53 +03:00
Yu Watanabe
c679e12af1
tree-wide: drop unnecessary initializations
2018-09-23 17:18:50 +09:00
Yu Watanabe
2c740afd16
tree-wide: do not assign unused return values
2018-09-23 17:18:50 +09:00
Yu Watanabe
8a80712bcd
logind-acl: replace strdup()+set_consume() by set_put_strdup()
2018-09-23 17:18:50 +09:00
Yu Watanabe
8090b41ed5
gpt-auto-generator: do not assign '*ret' on error
2018-09-23 17:18:50 +09:00
Yu Watanabe
403660c508
tree-wide: use streq() instead of streq_ptr()
2018-09-23 17:18:50 +09:00
Yu Watanabe
dcfbde3a43
sd-device: make sd_device_get_*() return -ENOENT if the values are not set
2018-09-23 17:18:19 +09:00
Yu Watanabe
feae122f3e
test-udev: use LOG_REALM_UDEV
...
Otherwise, even if SYSTEMD_LOG_LEVEL=debug is specified, the test does
not show most debug messages.
2018-09-22 09:56:40 +02:00
Yu Watanabe
51b006e18d
udevadm: show only version number for '--version' option
...
This effectively reverts 2bc54be485
and relevant changes in #9920 , as it is used to determine the version
of udev, e.g., dracut.
Fixes dracutdevs/dracut#468 .
2018-09-21 10:58:54 +02:00
Yu Watanabe
642d1a6d6e
test-execute: skip several tests when running in container
2018-09-21 00:45:00 +09:00
Yu Watanabe
738c74d7b1
test-execute: also check python3 is installed or not
2018-09-21 00:45:00 +09:00
Yu Watanabe
767eab4750
test-process-util: skip several verifications when running in unprivileged container
2018-09-21 00:44:29 +09:00