]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
4 years agoupdate TODO
Lennart Poettering [Fri, 11 Feb 2022 13:05:15 +0000 (14:05 +0100)] 
update TODO

4 years agobootspec: port one more use of basename() to path_extract_filename()
Lennart Poettering [Fri, 11 Feb 2022 13:05:01 +0000 (14:05 +0100)] 
bootspec: port one more use of basename() to path_extract_filename()

4 years agoRevert "bootctl: Ignore boot entries (continue #22041)"
Lennart Poettering [Thu, 3 Feb 2022 15:27:33 +0000 (16:27 +0100)] 
Revert "bootctl: Ignore boot entries (continue #22041)"

4 years agoveritysetup: whitespace fix 22507/head
Lennart Poettering [Mon, 14 Feb 2022 13:59:03 +0000 (14:59 +0100)] 
veritysetup: whitespace fix

4 years agohomed: use SD_ID128_TO_UUID_STRING() at one more place
Lennart Poettering [Mon, 14 Feb 2022 13:56:52 +0000 (14:56 +0100)] 
homed: use SD_ID128_TO_UUID_STRING() at one more place

4 years agotree-wide: use id128_equal_string() at various places
Lennart Poettering [Mon, 14 Feb 2022 13:56:37 +0000 (14:56 +0100)] 
tree-wide: use id128_equal_string() at various places

4 years agoid128-util: add new helper id128_equal_string()
Lennart Poettering [Mon, 14 Feb 2022 13:54:24 +0000 (14:54 +0100)] 
id128-util: add new helper id128_equal_string()

Quite often we compare uuids/id128 formatted as strings with specific
values. So far we usually used streq() for that. let's add a new
explicit helper for this in id128_equal_string() that compares a string
with an sd_id128_t and is more robust than a simple string comparison.
Moreover, we can mroe easily reuse the various defines we have for
specific UUIDs, for example those from gpt.h.

4 years agosd128: export sd_id128_to_uuid_string()
Lennart Poettering [Mon, 14 Feb 2022 13:52:02 +0000 (14:52 +0100)] 
sd128: export sd_id128_to_uuid_string()

We expose various other forms of UUID helpers already, i.e.
SD_ID128_UUID_FORMAT_STR and SD_ID128_MAKE_UUID_STR(), and we parse
UUIDs, hence add a high-level helper for formatting UUIDs too.

This doesn't add any new code, it just moves some helpers
id128-util.[ch] → sd-id128.[ch], to make them public.

4 years agoMerge pull request #22505 from mrc0mmand/more-coverage-tweaks
Frantisek Sumsal [Mon, 14 Feb 2022 13:51:08 +0000 (13:51 +0000)] 
Merge pull request #22505 from mrc0mmand/more-coverage-tweaks

A couple of coverage-related tweaks

4 years agotest: check if running in container earlier
Yu Watanabe [Wed, 19 Jan 2022 21:31:39 +0000 (06:31 +0900)] 
test: check if running in container earlier

4 years agoMerge pull request #22496 from yuwata/network-cleanups-keep-configuration
Luca Boccassi [Mon, 14 Feb 2022 13:17:23 +0000 (13:17 +0000)] 
Merge pull request #22496 from yuwata/network-cleanups-keep-configuration

network: cleanups for KeepConfiguration= setting

4 years agogpt-auto: properly handle case where we can't determine devno of /usr/ fs 22506/head
Lennart Poettering [Mon, 14 Feb 2022 12:35:27 +0000 (13:35 +0100)] 
gpt-auto: properly handle case where we can't determine devno of /usr/ fs

get_block_device_harder() returns == 0 if the fs is valid, but it is not
backed by a single devno. (As opposed to returning > 0 if the devno is
valid). Let's catch this case and log a clear message, and don't bother
open the device in that case.

This is mostly cosmetical, as either way, systemd-gpt-auto-generator
doesn't work in scenarios like that.

