Daan De Meyer
117e21121e
journal: Add journal_file_read_object()
2021-12-06 14:54:06 +01:00
Yu Watanabe
e3a97777ab
Merge pull request #21633 from yuwata/network-route-null-destination
...
network: route: fix null destination handling
2021-12-06 22:27:37 +09:00
Yu Watanabe
55c3658ba1
Merge pull request #21634 from yuwata/dhcp-header-cleanups
...
dhcp: trivial header cleanups
2021-12-06 22:26:58 +09:00
Yu Watanabe
416644567b
network: dhcp6pd: make dhcp6_pd_assign_prefixes() used also by dhcp6_pd_prefix_acquired()
2021-12-06 21:35:53 +09:00
Yu Watanabe
21cf8e9e6d
network: dhcp6pd: first check prefixes, then calculate lifetime
2021-12-06 21:35:53 +09:00
Yu Watanabe
542d04950e
network: dhcp6pd: shorten code a bit
2021-12-06 21:35:53 +09:00
Yu Watanabe
c3cd535132
network: dhcp6pd: skip to assign prefixes to a downstream link if it is not ready
2021-12-06 21:35:53 +09:00
Yu Watanabe
5014e66019
network: dhcp6pd: move dhcp6_pd_assign_prefixes()
...
Preparation for the later commits.
2021-12-06 21:35:53 +09:00
Yu Watanabe
4c004e2a71
network: dhcp6pd: also allow to only assign prefix route for delegated prefix to upstream interface
2021-12-06 21:35:53 +09:00
Yu Watanabe
da10d2d584
network: dhcp6pd: drop unreachable routes when lease lost
2021-12-06 21:30:57 +09:00
Yu Watanabe
95eb38c8d0
network: route: make route_cancel_request() take Link*
...
As the Route object may be managed by Manager.
2021-12-06 21:30:57 +09:00
Yu Watanabe
1d44187ce6
network: dhcp6pd: also drop prefix assigned to upstream interface
...
But do not drop prefixes from downstream which request another uplink.
2021-12-06 21:30:26 +09:00
Yu Watanabe
86a4b84aa9
Merge pull request #21632 from yuwata/network-dhcp6pd-fix-typo-and-split
...
network: dhcp6pd: fix typo and split file
2021-12-06 21:24:47 +09:00
Yu Watanabe
24888c0b19
Merge pull request #21630 from yuwata/test-network-cleanups
...
test-network: trivial cleanups
2021-12-06 21:24:26 +09:00
Yu Watanabe
ab106a609b
network: eui64 address is supported only ethernet or infiniband
...
So, this makes prefixstable mode will be used for other interface types.
2021-12-06 21:07:12 +09:00
Zbigniew Jędrzejewski-Szmek
ec1574cd8e
Merge pull request #21454 from bluca/inspect_elf
...
analyze: add inspect-elf verb to parse package metadata
2021-12-06 12:45:25 +01:00
Pavel Březina
2f121b6fa1
man: fix description of sd_uid_get_sessions
2021-12-06 12:39:03 +01:00
Franck Bui
d5ee050ffc
journal: don't remove the flushed flag when journald is stopped
...
Due to the fact that systemd-journal-flush.service has
"Requires=systemd-journald.service", this service is stopped too when journald
is requested to do so.
However stopping systemd-journal-flush.service implies that journald
relinquishes /var hence implicitly switching back to the volatile storage
mode and removing /run/systemd/journal/flushed.
If journald is started afterwards, it will run in volatile storage mode
regardless of the value of 'Storage=' as it believes now that /var is not yet
ready (because the flushed flag is missing).
Because this flag is mainly an indication for journald that the initialization
of /var/log/journal (during the boot process) has been done,
systemd-journal-flush.service shouldn't be tied to the state of journald itself
but to the state of /var/log/journal, hence to the state of the system.
2021-12-06 11:47:27 +01:00
Joris Hartog
5ef599b324
systemctl: support JSON output for "show-environment"
...
This commit adds a function which converts a bus message containing the
environment variables to a JSON object and uses this function to support
JSON formatted output for the "systemctl show-environment" command.
Fixes #21348
2021-12-06 11:40:52 +01:00
Zbigniew Jędrzejewski-Szmek
dfaf3ec1bf
Merge pull request #21621 from mrc0mmand/lgtm-false-positive
...
lgtm: ignore certain cleanup functions
2021-12-06 11:31:38 +01:00
Bastien Nocera
213455e26a
hwdb: Allow console users access to rfkill
...
This rule has been shipped in Fedora's gnome-bluetooth package for 10
years and is used by the gnome-settings-daemon rfkill plugin (used by
gnome-bluetooth, gnome-shell, and gnome-control-center) to monitor
and change software rfkill switch settings.
2021-12-06 11:26:29 +01:00
Urs Ritzmann
25060a570c
sd_bus_get_timeout: fix timeout value doc
...
The documentation of sd_bus_get_timeout wrongfully states that the returned time-value is relative. In fact, it is an absolute value which is based of CLOCK_MONOTONIC. This change corrects that documentation.
2021-12-06 11:21:48 +01:00
Yu Watanabe
133f65ef2c
test-network: start dhcpd after address is assigned
2021-12-06 19:18:55 +09:00
Yu Watanabe
5f7f1f824f
test-network: make start_isc_dhcpd() take IP version
2021-12-06 19:18:55 +09:00
Yu Watanabe
d5ebcf6533
network: split networkd-dhcp6.c
...
This moves DHCPv6 prefix delegation related functions to
networkd-dhcp-prefix-delegation.c.
2021-12-06 19:17:09 +09:00
Yu Watanabe
ba466f0d4e
network: dhcp6pd: fix copy-and-paste error
2021-12-06 19:17:09 +09:00
Yu Watanabe
cf477495d6
network: route: handle null address with non-zero prefixlen correctly
...
Previously, even if a link has a route to e.g. ::/96, default gateway
via ::1.2.3.4 cannot be configured.
2021-12-06 19:16:17 +09:00
Yu Watanabe
b489d6a26e
network: route: logs null address with non-zero prefixlen correctly
2021-12-06 19:16:17 +09:00
Yu Watanabe
85ede495cc
dhcp: fix indentation and alignment
2021-12-06 19:15:42 +09:00
Yu Watanabe
d262928879
dhcp6: drop unnecessary space
2021-12-06 19:15:41 +09:00
Zbigniew Jędrzejewski-Szmek
79fa910333
Merge pull request #21623 from nabijaczleweli/ekstrahuje
...
man/kernel-install clarifications
2021-12-06 11:10:40 +01:00
Zbigniew Jędrzejewski-Szmek
ea7c87bfd9
Merge pull request #21629 from yuwata/man-netdev-update
...
man: netdev: several cleanups
2021-12-06 10:23:04 +01:00
Yu Watanabe
ee44b32ff4
man: netdev: merge and reword Egress/IngressQOSMAps=
2021-12-06 17:59:35 +09:00
Zbigniew Jędrzejewski-Szmek
8fc2648454
Merge pull request #21628 from yuwata/man-network-dnssec
...
man: network: fix default values for DNSSEC= and DNSOverTLS=
2021-12-06 08:54:43 +01:00
Yu Watanabe
9b65490f3f
man: netdev: use … to specify range
2021-12-06 16:53:35 +09:00
Yu Watanabe
f3fa44cb8e
man: netdev: use <varname> tag
2021-12-06 16:51:57 +09:00
Yu Watanabe
472e1349ed
man: network: fix default values for DNSSEC= and DNSOverTLS=
2021-12-06 16:30:48 +09:00
Yu Watanabe
dee13c2f4e
man: network: rebreak lines
2021-12-06 16:28:10 +09:00
Luca Boccassi
6b12086e1f
meson: remove openssl dependency from repart
...
No longer needed since ade99252e2
2021-12-06 16:09:45 +09:00
Yu Watanabe
6885a857e4
udev/path-id: comment why USB host number is dropped from the PATH_ID
...
Closes #21617 .
The comment is borrowed from https://github.com/systemd/systemd/pull/21620#discussion_r762521508 .
2021-12-06 16:06:04 +09:00
Yu Watanabe
56615f203b
udev/path_id: fix skip_subsystem()
...
This partially reverts d340bdd1bd .
The function previously drops multiple except for the last parents
which matches the specified subsystem.
But the commit d340bdd1bd drops all
parents.
E.g. input is pci-pci-pci-usb-usb-usb, then
Before d340bdd : pci-pci-pci-usb
After d340bdd : pci-pci-pci
2021-12-06 16:01:33 +09:00
Frantisek Sumsal
c73f413d8d
tree-wide: check for NULLs in more places
...
Fixes issues pointed out by the `cpp/inconsistent-null-check` LGTM
query.
2021-12-06 08:50:53 +09:00
Frantisek Sumsal
c8fec8bf9b
lgtm: detect more possible problematic scenarios
...
1) don't ignore stack-allocated variables, since they may hide
heap-allocated stuff (compound types)
2) check if there's a return between the variable declaration and its
initialization; if so, treat the variable as uninitialized
3) introduction of 2) increased the query runtime exponentially, so
introduce some optimizations to bring it back to some reasonable
values
2021-12-05 22:47:14 +01:00
наб
2a0ad72611
kernel-install: fix MACHINE_ID extraction behaviour description
2021-12-05 17:00:22 +01:00
наб
22a81fe49b
kernel-install: note the default $PRETTY_NAME if os-release wasn't found and that only 90-loaderentry uses it
2021-12-05 16:44:49 +01:00
наб
595fd662d4
kernel-install: note that 90-loaderentry will also use /usr/lib/k/cmdline
2021-12-05 16:44:48 +01:00
Frantisek Sumsal
af18682136
lgtm: ignore certain cleanup functions
...
as they don't do any illegal stuff even when used with an uninitialized
variable.
2021-12-05 15:53:22 +01:00
Luca Boccassi
bf71ade808
NEWS: add more entries for v250
2021-12-05 14:12:36 +00:00
Yu Watanabe
a2887ec370
Merge pull request #21563 from yuwata/network-IPoIB-support
...
network: IPoIB support
2021-12-05 05:24:01 +09:00
Yu Watanabe
a22a8698d9
sd-netlink: fix implicit cast to boolean
2021-12-05 00:19:01 +09:00