Franck Bui
b309078ab9
pid1: make more use of show_status_on()
...
No functional change.
2020-06-09 09:16:54 +02:00
Lennart Poettering
5a36324962
Merge pull request #16047 from poettering/udev-ro-block
...
udev: optionally mark all block devices popping up read-only by default
2020-06-09 09:09:32 +02:00
Lennart Poettering
707dc7949c
update TODO
2020-06-09 08:54:48 +02:00
Yu Watanabe
a4d1bef73f
Merge pull request #16085 from ssahani/network-client-id
...
networkctl: add support to display DHCPv4 client ID
2020-06-09 15:30:23 +09:00
Maxim Fomin
6cc27c29ad
Add 'bitlk' option to mount Bitlocker drives with cryptsetup.
2020-06-09 08:12:55 +02:00
YmrDtnJu
c15ab81ed9
mount-tool: Replace fstype_is_{network,api_vfs} with fstype_is_blockdev_backed
...
Not every filesystem that is not a network filesystem and also not an API VFS
filesystem has a corresponding block device.
2020-06-08 19:36:42 +02:00
YmrDtnJu
ac2474e4ff
basic: New function fstype_is_blockdev_backed for fstypes that need a blockdev
...
The function returns true if the specified filesystem requires a block device.
2020-06-08 19:36:42 +02:00
Niccolò Maggioni
b11e98037c
hwdb: add HP Spectre x360's mic mute switch
...
Tested on HP Spectre x360 Convertible 13-aw0xxx
2020-06-08 18:15:20 +02:00
Lennart Poettering
b1481b2092
Merge pull request #16092 from yuwata/network-accept-local-16090
...
network: introduce IPv4AcceptLocal= setting
2020-06-08 18:15:03 +02:00
Lennart Poettering
a34a2933e9
man: single-char parameters take no '='
...
The suggested syntax is simply not valid and results in an error.
2020-06-08 16:53:37 +02:00
Lennart Poettering
048b4dc2e1
units: tweak udev unit descriptions
2020-06-08 16:53:37 +02:00
Lennart Poettering
95ac523030
udev: optionally mark all block devices read-only as they pop up
2020-06-08 16:53:37 +02:00
Luca Boccassi
b1806441bb
dissect-image: wait for udev for single filesystem images too
...
Single filesystem images are mounted from the /dev/block/X:Y symlink
rather than /dev/loopZ, so we need to wait for udev to create it or
mounting will be racy and occasionally fail.
2020-06-08 13:06:53 +01:00
Susant Sahani
2153bbc81a
networkctl: Display DHCP4 client ID
2020-06-08 07:09:32 +02:00
Susant Sahani
daec96821d
sd-network: Introduce API to access DHCP4 client ID
2020-06-08 07:09:24 +02:00
Susant Sahani
5dfaf89b5b
network: DHCP4 client ID save in state file
2020-06-08 07:08:04 +02:00
Yu Watanabe
29f69c5741
test-network: add test for IPv4AcceptLocal=
2020-06-08 13:51:50 +09:00
Yu Watanabe
94d76d071e
network: introduce IPv4AcceptLocal= setting
...
Closes #16090 .
2020-06-08 13:48:17 +09:00
layderv
a07e962549
homed help --uid short option
2020-06-07 12:38:46 +02:00
Frantisek Sumsal
7887e58051
test: avoid failing due to unexpected precision
...
After today's Arch Linux image update, there seems to be a slight change
in delay reporting which breaks some asserts in
systemd-networkd-tests.py:
Expected:
limit 100 delay 50.0ms 10.0ms loss 20%
Current:
limit 100 delay 50ms 10ms loss 20%
2020-06-06 18:33:35 +02:00
Daan De Meyer
6495ceddf3
Merge pull request #16033 from poettering/parse-int-fixlets
...
various fixes and tweaks for integer parsing
2020-06-06 10:45:35 +02:00
YmrDtnJu
a742f9828e
resolve: enable RES_TRUSTAD towards the 127.0.0.53 stub resolver
...
glibc 2.31 strips the AD flag, unless either the application specifies
RES_TRUSTAD or the options in resolv.conf contain trust-ad.
See https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=NEWS;hb=HEAD
2020-06-06 10:40:45 +02:00
Thomas Haller
9141594cae
lldp: fix assertion checking argument for sd_lldp_set_neighbors_max()
...
Fixes: 34437b4f9c
('sd-lldp: rework sd-lldp API')
2020-06-06 10:38:50 +02:00
Susant Sahani
7487b48688
man: fix typo Takse -> Takes
2020-06-06 10:26:33 +02:00
Zbigniew Jędrzejewski-Szmek
3a9692dd05
shell-completion: add homectl for bash
...
The difference between verbs that take one user and multiple users is not
handled. I don't know how to do this.
2020-06-05 16:34:18 +02:00
Zbigniew Jędrzejewski-Szmek
3ac33bc966
kernel-install: extend --help
2020-06-05 16:34:05 +02:00
Zbigniew Jędrzejewski-Szmek
ea9f36ac83
Merge pull request #15378 from msekletar/udev-kill-signal
...
udev: make signal that we use to kill workers on timeout configurable
2020-06-05 16:33:14 +02:00
Michal Sekletár
2884836e3c
core: fix the return value in order to make sure we don't dipatch method return too early
...
Actually, it is the same kind of problem as in d910f4c
. Basically, we
need to return 1 on success code path in slice_freezer_action().
Otherwise we dispatch DBus return message too soon.
Fixes : #16050
2020-06-05 16:10:40 +02:00
Michal Sekletár
a0d79df8e5
tests: sleep a bit and give kernel time to perform the action after manual freeze/thaw
...
Fixes : #16050
2020-06-05 16:10:28 +02:00
Lennart Poettering
42e57a4eb2
test: add test for parse_uid_range()
2020-06-05 15:56:32 +02:00
Lennart Poettering
53c6db99fa
tests: beef up integer parsing tests
2020-06-05 15:56:32 +02:00
Lennart Poettering
fc80cabcf5
parse-util: also parse integers prefixed with 0b and 0o
...
Let's adopt Python 3 style 0b and 0x syntaxes, because it makes a ton of
sense, in particular in bitmask settings.
2020-06-05 15:56:32 +02:00
Lennart Poettering
60eb1f0728
parse-util: rewrite parse_uid_range() on top of parse_uid()
...
parse_uid() does so many safety checks we want, hence rewrite
parse_uid_range() on top of parse_uid() instead of parse_range().
2020-06-05 15:56:32 +02:00
Lennart Poettering
f5979b63cc
user-util: be stricter in parse_uid()
...
Let's refuse "+" and "-" prefixed UIDs. Let's refuse whitespace-prefixed
UIDS, Let's refuse zero-prefixed UIDs. Let's be safe than sorry.
2020-06-05 15:56:31 +02:00
Lennart Poettering
c44702a8bd
parse-util: rewrite parse_mode() on top of safe_atou_full()
...
Parsing is hard, hence let's use our own careful wrappers wherever
possible.
2020-06-05 15:56:31 +02:00
Lennart Poettering
aa85e4d3ce
parse-util: make return parameter optional in safe_atou16_full()
...
All other safe_atoXYZ_full() functions have the parameter optional,
let's make it optoinal here, too.
2020-06-05 15:56:31 +02:00
Lennart Poettering
c78eefc135
parse-util: allow '-0' as alternative to '0' and '+0'
...
Let's allow "-0" as alternative to "+0" and "0" when parsing integers,
unless the new SAFE_ATO_REFUSE_PLUS_MINUS flag is specified.
In cases where allowing the +/- syntax shall not be allowed
SAFE_ATO_REFUSE_PLUS_MINUS is the right flag to use, but this also means
that -0 as only negative integer that fits into an unsigned value should
be acceptable if the flag is not specified.
2020-06-05 15:56:31 +02:00
Lennart Poettering
707e93aff8
parse-util: allow tweaking how to parse integers
...
This allows disabling a few alternative ways to decode integers
formatted as strings, for safety reasons.
See: #15991
2020-06-05 15:56:31 +02:00
Michal Sekletár
3611ed7378
test: add integration test for udev event timeout
...
Note that run_test() calls coredumpctl in a loop because in certain
environments (1 vCPU unaccelerated QEMU VM) it might take quite a
while to process the coredump.
2020-06-05 11:09:21 +02:00
Michal Sekletár
e209926778
udev: make signal that we use to kill workers on timeout configurable
2020-06-05 11:09:17 +02:00
Zbigniew Jędrzejewski-Szmek
0ce8092109
Merge pull request #15466 from elmarco/dhcp-leases
...
networkctl: print DHCP leases
2020-06-05 08:47:35 +02:00
Evgeny Vereshchagin
b3753406c0
turn off fuzzit
...
It seems it went down yesterday and it's not clear how long it will
take to bring it back.
2020-06-04 17:38:05 +03:00
Marc-André Lureau
d9ce1c2493
networkctl: print DHCP leases
2020-06-04 11:16:15 +02:00
Marc-André Lureau
090c923b4d
networkctl: factor out link_get_property()
...
The next patch is going to reuse it.
2020-06-04 11:16:15 +02:00
Marc-André Lureau
7be3261222
sd-dhcp-client: add sd_dhcp_client_id_to_string()
...
Add a human-friendly pretty-printer for client ID.
2020-06-04 11:16:15 +02:00
Marc-André Lureau
aaec2d7b9b
macro.h: add sizeof_field() helper
...
Similar to kernel FIELD_SIZE()
2020-06-04 11:16:15 +02:00
Marc-André Lureau
00ebe01156
sd-dhcp-client: make struct sd_dhcp_client_id reusable
2020-06-04 11:16:15 +02:00
Marc-André Lureau
cf72a78660
networkd: expose DHCPServer interface on links
2020-06-04 11:16:15 +02:00
Marc-André Lureau
38ee31a6e4
networkd: start a DBus interface for the DHCP server
...
Add a "org.freedesktop.network1.DHCPServer" DBus interface that will be
added on a link path where a DHCP server is provided.
Currently, it only exposes a "Leases" property, although there are plans
to expand it further. The property is updated thanks to the
dhcp_server_callback().
2020-06-04 11:16:15 +02:00
Marc-André Lureau
36d35f2259
sd-dhcp-server: notify callback on lease changed
2020-06-04 11:16:15 +02:00