Prompted-by: #22504
4 years agosd-device: refuse opening device mit major/minor of zero early
Lennart Poettering [Mon, 14 Feb 2022 12:33:43 +0000 (13:33 +0100)] 
sd-device: refuse opening device mit major/minor of zero early

device nodes with 0 dev_t are not real (and for that reason such inodes
are used as whiteouts in overlayfs, for example), hence refuse them
early. It seems wrong going to sysfs for something we know can't exist
anyway.

4 years agotest: check for (possibly) missing test coverage 22505/head
Frantisek Sumsal [Mon, 14 Feb 2022 11:20:02 +0000 (12:20 +0100)] 
test: check for (possibly) missing test coverage

If the test logs contain lines like:

```
...systemd-resolved[735885]: profiling:/systemd-meson-build/src/shared/libsystemd-shared-250.a.p/base-filesystem.c.gcda:Cannot open
```

it means we're possibly missing some coverage since gcov can't write the stats,
usually due to the sandbox being too restrictive (e.g. ProtectSystem=yes,
ProtectHome=yes) or the $BUILD_DIR being inaccessible to non-root users.

4 years agotest: set ACLs for the build dir when built with coverage
Frantisek Sumsal [Mon, 14 Feb 2022 10:58:54 +0000 (11:58 +0100)] 
test: set ACLs for the build dir when built with coverage

Otherwise unprivileged processes (like systemd-resolved) can't write
coverage data.

4 years agodo not call __register_atfork directly
Matija Skala [Sat, 12 Feb 2022 05:05:54 +0000 (06:05 +0100)] 
do not call __register_atfork directly

this way it is cleaner and more portable and systemd links against libpthread anyway

4 years agosystemctl: fix halt -f 22445/head
Ludwig Nussel [Wed, 9 Feb 2022 09:39:16 +0000 (10:39 +0100)] 
systemctl: fix halt -f

Commit adefc8789b always asks logind for shutdown first. So I broke halt
-f which is supposed to issue a direct syscall in that case.

4 years agologind: more verbose struct initialization
Ludwig Nussel [Mon, 7 Feb 2022 17:03:22 +0000 (18:03 +0100)] 
logind: more verbose struct initialization

4 years agologind: increase max wall message length to 4096
Ludwig Nussel [Mon, 7 Feb 2022 10:50:12 +0000 (11:50 +0100)] 
logind: increase max wall message length to 4096

4 years agologind: style fixes
Ludwig Nussel [Mon, 7 Feb 2022 09:56:19 +0000 (10:56 +0100)] 
logind: style fixes

4 years agologind: add handle enum to struct
Ludwig Nussel [Thu, 3 Feb 2022 16:08:28 +0000 (17:08 +0100)] 
logind: add handle enum to struct

Avoid pointer arithmetic at the expense of repeating the enum value
in the struct.

4 years agotest-dhcp6-client: add test for rapid commit 22412/head
Yu Watanabe [Mon, 14 Feb 2022 06:08:20 +0000 (15:08 +0900)] 
test-dhcp6-client: add test for rapid commit

4 years agotest-dhcp6-client: cleanups
Yu Watanabe [Thu, 10 Feb 2022 07:14:21 +0000 (16:14 +0900)] 
test-dhcp6-client: cleanups

This does many cleanups. Most prominently,
- check the sents packet more strictly,
- make the packets used in the test more readable,
- unify callbacks.

4 years agofuzz-dhcp6-client: add prefix hint and vendor option to sent message
Yu Watanabe [Mon, 7 Feb 2022 16:19:50 +0000 (01:19 +0900)] 
fuzz-dhcp6-client: add prefix hint and vendor option to sent message

4 years agofuzz-dhcp6-client: merge with fuzz-dhcp6-client-send
Yu Watanabe [Mon, 7 Feb 2022 16:19:27 +0000 (01:19 +0900)] 
fuzz-dhcp6-client: merge with fuzz-dhcp6-client-send

