Yu Watanabe
9714c020fc
missing: split network related entries
...
Also adds comments which kernel version added the entries.
Closes #10553 .
2018-12-03 10:31:05 +01:00
Yu Watanabe
c818721579
Merge pull request #11011 from poettering/tmpfile-util
...
split up fileio.c a bit
2018-12-03 02:04:31 +09:00
Yu Watanabe
d2b42d63c4
core,run: make SocketProtocol= accept protocol name in upper case an protocol number
2018-12-02 06:13:47 +01:00
Yu Watanabe
3a269dcf51
network: make IPProtocol= also accept IP protocol number
2018-12-02 06:13:47 +01:00
Yu Watanabe
97f9df9e30
network: rename Protocol= in [RoutingPolicyRule] to IPProtocol=
2018-12-02 06:13:47 +01:00
Yu Watanabe
dca2309108
test: add tests for ip_protocol_{from,to}_name()
2018-12-02 06:13:47 +01:00
Yu Watanabe
0667a0c497
util: introduce parse_ip_protocol()
...
Not only protocol name in lower case, but it optionally accepts
IP protocol name in upper case and IP protocol number.
2018-12-02 06:13:41 +01:00
Yu Watanabe
cedfe0b02b
util: cast smaller type to large type
2018-12-02 05:58:18 +01:00
Yu Watanabe
da96ad5ae2
util: rename socket_protocol_{from,to}_name() to ip_protocol_{from,to}_name()
2018-12-02 05:48:27 +01:00
Yu Watanabe
636a13d1ec
Merge pull request #10977 from yuwata/test-network-remove-state-file
...
test-network: optionally remove state file of networkd
2018-11-29 13:38:08 +09:00
Yu Watanabe
c0bf673376
test-network: stop systemd-networkd.socket during testing
...
To suppress noisy warning messages.
2018-11-28 22:00:40 +01:00
Yu Watanabe
bad4969bba
test-network: clear state file before starting networkd
...
Otherwise, some tests may disturb others, e.g.,
NetworkdNetWorkTests.test_routing_policy_rule_port_range and
NetworkdNetWorkTests.test_routing_policy_rule.
2018-11-28 21:40:57 +01:00
Yu Watanabe
d486a2d0c1
test-network: use /run instead of legacy /var/run
2018-11-28 19:55:01 +01:00
Yu Watanabe
50ae773f85
Merge pull request #10970 from yuwata/from-name-return-negative-errno
...
util: make *_from_name() returns negative errno on error
2018-11-29 03:18:03 +09:00
Yu Watanabe
fab57f7f13
Merge pull request #10948 from ssahani/iprule-port-proto
...
networkd: add support to configure ip rule port range and protocol.
2018-11-29 03:17:36 +09:00
Yu Watanabe
acf4d15893
util: make *_from_name() returns negative errno on error
2018-11-28 20:20:50 +09:00
Yu Watanabe
7b5e750d2a
util: also move scripts related to socket-protocol-list.[ch] to shared/
...
The source files were moved to shared/. Let's also move the relevant scripts.
2018-11-28 20:20:29 +09:00
Yu Watanabe
6ec439fd4b
tools: move generate-gperfs.py to tools/
2018-11-28 20:19:41 +09:00
Yu Watanabe
66e3834010
Merge pull request #10967 from evverx/check-directives
...
travis: make sure that *.perf and directives.* files are in sync
2018-11-28 14:02:42 +09:00
Yu Watanabe
466a2bee94
Merge pull request #10952 from evverx/keep-fuzz-udev-rules-going
...
tests: make fuzz-udev-rules work also in the environment created by run_minijail
2018-11-28 11:33:27 +09:00
Yu Watanabe
9b6ffef372
man: update explanation for boolean options
2018-11-27 15:07:58 +09:00
Yu Watanabe
025314d97d
man: improve the explanation of "Defaults to unset"
2018-11-27 14:40:25 +09:00
Yu Watanabe
2fb14a12cf
Merge pull request #10947 from poettering/sd-radv-fixes
...
sd-radv fixes
2018-11-27 14:24:43 +09:00
Yu Watanabe
f5050e48ae
test-network: add tests for #5430 and GatewayOnLink=
2018-11-26 18:47:52 +01:00
Yu Watanabe
d80734f7cd
test-network: add one more test for netdev dropin .conf files
...
For netdev, config files are loaded twice, and the first time,
only Match and NetDev setions are read. So, the test given by
the previous commit covers only the second loading.
This adds another test that also covers the first loading.
2018-11-26 22:48:27 +09:00
Yu Watanabe
938dbb292a
Merge pull request #10901 from poettering/startswith-list
...
add new STARTSWITH_SET() macro
2018-11-26 22:40:51 +09:00
Yu Watanabe
013c8dc94d
test-network: add tests for dropin .conf files
2018-11-26 15:01:01 +09:00
Yu Watanabe
6ce611e57c
network: also load foo.netdev.d/*.conf
...
Fixes #9940 .
2018-11-26 14:28:44 +09:00
Yu Watanabe
6acf1ccba5
udevd: do not call udev_ctrl_enable_receiving() if the socket is passed from pid1
...
Before c4b69e990f , if the socket fd is
passed from pid1, `udev_ctrl_enable_receiving()` was not called.
Let's preserve the original logic.
2018-11-26 11:57:48 +09:00
Yu Watanabe
49c603bd5e
udev: drop duplicate whitespaces
2018-11-26 11:53:21 +09:00
Yu Watanabe
572909a38a
udev-ctrl: update log messages
2018-11-26 11:52:40 +09:00
Yu Watanabe
b4ba2fe3f1
udev-rules: include device sysname in log messages
2018-11-26 11:37:29 +09:00
Yu Watanabe
9315f853c4
udev-ctrl: fix coding style isuues
2018-11-26 11:10:46 +09:00
Yu Watanabe
87da558f2b
Merge pull request #10926 from AsciiWolf/copyright
...
Drop my copyright
2018-11-26 09:33:32 +09:00
Yu Watanabe
cbae79b8d0
man: systemd-boot does not read loader.conf.d/*.conf
...
Fixes #10923 .
2018-11-26 06:58:31 +09:00
Yu Watanabe
d949c467b8
sd-boot: fix trailing whitespace trimming
...
Fixes #10922 .
2018-11-26 06:43:36 +09:00
Yu Watanabe
986ab0d2dc
udevd: do not set buffer size if the socket is passed from pid1
...
Before c4b69e990f , if the socket fd is
passed from pid1, `udev_monitor_set_receive_buffer_size()` (now it is
a wrapper of `sd_device_monitor_set_receive_buffer_size()`) was not
called. Let's preserve the original logic.
2018-11-25 20:17:25 +09:00
Yu Watanabe
916707cca5
sd-device: do not call device_monitor_enable_receiving() for passed fd from pid1
...
Before c4b69e990f , if the socket fd is
passed from pid1, `udev_monitor_enable_receiving()` (now it is a wrapper
of `device_monitor_enable_receiving`) was not called.
Let's preserve the original logic.
Fixes #10754 .
2018-11-25 20:14:17 +09:00
Yu Watanabe
f1d7b7874e
sd-device: check whether filter is updated or not in sd_device_monitor_filter_update()
2018-11-25 15:26:43 +09:00
Yu Watanabe
5cee547a94
sd-device: update log message
2018-11-25 14:06:56 +09:00
Yu Watanabe
779c923467
sd-device: fix return value on error path
2018-11-25 14:06:27 +09:00
Yu Watanabe
0d7f7c2fde
basic/list: fix minor coding style issue
2018-11-24 04:26:10 +09:00
Yu Watanabe
1492fa526e
basic/list: add missing header
...
Some macros use assert() which is (re)defined in macro.h
2018-11-24 04:25:10 +09:00
Yu Watanabe
0d94088e4e
import: use structured initializers
2018-11-24 03:53:18 +09:00
Yu Watanabe
c3e658004a
import: use _cleanup_ attribute for CURL object
2018-11-24 03:14:32 +09:00
Yu Watanabe
d43c37bbea
Merge pull request #10893 from keszybz/udev-cleanup-followup
...
Udev cleanup follow-ups
2018-11-23 23:48:44 +09:00
Yu Watanabe
a5a59a2447
test: add more tests for subsystem filter
2018-11-23 06:46:29 +09:00
Yu Watanabe
c6f09e6a2d
locale: define main through macro
2018-11-23 06:22:30 +09:00
Yu Watanabe
af7865c1b7
locale: store polkit_registry in Context
2018-11-23 06:22:30 +09:00
Yu Watanabe
6804d7a849
locale: rename context_free() to context_clear()
2018-11-23 06:22:30 +09:00
Yu Watanabe
f6aa61909e
resolvectl: use static destructor and define main through macro
2018-11-23 06:22:30 +09:00
Yu Watanabe
7a83c3aee0
rfkill: define main through macro
2018-11-23 06:22:30 +09:00
Yu Watanabe
5f5f0afc8b
rfkill: store write queue and rfkill fd in struct Context
2018-11-23 06:22:30 +09:00
Yu Watanabe
a160567e20
socket-proxy: define main through macro
2018-11-23 06:22:30 +09:00
Yu Watanabe
dd2fd972b7
sysusers: use ordered_hashmap_steal_first_key_and_value()
2018-11-23 06:22:30 +09:00
Yu Watanabe
1d03c5c16f
time-wait: define main through macro
2018-11-23 06:22:30 +09:00
Yu Watanabe
1f47bc3349
timedate: define main through macro
2018-11-23 06:22:30 +09:00
Yu Watanabe
fd1bff7db5
update-done: quit earlier on failure
2018-11-23 06:22:30 +09:00
Yu Watanabe
3664cbabdd
update-utmp: use _cleanup_ attribute to finalize process
2018-11-23 06:22:30 +09:00
Yu Watanabe
d850ad9a30
veritysetup-generator: use static destructors and define main through macro
2018-11-23 06:22:30 +09:00
Yu Watanabe
2cb52121e5
veritysetup-generator: make arg_dest const
2018-11-23 06:22:30 +09:00
Yu Watanabe
6b9306b29c
veritysetup: use static destructors and define main through macro
...
This also changes the return value when crypt_init_by_name() fails in 'detach'.
2018-11-23 06:22:30 +09:00
Yu Watanabe
65fe9c319f
sd-device-monitor: fix subsystem filter
...
This fixes a bug introduced by 759d9f3f8d .
Fixes #10882 .
2018-11-23 02:49:28 +09:00
Yu Watanabe
8c19dc54d3
udev-rules: update log messages
2018-11-23 01:15:42 +09:00
Yu Watanabe
d6601495be
meson: also add option for debugging siphash
2018-11-23 00:36:35 +09:00
Yu Watanabe
20e97dd3de
meson: add option for debugging udev
2018-11-23 00:28:27 +09:00
Yu Watanabe
67e4b38563
udev-rules: trivial coding style cleanups
2018-11-23 00:22:09 +09:00
Yu Watanabe
981fae90df
udev: rename udev_rules_unref() to udev_rules_free()
...
As udev_rules do not have a reference counter.
2018-11-23 00:07:40 +09:00
Yu Watanabe
3f14e7217a
libudev: do not ignore error in udev_list_entry_add()
2018-11-22 23:50:02 +09:00
Yu Watanabe
fd05c424c0
libudev: introduce return_with_errno() and use it where applicable
2018-11-22 23:49:55 +09:00
Yu Watanabe
6f9fe58189
test: add tests for libudev-list
2018-11-22 23:42:07 +09:00
Yu Watanabe
f349626bed
libudev-list: drop unused udev argument from udev_list_init()
2018-11-22 23:19:25 +09:00
Yu Watanabe
876affad43
libudev-list: drop unused private functions
2018-11-22 23:19:17 +09:00
Yu Watanabe
03b35f8775
Merge pull request #10871 from keszybz/more-cleanup-2
...
Allow "synthetic" errno to be used in log calls
2018-11-22 23:16:43 +09:00
Yu Watanabe
4ec739f19f
test: add tests for util_resolve_subsys_kernel()
2018-11-21 17:31:22 +09:00
Yu Watanabe
3839535a53
libudev: make util_resolve_subsys_kernel() return negative errno
...
This also replaces udev_device by sd_device in the function.
2018-11-21 17:31:16 +09:00
Yu Watanabe
c0c591544a
udev/scsi_id: fix buffer length
2018-11-21 17:30:49 +09:00
Yu Watanabe
01cbafe184
test: add tests for util_replace_whitespace()
2018-11-21 17:30:49 +09:00
Yu Watanabe
df8ba4fa0e
libudev-util: make util_replace_whitespace() not count leading white spaces
2018-11-21 17:30:45 +09:00
Yu Watanabe
646acebd58
libudev-util: make util_replace_*() return size_t
2018-11-21 16:35:20 +09:00
Yu Watanabe
805a7097ee
libudev-util: add assertions
2018-11-21 16:32:54 +09:00
Yu Watanabe
0c760322a4
portablectl: make "arg_host" const
2018-11-20 18:40:02 +01:00
Yu Watanabe
f2fae6fbae
mount-tool: use static destructor and DEFINE_MAIN_FUNCTION() macro
2018-11-20 18:40:02 +01:00
Yu Watanabe
c3d6fb26ed
modules-load: use static destructor and DEFINE_MAIN_FUNCTION() macro
2018-11-20 18:40:02 +01:00
Yu Watanabe
f66da783fa
machinectl: use static destructor and DEFINE_MAIN_FUNCTION() macro
2018-11-20 18:40:02 +01:00
Yu Watanabe
0166c42868
machine-id: use static destructor and DEFINE_MAIN_FUNCTION() macro
2018-11-20 18:40:02 +01:00
Yu Watanabe
eae5c847f8
loginctl: use static destructor and DEFINE_MAIN_FUNCTION() macro
2018-11-20 18:40:02 +01:00
Yu Watanabe
847da1ac1b
locale: make "arg_host" const
2018-11-20 18:40:02 +01:00
Yu Watanabe
85ae63ee87
hostnamed: use DEFINE_MAIN_FUNCTION() macro
...
This also renames context_free() to context_clear().
2018-11-20 18:40:02 +01:00
Yu Watanabe
77182cc65e
hibernate-resume-generator: use static destructor and DEFINE_MAIN_FUNCTION() macro
2018-11-20 18:40:02 +01:00
Yu Watanabe
a4ef3e4dbb
fstab-generator: use static destructor and DEFINE_MAIN_FUNCTION() macro
2018-11-20 18:40:02 +01:00
Yu Watanabe
45f394187a
firstboot: use static destructor and DEFINE_MAIN_FUNCTION() macro
2018-11-20 18:40:02 +01:00
Yu Watanabe
149afb45dc
dissect: use static destructor and DEFINE_MAIN_FUNCTION() macro
2018-11-20 18:40:02 +01:00
Yu Watanabe
a8a7e5fcf2
bless-boot: use static destructor and DEFINE_MAIN_FUNCTION() macro
2018-11-20 18:40:02 +01:00
Yu Watanabe
3a40f366b2
cryptsetup: use static destructor and DEFINE_MAIN_FUNCTION() macro
2018-11-20 18:40:02 +01:00
Yu Watanabe
88325bf6e5
cgls: use static destructor and DEFINE_MAIN_FUNCTION() macro
2018-11-20 18:40:02 +01:00
Yu Watanabe
2428944eb0
cgls: add const
2018-11-20 16:48:21 +01:00
Yu Watanabe
360f3dc275
busctl: use static destructor and DEFINE_MAIN_FUNCTION() macro
2018-11-20 16:48:21 +01:00
Yu Watanabe
608f8ec92e
bootctl: use static destructor and DEFINE_MAIN_FUNCTION() macro
2018-11-20 16:48:21 +01:00
Yu Watanabe
1ddae15a4e
backlight: use DEFINE_MAIN_FUNCTION() macro
2018-11-20 16:48:21 +01:00