Yu Watanabe
da44fb8a72
test: add a testcase for 23 wirguard peers
2019-01-14 10:08:58 +09:00
Yu Watanabe
e1f717d4a0
network: wireguard: rename and split set_wireguard_interface()
...
This does not change the behavior except for fixing the issue #11404 .
Fixes #11404 .
2019-01-14 10:08:40 +09:00
Yu Watanabe
33c2ea8019
netlink: set maximum size of WGDEVICE_A_IFNAME
2019-01-14 09:47:31 +09:00
Yu Watanabe
227bcd91b4
man: fix reference
...
Fixes #11396 .
2019-01-13 11:12:20 +01:00
Yu Watanabe
8d6c4b310d
udev: use ENODATA when 'No entry found from hwdb'
...
Before:
IMPORT builtin 'hwdb' fails: No such file or directory
After:
IMPORT builtin 'hwdb' fails: No data available
Previous log is confusing and may be understood as hwdb file not exist.
2019-01-13 18:04:10 +09:00
Yu Watanabe
a119328608
udev: use SYNTHETIC_ERRNO() macro in log_device_*_errno()
2019-01-13 17:50:47 +09:00
Yu Watanabe
40f116f53d
README: mention that meson-0.49 is required to build PIEs
...
Follow-up for 4e4bbc439e .
2019-01-13 09:47:10 +09:00
Yu Watanabe
bd36ef0a7c
NEWS: add more entries
2019-01-13 09:47:10 +09:00
Yu Watanabe
e0b7a5d151
udevd: refuse devices which do not have ACTION property
2019-01-12 09:32:20 +09:00
Yu Watanabe
33ad742a84
udevd: drop unnecessary brackets
2019-01-12 09:32:20 +09:00
Yu Watanabe
c0ff3d6cbc
udevd: make worker also log ACTION property
2019-01-12 09:32:20 +09:00
Yu Watanabe
25d4f5b071
udevd: reject devices which do not have SEQNUM
2019-01-12 09:32:20 +09:00
Yu Watanabe
956833b417
udevd: provide worker_hash_ops and drop manager_workers_free()
2019-01-12 09:32:20 +09:00
Yu Watanabe
d40534643b
udevd: use structured initializer at one more place
2019-01-12 09:32:20 +09:00
Yu Watanabe
1f3f6bd007
udevd: use worker_free() on failure in worker_new()
...
Otherwise, worker_monitor may not unrefed correctly.
2019-01-12 09:32:20 +09:00
Yu Watanabe
ee0b9e721a
sd-device-monitor: fix ordering of setting buffer size
...
By b1c097af8d (#10239 ), the receive buffer
size for uevents was set by SO_RCVBUF at first, and fallback to
use SO_RCVBUFFORCE. So, as SO_RCVBUF limits to the buffer size
net.core.rmem_max, which is usually much smaller than 128MB udevd requests,
uevents buffer size was not sufficient.
This fixes the ordering of the request: SO_RCVBUFFORCE first, and
fallback to SO_RCVBUF. Then, udevd's uevent buffer size can be set to
128MB.
This also revert 903893237a .
Fixes #11314 and #10754 .
2019-01-11 21:52:23 +01:00
Yu Watanabe
28daa1d10d
Merge pull request #11400 from ffontaine/master
...
Fix build with older kernels
2019-01-12 05:51:37 +09:00
Yu Watanabe
5497239f95
Merge pull request #11350 from yuwata/logind-inhibitwhat-cleanups
...
login: cleanups for enum InhibitWhat
2019-01-10 14:26:21 +09:00
Yu Watanabe
8f44e0f419
Merge pull request #11361 from yuwata/follow-up-11352
...
core/socket: two follow-ups for #11352
2019-01-10 14:25:58 +09:00
Yu Watanabe
943179fe2a
Merge pull request #11366 from keszybz/a-few-unrelated-cleanups
...
A few unrelated cleanups
2019-01-10 14:25:25 +09:00
Yu Watanabe
d253a45e1c
core/mount: make mount_setup_existing_unit() not drop MOUNT_PROC_JUST_MOUNTED flag from units
...
This fixes a bug introduced by ec88d1ea05 .
Fixes #11362 .
2019-01-09 12:51:00 +01:00
Yu Watanabe
82d9ac23fd
udev-node: make link_find_prioritized() return negative value when nothing found
...
Fixes a bug introduced by a2554acec6 .
Fixes RHBZ#1662303.
2019-01-08 19:21:44 +01:00
Yu Watanabe
d501e52bf1
core/socket: drop unnecessary assignment to 'r'
...
Follow-up for e541734528 .
As suggested in #11352 .
2019-01-09 02:11:19 +09:00
Yu Watanabe
6548603235
core/socket: use macro to define log_address_error_errno()
...
Then, it is not necessary to suppress warnings.
Follow-up for ae05e1b658 .
2019-01-09 02:09:36 +09:00
Yu Watanabe
06c2f0a816
login: simplify the condtion in assertion and slightly decrease binary size
2019-01-08 23:44:50 +09:00
Yu Watanabe
6b9f8b7135
login: use free_and_strdup() at one more place
2019-01-08 23:44:50 +09:00
Yu Watanabe
543680f415
login: adjust range of InhibitWhat in assertions
2019-01-08 23:44:45 +09:00
Yu Watanabe
c494b739a4
udevadm: refuse to run trigger, control, settle and monitor commands in chroot
...
Closes #11333 .
2019-01-08 10:31:19 +01:00
Yu Watanabe
787a133f2d
NEWS: also mention that clock file for timesyncd may need to move
...
Follow-up for aa2437e2ae .
Closes #11329 .
2019-01-08 10:20:33 +01:00
Yu Watanabe
ff650ffe34
test: add testcases for the lines prefixed with whitespaces
2019-01-08 14:12:22 +09:00
Yu Watanabe
b41dd0d2db
conf-parser: accept whitespaces before comments
...
Closes #11343 .
2019-01-08 14:05:15 +09:00
Yu Watanabe
71b21730d4
conf-parser: mention that unknown lvalue is ignored
2019-01-08 12:50:58 +09:00
Yu Watanabe
bca3222cd6
Merge pull request #11351 from yuwata/ethtool-port-table
...
ethtool: cleanups for port_table
2019-01-08 12:23:11 +09:00
Yu Watanabe
c226800996
Merge pull request #11232 from yuwata/fix-9130-alternative
...
network: always check link is ready when address is updated
2019-01-08 12:22:21 +09:00
Yu Watanabe
ae05e1b658
core/socket: logs address or path which fails to be initialized
...
Closes #11348 .
2019-01-08 04:40:46 +09:00
Yu Watanabe
e541734528
core/socket: use _cleanup_ attribute for closing fds on error
2019-01-08 04:11:59 +09:00
Yu Watanabe
fc2d74ab05
core/socket: use log_unit_*()
2019-01-08 04:11:45 +09:00
Yu Watanabe
44909f1c9f
ethtool: minimize the size of port_table
...
Note that `_NET_DEV_PORT_MAX` is 0x100.
2019-01-08 03:30:15 +09:00
Yu Watanabe
1637c3575b
ethtool: use kernel defined values for NET_DEV_PORT_*
2019-01-08 03:28:47 +09:00
Yu Watanabe
f8bfa31856
login: do not use cast to bool for enum
2019-01-08 02:39:31 +09:00
Yu Watanabe
577ab71c58
libudev-util: make util_replace_whitespace() read only len characters
...
This effectively reverts df8ba4fa0e .
Fixes #11264 .
2019-01-03 15:10:57 +01:00
Yu Watanabe
d25e127dbe
sleep: install default sleep.conf
...
Closes #11310 .
2019-01-03 14:43:15 +01:00
Yu Watanabe
a92f2af28a
Merge pull request #11230 from keszybz/version-string-alt
...
Generate version string from git describe (alternative approach)
2019-01-03 21:33:55 +09:00
Yu Watanabe
8a6d06cbaa
man: update color of journal logs in DEBUG level
...
Fixes #11303 .
2019-01-02 20:34:24 -08:00
Yu Watanabe
788291d3b4
Merge pull request #11274 from yuwata/fix-11272
...
network: set link state configuring before setting addresses
2019-01-03 08:29:26 +09:00
Yu Watanabe
6f783ce5f5
test-network: disable DNS function of dnsmasq
2019-01-02 18:37:10 +09:00
Yu Watanabe
0532bd0883
test-network: drop unused variable
2019-01-02 18:37:10 +09:00
Yu Watanabe
094b54790f
test: fix neighbor address
2019-01-02 18:37:10 +09:00
Yu Watanabe
2428613f85
network: set *_configured flags to false before requesting addresses or freinds
...
Fixes #11272 .
2019-01-02 18:37:10 +09:00
Yu Watanabe
47079967e6
network: rename link_set_routing_policy_rule() to link_request_set_routing_policy_rule()
...
For consistency to other functions.
2019-01-02 18:37:10 +09:00
Yu Watanabe
f3ef324dfa
network: do not ignore errors on link_request_set_neighbors() and link_set_routing_policy()
2019-01-02 18:37:10 +09:00
Yu Watanabe
4fe0caadc8
test: add test for sending/receiving an invalid device
2019-01-02 04:01:07 +09:00
Yu Watanabe
ff86c92e30
Revert "udevd: configure a child process name for worker processes"
...
This reverts commit 49f3ee7e74 .
2019-01-02 04:01:07 +09:00
Yu Watanabe
b261494128
Revert "sd-device: ignore bind/unbind events for now"
...
This reverts commit 56c886dc7e .
Fixes #11277 and #11299 .
2019-01-02 04:00:14 +09:00
Yu Watanabe
03475e2232
meson: check whether C.UTF-8 exists or not and use it if exists
...
If C.UTF-8 does not exist, then fallback to en_US.UTF-8 or C.
2019-01-02 03:41:36 +09:00
Yu Watanabe
18fee12a2d
sd-device: fix segfault when error occurs in device_new_from_{nulstr,strv}()
...
As devpath may not be set yet.
When debug logging is enabled, log_device_*() calls
sd_device_get_sysname(). So, we should not assume that devpath is always
set.
Fixes #11258 .
2018-12-30 22:47:20 +09:00
Yu Watanabe
1f00998c87
ask-password-api: do not call ask_password_keyring() if keyname == NULL
...
Fixes #11295 .
2018-12-30 21:13:47 +09:00
Yu Watanabe
8a111277c4
ask-password: make ask_password_keyring() static
2018-12-30 21:09:41 +09:00
Yu Watanabe
adeb26c1af
udev-event: do not read stdout or stderr if the pipefd is not created
...
Fixes #11255 .
2018-12-28 12:51:40 +01:00
Yu Watanabe
a5c67ccc57
switch-root: fix error message
...
Fixes #11261 .
2018-12-28 15:37:15 +09:00
Yu Watanabe
ac60877f1d
test: add a testcase for Address.Peer= in .network unit
2018-12-23 08:04:54 +09:00
Yu Watanabe
c8f7123e00
network: always check link is ready when address is updated
2018-12-23 08:04:36 +09:00
Yu Watanabe
89b3fa6626
network: fix indentation
2018-12-23 08:00:59 +09:00
Yu Watanabe
e4a0fe6343
dhcp: drop unnecessary brackets
2018-12-23 08:00:59 +09:00
Yu Watanabe
da3c49e9a8
dhcp: use cast-to-bool for pointers
2018-12-23 08:00:59 +09:00
Yu Watanabe
759248856c
dhcp: fix indentation
2018-12-23 08:00:59 +09:00
Yu Watanabe
66e0bb336e
network: decrease and fix indentation
2018-12-23 07:38:55 +09:00
Yu Watanabe
a3ebe5eb62
udevadm: add two more assertions
...
Suggested by Coverity.
Closes CID#1397033 and CID#1395708.
2018-12-21 15:49:18 +01:00
Yu Watanabe
aa2437e2ae
NEWS: mention DynamicUser= is disabled for networkd, resolved and timesyncd
...
Which was disabled by #10117 .
2018-12-21 05:22:21 +09:00
Yu Watanabe
d6131be94d
NEWS: mention DynamicTransmitLoadBalancing=
...
Which was added by #11142 .
2018-12-17 07:25:48 +01:00
Yu Watanabe
1f7951241f
bash-completion: also suggests device units
...
Follow-up for b6854081ff .
2018-12-17 14:44:58 +09:00
Yu Watanabe
19582502c0
bash-completion: udevadm: suggest argument for several options
2018-12-17 14:44:00 +09:00
Yu Watanabe
d5acf7da91
bash-completion: fix __get_interfaces()
2018-12-17 11:13:15 +09:00
Yu Watanabe
45cb8247d9
Merge pull request #11142 from ssahani/bond-dynamic-tlb
...
netdev bond: add support to configure tlb_dynamic_lb
2018-12-17 02:06:05 +01:00
Yu Watanabe
7082bb05ad
timesync: use typesafe resolve_getaddrinfo()
2018-12-17 10:02:36 +09:00
Yu Watanabe
f2935c77c6
socket-proxyd: use typesafe resolve_getaddrinfo()
2018-12-17 10:02:36 +09:00
Yu Watanabe
1061dab129
netdev: use typesafe resolve_getaddrinfo() in wireguard.c
2018-12-17 10:02:36 +09:00
Yu Watanabe
a4c9ae400f
netdev: sort headers
2018-12-17 10:02:36 +09:00
Yu Watanabe
ceb26cdbc2
sd-resolve: add sd_resolve_get{addr,info}_with_destroy_callback() and typesafe macros
2018-12-17 10:02:36 +09:00
Yu Watanabe
f675a1f005
bash-completion: busctl: support --json and -j option
2018-12-14 08:55:38 +01:00
Yu Watanabe
5cd6711621
sd-netlink: set destroy_callback only if asynchronous call succeeds
2018-12-14 08:50:51 +01:00
Yu Watanabe
903893237a
sd-device: do not change buffer size if the socket is already bound
...
From the results of CIs in #11076 , changing buffer size may cause
issue #10754 . So, let's prohibit to change the size if it is already
bound.
This also reverts commit 986ab0d2dc .
2018-12-14 09:33:06 +09:00
Yu Watanabe
c821e84ac7
sd-device: do not modify socket option(s) if socket is passed by PID1
...
If the socket fd is passed by PID1, then it is created by .socket unit
and we have already set sufficient option(s) for the socket.
So, let's not touch the passed socket.
2018-12-14 09:28:33 +09:00
Yu Watanabe
a153a1de75
Revert "sd-device: do not call device_monitor_enable_receiving() for passed fd from pid1"
...
This reverts commit 916707cca5 .
As the CI results on #11076 , #10754 is not fixed by the commit,
but by 986ab0d2dc . So, let's revert the
commit.
2018-12-14 09:24:31 +09:00
Yu Watanabe
ff1cf894d2
bash-completion: nspawn: support recently added options
2018-12-14 03:18:33 +09:00
Yu Watanabe
223f58ba8d
bash-completion: run: support recently added options
2018-12-14 03:18:33 +09:00
Yu Watanabe
2e68a49dc8
bash-completion: systemctl: use --output=help to show suggestions
2018-12-14 02:33:21 +09:00
Yu Watanabe
fdc33681ae
bash-completion: journalctl: use --output=help to show suggestions
2018-12-14 02:33:21 +09:00
Yu Watanabe
d104486ab6
bash-completion: journalctl: drop deprecated --new-id128 option
2018-12-14 02:33:21 +09:00
Yu Watanabe
3b59e2cbed
bash-completion: loginctl: suggest argument for --machine option
2018-12-14 02:22:40 +09:00
Yu Watanabe
dfeebf55d9
bash-completion: loginctl: suggest argument for --output option
2018-12-14 02:18:35 +09:00
Yu Watanabe
fad73e9deb
bash-completion: machinectl: suggest arguments for --verify and --format
...
This also changes to use '--output=help' for suggesting arguments of
--output option.
2018-12-14 02:18:24 +09:00
Yu Watanabe
0e5bea97e9
bash-completion: machinectl: support import-fs
2018-12-14 01:52:48 +09:00
Yu Watanabe
a73b2f4ab3
bash-completion: bootctl: support set-default and set-oneshot
2018-12-14 01:26:52 +09:00
Yu Watanabe
ed0c5a6f89
bash-completion: bootctl: suggest argument for --path option
2018-12-14 01:26:25 +09:00
Yu Watanabe
8ed22786aa
bash-completion: bootctl: add one missing option
2018-12-14 01:25:31 +09:00
Yu Watanabe
416b88013c
systemctl: check triggering units only for stopped units
...
Fixes #11088 .
2018-12-10 11:06:28 +01:00
Yu Watanabe
d8a0bcfd77
tree-wide: drop header for emacs from python scripts
2018-12-10 03:17:33 +09:00
Yu Watanabe
87421ff560
tools: add one more SPDX license header
2018-12-10 03:08:52 +09:00
Yu Watanabe
fc1c09e1df
lgtm: use python3
2018-12-10 03:07:17 +09:00