4 years agofuzz-dhcp6-client: test multiple states
Yu Watanabe [Mon, 7 Feb 2022 15:30:56 +0000 (00:30 +0900)] 
fuzz-dhcp6-client: test multiple states

Then, now all three paths client_process_information(),
client_process_reply(), and client_process_advertise_or_rapid_commit_reply()
in client_receive_message() are fuzzed.

4 years agosd-dhcp6-client: append extra options before elapsed time option
Yu Watanabe [Thu, 10 Feb 2022 12:44:28 +0000 (21:44 +0900)] 
sd-dhcp6-client: append extra options before elapsed time option

The value of elapsed time option is determined in runtime and not
deterministic. It is hard to test the sent packets if it is located
in the intermidiate of the packet.

4 years agosd-dhcp6-client: logs invalid NTP option
Yu Watanabe [Thu, 10 Feb 2022 12:11:32 +0000 (21:11 +0900)] 
sd-dhcp6-client: logs invalid NTP option

Returning negative errno triggers to produce debugging log in
dhcp6_lease_parse_message().

4 years agosd-dhcp6-client: split dhcp6-internal.h into two
Yu Watanabe [Mon, 7 Feb 2022 19:05:00 +0000 (04:05 +0900)] 
sd-dhcp6-client: split dhcp6-internal.h into two

Also, this moves string tables to dhcp6-protocol.c.

4 years agonetwork: do not restart DHCPv6 client when it is already running in managed mode
Yu Watanabe [Mon, 7 Feb 2022 14:36:49 +0000 (23:36 +0900)] 
network: do not restart DHCPv6 client when it is already running in managed mode

Otherwise, if a network has two router and one provides M flag and the
other provides O flag, then the DHCPv6 client switches the running mode
repeatedly. That makes the IPv6 network configuration of the host
unstable.

4 years agosd-dhcp6-client: reset Information Refresh Time on stop
Yu Watanabe [Mon, 7 Feb 2022 14:23:05 +0000 (23:23 +0900)] 
sd-dhcp6-client: reset Information Refresh Time on stop

4 years agosd-dhcp6-client: add log about Information Refresh Time
Yu Watanabe [Mon, 7 Feb 2022 12:04:50 +0000 (21:04 +0900)] 
sd-dhcp6-client: add log about Information Refresh Time

And store IRT only when the client is running in information
requesting mode.

4 years agosd-dhcp6-client: use memcmp_nn() at one more place
Yu Watanabe [Mon, 7 Feb 2022 12:09:53 +0000 (21:09 +0900)] 
sd-dhcp6-client: use memcmp_nn() at one more place

4 years agodhcp-identifier: generate static and constant DUID-EN when the client is running...
Yu Watanabe [Mon, 7 Feb 2022 06:31:33 +0000 (15:31 +0900)] 
dhcp-identifier: generate static and constant DUID-EN when the client is running in test mode

Follow-up for 9216fddc5a8ac2742e6cfa7660f95c20ca4f2193.

4 years agodhcp-identifier: introduce dhcp_identifier_set_duid()
Yu Watanabe [Mon, 7 Feb 2022 06:10:25 +0000 (15:10 +0900)] 
dhcp-identifier: introduce dhcp_identifier_set_duid()

4 years agodhcp-identifier: introduce duid_type_to_string()
Yu Watanabe [Mon, 7 Feb 2022 06:08:27 +0000 (15:08 +0900)] 
dhcp-identifier: introduce duid_type_to_string()

4 years agosd-dhcp6-client: do not expose set_transaction_id()
Yu Watanabe [Mon, 7 Feb 2022 04:56:36 +0000 (13:56 +0900)] 
sd-dhcp6-client: do not expose set_transaction_id()

This is mostly for tests or fuzzers. Hence, this makes the function
requires that the client is running in the test mode.

Also, now the function mask the value for message type.

