Yu Watanabe
380d19016e
udev-event: make subst_format_var() always provide null-terminated string on success
...
Fixes #11731 .
2019-02-18 12:54:53 +01:00
Yu Watanabe
c3a8853f6e
test-network: add tests for bonding
2019-02-18 18:07:11 +09:00
Yu Watanabe
250860e423
man: mention that bond master follows slave operstates
2019-02-18 18:06:55 +09:00
Yu Watanabe
806c86adb2
man: mention new enslaved operational state
2019-02-18 18:04:18 +09:00
Yu Watanabe
85323805be
networkctl: make enslaved operstate green
2019-02-18 18:04:18 +09:00
Yu Watanabe
959f65d32e
network: make bond master follow operstates of slaves
...
If one of bond slaves is in off, no-carrier, or dormant, then
bond master is set to degraded.
2019-02-18 18:04:11 +09:00
Yu Watanabe
ac1d4c7986
fstab-generator: also logs about x-systemd.growfs mount option
2019-02-18 11:31:10 +09:00
Yu Watanabe
7731c1c20a
fstab-generator: fix debug log
2019-02-18 11:29:45 +09:00
Yu Watanabe
b117044c09
test-network: decrease sleep time in test_bind_carrier()
...
This effectively reverts 63eb09569a ,
as the commit does not fix #11724 .
2019-02-18 06:11:50 +09:00
Yu Watanabe
25e992ba23
network: always drop configs when corresponding network file does not exist
...
Follow-up for 93b4dab57e .
Fixes #11724 .
2019-02-18 06:11:50 +09:00
Yu Watanabe
4bb91a950a
resolve: drop unnecessary %n fields from dns_resource_record_to_string()
...
And use returned value by asprintf() instead.
This hopefully fixes #11733 .
2019-02-16 23:29:08 +01:00
Yu Watanabe
18c613dc36
test-network: add tests for VRF=
2019-02-17 01:25:21 +09:00
Yu Watanabe
0ae7a66d1a
test-network: add tests for DHCP.RouteTable=
2019-02-17 01:17:40 +09:00
Yu Watanabe
3b51bbe135
test-network: drop unused variable
2019-02-17 01:17:40 +09:00
Yu Watanabe
89b9a97573
network: disable link local addressing on vrf
...
See the commment in vrf_link_scope_lookup() in drivers/net/vrf.c of
Linux kernel.
2019-02-17 01:15:23 +09:00
Yu Watanabe
63eb09569a
test-network: increase sleep time in test_bind_carrier()
...
Hopefully fixes #11667 .
2019-02-16 07:22:54 +09:00
Yu Watanabe
ee1a36aee1
Merge pull request #11727 from filbranden/minor1
...
A couple of very minor fixes
2019-02-16 07:22:00 +09:00
Yu Watanabe
57f08d5cdd
udev-rules: update log messages about OWNER= or GROUP= settings on --resolve=names=never
...
This also set lower log level for the messages.
6e2efb6c73 introduces the log messages.
But udevd may be started with --resolve-names=never, and the behavior
is expected.
Fixes #11720 .
2019-02-16 07:21:28 +09:00
Yu Watanabe
14153d1b6e
network: introduce new operational state 'enslaved'
...
If an interface has IFF_SLAVE flag, then its operational state becomes
not in 'degraded' or 'carrier', but the new 'enslaved' state.
2019-02-16 07:15:49 +09:00
Yu Watanabe
7fcee28417
network: introduce specific netlink async handler for link_set_bond()
...
This also rename link_bond_set() to link_set_bond().
2019-02-16 07:15:49 +09:00
Yu Watanabe
f2bfcdb94a
network: disable addressing on bond slave interface
2019-02-16 07:15:49 +09:00
Yu Watanabe
57445b53fb
network: add missing error check
2019-02-16 06:34:22 +09:00
Yu Watanabe
cd65d06720
test-network: add test for BindCarrier=
2019-02-15 11:30:17 +01:00
Yu Watanabe
fe3ab8458b
login: add a missing error check for session_set_leader()
...
session_set_leader() may fail. If it fails, then manager_start_scope()
will trigger assertion.
This may be related to RHBZ#1663704.
2019-02-15 11:29:34 +01:00
Yu Watanabe
308ae89c9b
test-network: add tests for wildcards in networkctl
2019-02-15 13:54:28 +09:00
Yu Watanabe
f3eeecf42e
man: network: replace LINK -> PATTERN
2019-02-15 13:47:53 +09:00
Yu Watanabe
a696290474
networkctl: accept wildcards to specify links
...
Closes #10840 .
2019-02-15 13:47:48 +09:00
Yu Watanabe
966ab36b10
network: use _cleanup_ attribute at one more place
2019-02-15 11:45:44 +09:00
Yu Watanabe
7931675087
network: configure ipv4ll route after address is set
2019-02-15 11:45:44 +09:00
Yu Watanabe
bdb9f58086
network: honor VRF table or explicitly specified route table
2019-02-15 11:45:39 +09:00
Yu Watanabe
d5fa333960
network: introduce Network::ipv6_accept_ra_route_table_set flag
...
It will be used in later commit.
2019-02-15 10:58:22 +09:00
Yu Watanabe
156ed65e3c
network: add more debugging logs when adding, removing, updateing and configuring route
2019-02-15 10:26:06 +09:00
Yu Watanabe
860e636cf6
network: minor coding style update
2019-02-15 10:23:40 +09:00
Yu Watanabe
ecebd1ecf8
NEWS: add entry about 'udevadm trigger --wait-daemon'
2019-02-15 10:18:14 +09:00
Yu Watanabe
36d28ebc04
NEWS: fix release date
2019-02-15 10:15:55 +09:00
Yu Watanabe
31cbd20253
udev: check whether systemd is running, and do not use cg_kill() if not
...
Fixes #11645 .
2019-02-13 17:07:56 +01:00
Yu Watanabe
be18d18bd8
test: add testcase for oss-fuzz#12980
2019-02-13 04:16:30 +09:00
Yu Watanabe
6e2efb6c73
udev-rule: make rule_add_key() return negative errno when too much tokens
...
As OPTIONS= rule introduce multiple tokens.
Fixes oss-fuzz#12980.
2019-02-13 04:14:21 +09:00
Yu Watanabe
05514ae196
test-network: add tests for LinkLocalAddressing=
2019-02-13 02:36:15 +09:00
Yu Watanabe
76b9bdd96f
udev-rule: check function retun value is negative or not, instead of non-zero
...
One exception is udev_event_spawn(), which returns negative or positive
value on failure.
2019-02-12 11:03:40 +09:00
Yu Watanabe
605aa52f83
udev-rule: make match_key() and match_attr() return boolean value
2019-02-12 11:03:40 +09:00
Yu Watanabe
bb175a0338
udev-rule: drop unnecessary parentheses
2019-02-12 11:03:40 +09:00
Yu Watanabe
ee60be466b
ethtool: make find_feature_index() return negative errno
2019-02-12 11:03:40 +09:00
Yu Watanabe
704dbfb279
udev-rule: make get_key() return negative errno
2019-02-12 11:03:40 +09:00
Yu Watanabe
1f362ff185
udev-rule: drop unnecessary assignments
2019-02-12 11:03:39 +09:00
Yu Watanabe
ef660d072f
udev-rule: propagate error cause in add_token()
2019-02-12 11:03:39 +09:00
Yu Watanabe
af555aa33e
man: add missing netdev kind in Tunnel section
2019-02-11 01:29:56 +09:00
Yu Watanabe
4624289279
network/tunnel: fix log message
2019-02-11 01:29:56 +09:00
Yu Watanabe
b7c2bb4c9e
network: refuse AF_UNSPEC for Tunnel devices
2019-02-11 01:29:56 +09:00
Yu Watanabe
9e64c1f8b5
network: unify netdev_{ipip,sit}_fill_message_create()
2019-02-11 01:29:56 +09:00
Yu Watanabe
3affe303d3
network: unify netdev_vti{,6}_fill_message_create()
2019-02-11 01:29:56 +09:00
Yu Watanabe
10490d9025
network/geneve: fix log message
2019-02-11 01:29:49 +09:00
Yu Watanabe
434094864c
network: use netlink_message_append_{in_addr,sockaddr}_union()
2019-02-11 01:28:09 +09:00
Yu Watanabe
67b19a4961
sd-netlink: unify sd_netlink_message_append_in{,6}_addr() and _sockaddr_in{,6}()
2019-02-11 01:28:09 +09:00
Yu Watanabe
bd930cbdeb
network: shorten code by using SYNTHETIC_ERRNO()
2019-02-11 01:28:09 +09:00
Yu Watanabe
3f7cc0809d
network: coding style fixes
2019-02-11 01:28:09 +09:00
Yu Watanabe
d40b01e44b
network: in_addr_is_null() may return negative errno
...
So, do not silently cast the returned value to boolean.
Exception is the case that family is trivially AF_INET or AF_INET6.
2019-02-11 01:28:09 +09:00
Yu Watanabe
c606db69ab
network: fix errno in log_syntax()
...
in_addr_is_null() returns boolean if the first argument is valid.
So, passing the return value to log_syntax() as errno is wrong.
2019-02-11 01:28:09 +09:00
Yu Watanabe
a61b550c50
man: mention vlan devices inherit the MAC address of the physical interface
...
Follow-up for bc48c51f72 .
Closes #4783 .
[zj: tweak grammar a bit.]
2019-02-09 17:41:07 +01:00
Yu Watanabe
b412fce830
test-network: use dnsmasq with --dhcp-alternate-port option to test DHCP.ListenPort=
...
Fixes #11675 .
2019-02-09 23:49:12 +09:00
Yu Watanabe
804b6cd26b
test-network: add testcases for IgnoreCarrierLoss=
2019-02-08 22:00:07 +09:00
Yu Watanabe
21042737f0
sd-daemon: make sd_booted() return negative errno on unexpected error
2019-02-07 14:44:44 +01:00
Yu Watanabe
64242fd307
core/dbus-service: empty assignment to PIDFile= resets the value
...
Follow-up for a9353a5c5b .
2019-02-06 17:58:52 +01:00
Yu Watanabe
c79d66fc7e
core/dbus-service: write PIDFile= setting to transient unit file
...
Follow-up for a9353a5c5b .
2019-02-06 17:58:40 +01:00
Yu Watanabe
b8055c05e2
core/load-fragment: empty assignment to PIDFile= resets the value
...
Follow-up for a9353a5c5b .
2019-02-06 17:58:24 +01:00
Yu Watanabe
67577508d8
curl-util: fix use after free
...
This fixes a bug introduced by c3e658004a .
2019-02-06 16:19:02 +01:00
Yu Watanabe
9b5b4bed17
pull: fix invalid error check
...
This fixes a bug introduced by 0d94088e4e .
2019-02-06 16:18:01 +01:00
Yu Watanabe
e327272d79
test-network: ignore tunnel devices automatically added by kernel
...
Fixes #10934 .
2019-02-06 22:04:32 +09:00
Yu Watanabe
23bedfbc32
bash-completion: busctl: add 'emit' command support
2019-02-06 13:30:53 +01:00
Yu Watanabe
0747cde76c
busctl: shorten code a bit by using SYNTHETIC_ERRNO()
2019-02-06 13:30:53 +01:00
Yu Watanabe
143aea3813
busctl: introduce 'emit' command to emit a signal
...
Closes #11622 .
2019-02-06 13:30:48 +01:00
Yu Watanabe
9ecb11f55d
busctl: re-indent help message
...
Preparation for the next commit.
2019-02-06 13:29:11 +01:00
Yu Watanabe
d586a2c30c
test-network: check port range and ipproto attributes are supported by kernel and ip command
2019-02-06 10:18:23 +01:00
Yu Watanabe
9ffb90964f
test: add a test case for issue #11652
2019-02-06 08:43:34 +01:00
Yu Watanabe
5ce41697bd
sd-device: fix device_copy_properties()
...
This fixes a bug introduced by a3ce813697 .
Fixes #11652 .
2019-02-06 08:36:52 +01:00
Yu Watanabe
95832a0f8c
analyze security: fix recursive call of syscall_names_in_filter()
...
When `syscall_names_in_filter()` is called in itself, it is already
examined with `whitelist`. Or, in other words, `syscall_names_in_filter()`
returns bad or good in boolean. So, the returned value should not be
compared with `whitelist` again.
This replaces #11302 .
2019-02-04 16:01:38 +01:00
Yu Watanabe
19df01f529
machinectl: fix argument index in error log
...
Fixes #11628 .
2019-02-04 11:03:58 +01:00
Yu Watanabe
f5d191a9e7
test-network: add or drop whitespace
2019-02-03 05:27:15 +01:00
Yu Watanabe
3e9d555241
test-network: fix test_dhcp_server() and test_ipv6_prefix_delegation()
...
The tests have been broken since 30d3b54eba .
2019-02-03 04:40:05 +01:00
Yu Watanabe
3285320786
test-execute: unset $HOME before testing
...
Otherwise, test for %h specifier may fail.
Fixes #11609 .
2019-02-01 18:43:14 +01:00
Yu Watanabe
d1698b82e6
man: add referecne to systemd-system.conf
2019-02-01 12:31:51 +01:00
Yu Watanabe
7e68a33b46
man: clarify the source of DefaultTimeoutStartSec=
2019-02-01 12:31:35 +01:00
Yu Watanabe
68d838f71d
man: fix volume num of journalctl
2019-02-01 12:30:36 +01:00
Yu Watanabe
8671411668
udevd: save the result of devnum or ifindex blocker
2019-01-29 14:07:21 +01:00
Yu Watanabe
baa461fc05
udevd: always block follwoing events with same devpath
...
Originally commented as "devices names might have changed/swapped in the meantime",
but may not. For safety, let's block the following events with same
devpath.
This may fix #6514 .
2019-01-29 14:04:43 +01:00
Yu Watanabe
0bd0407efc
udevd: trivial refactoring of is_device_busy()
2019-01-29 13:53:19 +01:00
Yu Watanabe
0b5245a2ee
test-network: set missing prefixlen
2019-01-29 07:36:35 +01:00
Yu Watanabe
0f707207b9
network: warn if Address= is specified without prefixlen
...
This is the first step for #11307 .
2019-01-29 07:36:35 +01:00
Yu Watanabe
9e0fdc211b
util: add a new mode for in_addr_prefix_from_string_auto_internal() which refuses address without prefixlen
...
This also drops in_addr_default_prefix_from_string(), as it is only
used by test-in-addr.
2019-01-29 07:35:17 +01:00
Yu Watanabe
624a47694c
network/wireguard: use sd_netlink_message_append_sockaddr_in{,6}()
2019-01-28 12:27:37 +01:00
Yu Watanabe
abd48ec87f
sd-netlink: introduce sd_netlink_message_append_sockaddr_in{,6}()
2019-01-28 12:19:29 +01:00
Yu Watanabe
16ab043bda
test-network: add more checks in NetworkdNetDevTests.test_wireguard
2019-01-28 10:10:15 +01:00
Yu Watanabe
2301c54fa9
network/wireguard: fixes sending wireguard peer settings
...
This fixes a bug introduced by e1f717d4a0 .
Fixes #11579 .
2019-01-28 10:09:57 +01:00
Yu Watanabe
321cd1c17c
man: update DefaultDependency= in systemd.mount(5)
...
Follow-up for d54bab90e6 and the
previous commit.
2019-01-26 13:06:16 +01:00
Yu Watanabe
8c8203db90
core/mount: do not add Before=local-fs.target or remote-fs.target if nofail mount option is set
...
Follow-up for d54bab90e6 .
Fixes #11558 .
2019-01-26 12:00:18 +01:00
Yu Watanabe
15cdaeee2e
network: fix an error log
2019-01-24 14:33:58 +09:00
Yu Watanabe
1cc84f3bb9
network: make link_up() static
2019-01-24 12:07:41 +09:00
Yu Watanabe
aa6c83e60e
test: add test for sd_device_monitor_filter_remove()
2019-01-23 15:11:53 +09:00
Yu Watanabe
b07571735a
sd-device-monitor: use SO_DETACH_FILTER to remove BPF program
...
Fixes #11529 .
2019-01-23 15:11:47 +09:00
Yu Watanabe
a9bc94e558
man: udevadm: clarify the behavior when multiple matching rules are specified
...
Closes #2995 .
2019-01-22 09:33:49 +01:00