4 years agosd-dhcp6-client: use OrderedSet for vendor option
Yu Watanabe [Sun, 6 Feb 2022 20:37:02 +0000 (05:37 +0900)] 
sd-dhcp6-client: use OrderedSet for vendor option

This also fixes memleak.

4 years agoordered-set: introduce ordered_set_clear()
Yu Watanabe [Sun, 6 Feb 2022 20:34:37 +0000 (05:34 +0900)] 
ordered-set: introduce ordered_set_clear()

4 years agosd-dhcp6-client: use struct hw_addr_data
Yu Watanabe [Sun, 6 Feb 2022 20:21:52 +0000 (05:21 +0900)] 
sd-dhcp6-client: use struct hw_addr_data

4 years agosd-dhcp6-client: stop IO event source when client entered bound state
Yu Watanabe [Sun, 6 Feb 2022 20:21:31 +0000 (05:21 +0900)] 
sd-dhcp6-client: stop IO event source when client entered bound state

Also when the client receives a reply when running in information
requesting mode.

4 years agosd-dhcp6-client: adjust assertions
Yu Watanabe [Sun, 6 Feb 2022 19:34:05 +0000 (04:34 +0900)] 
sd-dhcp6-client: adjust assertions

4 years agosd-dhcp6-client: log state transition
Yu Watanabe [Sun, 6 Feb 2022 19:15:22 +0000 (04:15 +0900)] 
sd-dhcp6-client: log state transition

4 years agosd-dhcp6-client: rename client_set_state() -> client_start_transaction()
Yu Watanabe [Sun, 6 Feb 2022 19:04:34 +0000 (04:04 +0900)] 
sd-dhcp6-client: rename client_set_state() -> client_start_transaction()

Previously, it obeys state transition, but now it is only used when
(re-)starting transaction. Let's rename again in more explanative name.

4 years agosd-dhcp6-client: use proper type for string table lookup funcs
Yu Watanabe [Sun, 6 Feb 2022 18:53:08 +0000 (03:53 +0900)] 
sd-dhcp6-client: use proper type for string table lookup funcs

4 years agosd-dhcp6-client: voidify client_set_state()
Yu Watanabe [Sun, 6 Feb 2022 18:43:25 +0000 (03:43 +0900)] 
sd-dhcp6-client: voidify client_set_state()

4 years agosd-dhcp6-client: log message is processed before state is changed
Yu Watanabe [Sun, 6 Feb 2022 18:42:07 +0000 (03:42 +0900)] 
sd-dhcp6-client: log message is processed before state is changed

4 years agosd-dhcp6-client: move client_timeout_resend() and client_set_state()
Yu Watanabe [Sun, 6 Feb 2022 18:34:45 +0000 (03:34 +0900)] 
sd-dhcp6-client: move client_timeout_resend() and client_set_state()

These are deeply related to client_message_send(). Hence, move them near
the function.

4 years agosd-dhcp6-client: move client_ensure_iaid()
Yu Watanabe [Sun, 6 Feb 2022 18:23:34 +0000 (03:23 +0900)] 
sd-dhcp6-client: move client_ensure_iaid()

No functional change.

4 years agosd-dhcp6-client: merge client_start() and client_reset()
Yu Watanabe [Sun, 6 Feb 2022 18:19:40 +0000 (03:19 +0900)] 
sd-dhcp6-client: merge client_start() and client_reset()

4 years agosd-dhcp6-client: use event_reset_time_relative() at one more place
Yu Watanabe [Sun, 6 Feb 2022 18:03:24 +0000 (03:03 +0900)] 
sd-dhcp6-client: use event_reset_time_relative() at one more place

4 years agosd-dhcp6-client: max_retransmit_count is only used when client is in DHCP6_STATE_REQUEST
Yu Watanabe [Sun, 6 Feb 2022 17:59:31 +0000 (02:59 +0900)] 
sd-dhcp6-client: max_retransmit_count is only used when client is in DHCP6_STATE_REQUEST

4 years agosd-dhcp6-client: drop unnecessary event_source_disable()
Yu Watanabe [Sun, 6 Feb 2022 17:48:03 +0000 (02:48 +0900)] 
sd-dhcp6-client: drop unnecessary event_source_disable()

The event source will be soon re-enabled in the same function.

The function client_timeout_resend() may return earlier without
re-enabling the timer souce. However,
- the timer event source is one shot by default. Hence, it is not
  necessary to disable in the callback function,
- when it returns early, then client_set_state() or client_stop() is
  called before return, and they re-ernable or disable the timer.

4 years agosd-dhcp6-client: set lease expiration timer in client_enter_bound_state()
Yu Watanabe [Sun, 6 Feb 2022 17:36:55 +0000 (02:36 +0900)] 
sd-dhcp6-client: set lease expiration timer in client_enter_bound_state()

The timer must be active until the client get re-enter bound state,
and the timeout must be determined by the lease acquired when entering
the bound state.

4 years agosd-dhcp6-client: drop unnecessary assignment
Yu Watanabe [Sun, 6 Feb 2022 16:59:27 +0000 (01:59 +0900)] 
sd-dhcp6-client: drop unnecessary assignment

4 years agosd-dhcp6-client: initialize IO event source in sd_dhcp6_client_start()
Yu Watanabe [Sun, 6 Feb 2022 16:38:21 +0000 (01:38 +0900)] 
sd-dhcp6-client: initialize IO event source in sd_dhcp6_client_start()

4 years agosd-dhcp6-client: make state transition stricter
Yu Watanabe [Sun, 6 Feb 2022 16:24:01 +0000 (01:24 +0900)] 
sd-dhcp6-client: make state transition stricter

4 years agosd-dhcp6-client: prohibit spurious state transition
Yu Watanabe [Sun, 6 Feb 2022 16:09:09 +0000 (01:09 +0900)] 
sd-dhcp6-client: prohibit spurious state transition

Previously, `client_set_state(client, DHCP6_STATE_STOPPED)` might make
the client enter the SOLICIT state.

4 years agosd-dhcp6-client: disable T1 timer on T2
Yu Watanabe [Sun, 6 Feb 2022 15:23:19 +0000 (00:23 +0900)] 
sd-dhcp6-client: disable T1 timer on T2

Otherwise, the client may be enter RENEW state after REBIND state.

4 years agosd-dhcp6-client: call client_notify() in client_enter_bound_state()
Yu Watanabe [Sun, 6 Feb 2022 14:58:36 +0000 (23:58 +0900)] 
sd-dhcp6-client: call client_notify() in client_enter_bound_state()

4 years agosd-dhcp6-client: fix lifetime handling
Yu Watanabe [Sun, 6 Feb 2022 14:51:43 +0000 (23:51 +0900)] 
sd-dhcp6-client: fix lifetime handling

This fixes the following issues:
- if T1 is finite and T2 is infinite, then the timer for T1 was not
  enabled,
- after T1 and T2 are randomized, T1 may be longer than T2.

4 years agosd-dhcp6-client: use event_reset_time_relative()
Yu Watanabe [Sun, 6 Feb 2022 14:43:52 +0000 (23:43 +0900)] 
sd-dhcp6-client: use event_reset_time_relative()

4 years agosd-dhcp6-client: introduce client_enter_bound_state()
Yu Watanabe [Sun, 6 Feb 2022 14:33:55 +0000 (23:33 +0900)] 
sd-dhcp6-client: introduce client_enter_bound_state()

To make client_set_state() smaller. This should not change any behavior.

4 years agosd-dhcp6-client: fix overflow in calculating timeout value
Yu Watanabe [Sun, 6 Feb 2022 14:25:07 +0000 (23:25 +0900)] 
sd-dhcp6-client: fix overflow in calculating timeout value

4 years agosd-dhcp6-client: disable event source when client is stopped or freed
Yu Watanabe [Sun, 6 Feb 2022 13:35:17 +0000 (22:35 +0900)] 
sd-dhcp6-client: disable event source when client is stopped or freed

4 years agosd-dhcp6-client: use in6_addr_to_string()
Yu Watanabe [Sun, 6 Feb 2022 13:34:04 +0000 (22:34 +0900)] 
sd-dhcp6-client: use in6_addr_to_string()

4 years agosd-dhcp6-client: stop client on error in client state transition
Yu Watanabe [Sun, 6 Feb 2022 13:22:38 +0000 (22:22 +0900)] 
sd-dhcp6-client: stop client on error in client state transition

4 years agosd-dhcp6-client: add missing one more error handling
Yu Watanabe [Sun, 6 Feb 2022 13:17:43 +0000 (22:17 +0900)] 
sd-dhcp6-client: add missing one more error handling

4 years agosd-dhcp6-client: rename client_start() -> client_set_state()
Yu Watanabe [Sun, 6 Feb 2022 13:16:17 +0000 (22:16 +0900)] 
sd-dhcp6-client: rename client_start() -> client_set_state()

4 years agosd-dhcp6-client: introduce client_process_*()
Yu Watanabe [Sun, 6 Feb 2022 12:59:07 +0000 (21:59 +0900)] 
sd-dhcp6-client: introduce client_process_*()

This is mostly for shortening `client_receive_message()`.

This also fixes the following:
- do not trigger SD_DHCP6_CLIENT_EVENT_INFORMATION_REQUEST notification
  when non-reply message,
- add several missing error handlings caused in client_start().

4 years agosd-dhcp6-client: fix possible unaligned read or write
Yu Watanabe [Sun, 6 Feb 2022 11:53:34 +0000 (20:53 +0900)] 
sd-dhcp6-client: fix possible unaligned read or write

4 years agosd-dhcp6-client: voidify client_reset()
Yu Watanabe [Sun, 6 Feb 2022 10:42:58 +0000 (19:42 +0900)] 
sd-dhcp6-client: voidify client_reset()

4 years agosd-dhcp6-client: introduce dhcp6_lease_new_from_message()
Yu Watanabe [Sun, 6 Feb 2022 10:36:30 +0000 (19:36 +0900)] 
sd-dhcp6-client: introduce dhcp6_lease_new_from_message()

4 years agosd-dhcp6-client: use structured initializer
Yu Watanabe [Sun, 6 Feb 2022 09:24:13 +0000 (18:24 +0900)] 
sd-dhcp6-client: use structured initializer

4 years agosd-dhcp6-lease: unify lease lifetime calculation
Yu Watanabe [Sun, 6 Feb 2022 07:12:10 +0000 (16:12 +0900)] 
sd-dhcp6-lease: unify lease lifetime calculation

4 years agosd-dhcp6-client: always use ENODATA when a lease does not have requested data
Yu Watanabe [Sun, 6 Feb 2022 06:01:47 +0000 (15:01 +0900)] 
sd-dhcp6-client: always use ENODATA when a lease does not have requested data

4 years agosd-dhcp6-client: unify dhcp6_option_append_{ia,pd}()
Yu Watanabe [Sun, 6 Feb 2022 05:56:59 +0000 (14:56 +0900)] 
sd-dhcp6-client: unify dhcp6_option_append_{ia,pd}()

4 years agosd-dhcp6-client: store PD prefix hint in ia_pd
Yu Watanabe [Sun, 6 Feb 2022 05:32:36 +0000 (14:32 +0900)] 
sd-dhcp6-client: store PD prefix hint in ia_pd

And allows to specify multiple hints.

4 years agosd-dhcp6-client: introduce dhcp6_ia_free()
Yu Watanabe [Sun, 6 Feb 2022 05:18:44 +0000 (14:18 +0900)] 
sd-dhcp6-client: introduce dhcp6_ia_free()

4 years agosd-dhcp6-client: unify IA option header
Yu Watanabe [Sun, 6 Feb 2022 04:38:08 +0000 (13:38 +0900)] 
sd-dhcp6-client: unify IA option header

This also fixes possible unaligned read of message.

4 years agosd-dhcp6-lease: reset client or server ID when length is zero
Yu Watanabe [Fri, 4 Feb 2022 01:45:40 +0000 (10:45 +0900)] 
sd-dhcp6-lease: reset client or server ID when length is zero

Addresses https://github.com/systemd/systemd/pull/22406#issuecomment-1029391091.

4 years agosd-dhcp6-lease: convert assert_return() -> assert() in non-public functions
Yu Watanabe [Fri, 4 Feb 2022 01:40:33 +0000 (10:40 +0900)] 
sd-dhcp6-lease: convert assert_return() -> assert() in non-public functions

4 years agosd-dhcp6-client: rename ia -> ia_na, pd -> ia_pd in sd_dhcp6_lease
Yu Watanabe [Fri, 4 Feb 2022 01:17:44 +0000 (10:17 +0900)] 
sd-dhcp6-client: rename ia -> ia_na, pd -> ia_pd in sd_dhcp6_lease

The previous naming is quite misleading.

4 years agosd-dhcp6-client: fix typo ia_pd -> ia_na
Yu Watanabe [Fri, 4 Feb 2022 01:15:49 +0000 (10:15 +0900)] 
sd-dhcp6-client: fix typo ia_pd -> ia_na

Fortunately, currently both ia_pd and ia_na in sd_dhcp6_client are
equivalent now.

4 years agosd-dhcp6-client: introduce two helpers to create message
Yu Watanabe [Sat, 5 Feb 2022 05:19:59 +0000 (14:19 +0900)] 
sd-dhcp6-client: introduce two helpers to create message

4 years agosd-dhcp6-client: trigger assertion whn invalid IA type is provided
Yu Watanabe [Sat, 5 Feb 2022 05:29:33 +0000 (14:29 +0900)] 
sd-dhcp6-client: trigger assertion whn invalid IA type is provided

If the condition hits, then it is an error in coding, instead of a user
misconfiguration or invalid receivd message.

4 years agoMerge pull request #22499 from mrc0mmand/ci-tweaks
Evgeny Vereshchagin [Sun, 13 Feb 2022 16:13:05 +0000 (19:13 +0300)] 
Merge pull request #22499 from mrc0mmand/ci-tweaks

A couple of Packit/Super-Linter tweaks

4 years agoci: re-enable s390x Packit builds 22499/head
Frantisek Sumsal [Sun, 13 Feb 2022 14:00:22 +0000 (15:00 +0100)] 
ci: re-enable s390x Packit builds

The s390x Copr builders are finally[0] 'native' instead of QEMU-emulated,
which makes them pretty quick to be used in PRs.

[0] https://lists.fedoraproject.org/archives/list/copr-devel@lists.fedorahosted.org/message/AR3ZDKET3EXZHV3MSU3UHMO7EIKBGAN2/

4 years agoci: explicitly disable multi-status for Super-Linter
Frantisek Sumsal [Sun, 13 Feb 2022 13:59:08 +0000 (14:59 +0100)] 
ci: explicitly disable multi-status for Super-Linter

to, hopefully, get rid of the following error:

```
 2022-02-13 13:32:12 [ERROR]   Failed to get [GITHUB_TOKEN]!
 2022-02-13 13:32:12 [ERROR]   []
 2022-02-13 13:32:12 [ERROR]   Please set a [GITHUB_TOKEN] from the main workflow environment to take advantage of multiple status reports!
```

4 years agoci: use the 'slim' version of Super-Linter
Frantisek Sumsal [Sun, 13 Feb 2022 13:54:51 +0000 (14:54 +0100)] 
ci: use the 'slim' version of Super-Linter

The 'slim' version drops certain storage-heavy linters[0] which we don't
use anyway, so let's make the job a bit faster by downloading and using
a smaller image.

[0] https://github.com/github/super-linter#slim-image

4 years agoNEWS: clarify that ForceDHCPv6PDOtherInformation= is removed
Yu Watanabe [Sun, 13 Feb 2022 07:27:50 +0000 (16:27 +0900)] 
NEWS: clarify that ForceDHCPv6PDOtherInformation= is removed

Closes #22493.

4 years agonetwork: drop managed configs on reconfigure when KeepConfiguration=yes 22496/head
Yu Watanabe [Sun, 13 Feb 2022 10:57:09 +0000 (19:57 +0900)] 
network: drop managed configs on reconfigure when KeepConfiguration=yes

Otherwise, the managed configs, that is addresses, routes and so on
configured by the previously assigned .network file will not be dropped
on reconfiguring the interface.

4 years agonetwork: drop redundant condition
Yu Watanabe [Sun, 13 Feb 2022 10:54:09 +0000 (19:54 +0900)] 
network: drop redundant condition

The function `link_drop_foreign_addresses()` is only called in
`link_drop_foreign_config()`, and the same condition is located in the
caller.

4 years agocgroup-util: refuse the case that both path and suffix are empty strings
Yu Watanabe [Sat, 12 Feb 2022 06:32:48 +0000 (15:32 +0900)] 
cgroup-util: refuse the case that both path and suffix are empty strings

Fixes CID#1322378.

4 years agoboot: Correctly check the return value of CheckEvent
Jan Janssen [Fri, 11 Feb 2022 12:17:23 +0000 (13:17 +0100)] 
boot: Correctly check the return value of CheckEvent

Fixes: #22428
4 years agoMerge pull request #22485 from poettering/cgroup-id-not-support
Luca Boccassi [Fri, 11 Feb 2022 17:06:30 +0000 (17:06 +0000)] 
Merge pull request #22485 from poettering/cgroup-id-not-support

cgroup: downgrade warnings of "cgroup ID" can't be read (on old kernels)

4 years agoci: run all fuzz targets on CIFuzz
Evgeny Vereshchagin [Fri, 11 Feb 2022 02:01:33 +0000 (02:01 +0000)] 
ci: run all fuzz targets on CIFuzz

CIFuzz has been kind of broken for a couple months because
coverage reports downloaded from OSS-Fuzz contain absolute
paths while paths to files changed in PRs are relative and they
don't match. It makes it kind of hard for CIFuzz to figure out
what it should run so it runs either all fuzz targets or just new
fuzz targets. Until that issue is fixed let's just always predictably run
all fuzz targets.

4 years agopid1: export cgroup ID among per-unit cgroup information 22485/head
Lennart Poettering [Fri, 11 Feb 2022 12:24:35 +0000 (13:24 +0100)] 
pid1: export cgroup ID among per-unit cgroup information

It's really interesting for debugging purposes and we have it already,
hence expose it as dbus property.

4 years agocgroup-util: minor modernizations
Lennart Poettering [Fri, 11 Feb 2022 12:23:32 +0000 (13:23 +0100)] 
cgroup-util: minor modernizations

Rename return parameters to "ret", use ternary op without second
argument, rebreak comments, use isempty() more.

4 years agocgroup: downgrade warning if we can't get ID off cgroup
Lennart Poettering [Fri, 11 Feb 2022 12:18:58 +0000 (13:18 +0100)] 
cgroup: downgrade warning if we can't get ID off cgroup

The cgroupid feature was not available in old cgroupvs2 kernels, hence
try to get it but if we can't because it's not supported, then only
debug log about it and proceed.

(We only needs this for cgroup bpf stuff, but that isn't available on
such old kernels anyway)

Fixes: #22483