Lennart Poettering [Wed, 29 Sep 2021 07:47:08 +0000 (09:47 +0200)]
creds-util: switch to OpenSSL 3.0 APIs
Let's switch from the low-level SHA256 APIs to EVP APIs. The former are
deprecated on OpenSSL 3.0, the latter are supported both by old
OpenSSL and by OpenSSL 3.0, hence are the better choice.
Fixes: #20775
Anita Zhang [Wed, 29 Sep 2021 06:52:39 +0000 (23:52 -0700)]
basic/unit-file: don't filter out names starting with dot
Fixes #20859
Reverts
3796bdc55d6ba499d1049f749072218879e619a7
Lennart Poettering [Wed, 29 Sep 2021 08:30:17 +0000 (10:30 +0200)]
core: drop "const" from NeedsDaemonReload unit dbus property
It's not "const", it can change any time if people change the fs, and we
don#t send out notifications for it. Hence don't claim it was const.
(Otherwise clients might cache it, but they should not)
Prompted-by: #20792
Lennart Poettering [Wed, 29 Sep 2021 08:48:24 +0000 (10:48 +0200)]
resolvconf-compat: make "-u" operation a NOP
According to the various man pages of "resolvconf" the -u switch is for:
"-u Just run the update scripts (if updating is enabled)."
"-u Force resolvconf to update all its subscribers. resolvconf does not
update the subscribers when adding a resolv.conf that matches what
it already has for that interface."
We have no "subscribers", we ourselves are the only "subscriber" we
support. Hence it's probably better to ignore such a request and make it
a NOP, then to fail.
Fixes: #20748
Yu Watanabe [Wed, 29 Sep 2021 11:49:38 +0000 (20:49 +0900)]
Merge pull request #20802 from yuwata/network-receive-nl80211-multicast-messages
network: receive nl80211 multicast messages
Luca Boccassi [Wed, 29 Sep 2021 10:36:22 +0000 (11:36 +0100)]
CI: run GCC unit test job on push to main
Allows to get coverage data on coveralls.io
Lennart Poettering [Wed, 29 Sep 2021 07:17:48 +0000 (09:17 +0200)]
Merge pull request #20676 from gogsbread/sysctl-minimize-sideeffect
sysctl: minimize side effects when running `systemd-sysctl`
Yu Watanabe [Mon, 20 Sep 2021 19:57:43 +0000 (04:57 +0900)]
network: receive genl multicast messages about wlan connections
Yu Watanabe [Tue, 21 Sep 2021 23:25:36 +0000 (08:25 +0900)]
network: move error handling of enumerating configs to caller side
Yu Watanabe [Mon, 20 Sep 2021 19:44:00 +0000 (04:44 +0900)]
network: make manager_enumerate_internal() take sd_netlink object
Preparation for dumping information through generic netlink.
Yu Watanabe [Tue, 21 Sep 2021 23:36:11 +0000 (08:36 +0900)]
network: split manager_new() into two part
Initialize dbus or netlink is not necessary for fuzzers.
Yu Watanabe [Tue, 21 Sep 2021 06:14:59 +0000 (15:14 +0900)]
wifi-util: introduce nl80211_cmd_to_string()
Yu Watanabe [Mon, 20 Sep 2021 21:29:29 +0000 (06:29 +0900)]
network: rename wifi_iftype -> wlan_iftype
Yu Watanabe [Mon, 20 Sep 2021 21:25:53 +0000 (06:25 +0900)]
wifi-util: move, rename, and expose wifi_iftype_to_string()
Yu Watanabe [Mon, 20 Sep 2021 18:18:50 +0000 (03:18 +0900)]
sd-netlink: add several attributes for nl80211
Yu Watanabe [Tue, 21 Sep 2021 17:30:03 +0000 (02:30 +0900)]
sd-netlink, wifi-util: fix attribute type of NL80211_ATTR_SSID
Yu Watanabe [Tue, 21 Sep 2021 17:49:29 +0000 (02:49 +0900)]
wifi-util: add "ret_" prefix for arguments which store results
Yu Watanabe [Tue, 21 Sep 2021 17:17:11 +0000 (02:17 +0900)]
sd-netlink: introduce sd_netlink_message_read_data_suffix0()
Yu Watanabe [Wed, 22 Sep 2021 05:06:31 +0000 (14:06 +0900)]
sd-netlink: make sd_genl_message_new() or friends return -EOPNOTSUPP if a module is not supported by the kernel
Yu Watanabe [Tue, 21 Sep 2021 07:22:29 +0000 (16:22 +0900)]
sd-netlink: also check multicast group to find suitable match callback
Yu Watanabe [Mon, 20 Sep 2021 20:05:39 +0000 (05:05 +0900)]
sd-netlink: allow to set dump flag for genl or netfilter messages
Yu Watanabe [Mon, 20 Sep 2021 19:42:37 +0000 (04:42 +0900)]
sd-netlink: add type safe macro for sd_genl_add_match()
Yu Watanabe [Tue, 21 Sep 2021 06:27:13 +0000 (15:27 +0900)]
sd-netlink: minor coding style fixes
Yu Watanabe [Tue, 21 Sep 2021 06:10:56 +0000 (15:10 +0900)]
basic/linux: update nl80211.h
Antony Deepak Thomas [Wed, 29 Sep 2021 04:07:42 +0000 (13:07 +0900)]
sysctl-util: minimize side-effects when running `systemd-sysctl`
Currently `systemd-sysctl` binary is used in `systemd-sysctl.service`
which is mostly configured as `oneshot`. There are situations where one
would like to use systemd to maintain Sysctl configurations on a host,
using a configuration managers such as Chef or Puppet, by apply
configurations every X duration.
The problem with using `systemd-sysctl` is that it writes all the Sysctl
settings, even if the values for those settings have not changed. From
experience, we have observed that some Sysctl settings cause actions in
the kernel upon writing(like dropping caches) which in turn cause
undesired side effects.
This patch tries to minimize such side effects by comparing values
before writing.
Antony Deepak Thomas [Wed, 29 Sep 2021 04:06:25 +0000 (13:06 +0900)]
fileio: introduce new mode to suppress writing the same value
Antony Deepak Thomas [Wed, 29 Sep 2021 03:57:30 +0000 (12:57 +0900)]
string-util: introduce streq_skip_trailing_chars()
Antony Deepak Thomas [Wed, 29 Sep 2021 03:47:49 +0000 (12:47 +0900)]
fileio: introduce read_virtual_file_fd()
Yu Watanabe [Wed, 29 Sep 2021 03:29:14 +0000 (12:29 +0900)]
Merge pull request #20865 from keszybz/meson-net-naming-definitions
Allow defining new naming scheme entries as configuration time
Frantisek Sumsal [Tue, 28 Sep 2021 21:08:32 +0000 (23:08 +0200)]
core: fix the return type for xxx_running_timeout() functions
otherwise we might return an invalid value, since `usec_t` is 64-bit,
whereas `int` might not be.
Follow-up to:
5918a93
Fixes: #20872
Yu Watanabe [Wed, 29 Sep 2021 03:27:01 +0000 (12:27 +0900)]
Merge pull request #20860 from yuwata/libsystemd-network-get-ifname-negative-errno
libsystemd-network: make sd_dhcp_client_get_ifname() or friends return negative errno
Lennart Poettering [Tue, 28 Sep 2021 21:13:54 +0000 (23:13 +0200)]
Merge pull request #20870 from jwrdegoede/hwdb-2-accel-quirks
Hwdb 2 accel quirks
Lennart Poettering [Tue, 28 Sep 2021 18:52:01 +0000 (20:52 +0200)]
Merge pull request #20691 from poettering/gpt-sig
dissect: add support for GPT images with embedded dm-verity signatures
Yu Watanabe [Tue, 28 Sep 2021 13:04:52 +0000 (22:04 +0900)]
libsystemd-network: make sd_dhcp_client_get_ifname() or friends return negative errno on error
Yu Watanabe [Tue, 28 Sep 2021 12:19:07 +0000 (21:19 +0900)]
tree-wide: make format_ifname() or friends return negative errno on failure
Also,
- drop unnecessary +1 from buffer size, as IF_NAMESIZE or IFNAMSIZ
includes the nul at the end.
- format_ifname() does not update buffer on failure,
- introduces format_ifname_alloc(), FORMAT_IFNAME(), and their friends.
Hans de Goede [Tue, 28 Sep 2021 17:49:38 +0000 (19:49 +0200)]
hwdb: Add accel orientation quirk for the Cyberbook T116 tablet
Add a quirk for the accelerometer orientation for the
Cyberbook T116 rugged tablet.
Hans de Goede [Fri, 24 Sep 2021 13:26:43 +0000 (15:26 +0200)]
hwdb: Add accel orientation quirk for the Chuwi Hi10 Plus (CWI527)
Add a quirk for the accelerometer orientation for the
Chuwi Hi10 Plus (CWI527) tablet.
Lennart Poettering [Thu, 9 Sep 2021 16:18:53 +0000 (18:18 +0200)]
update TODO
Lennart Poettering [Tue, 28 Sep 2021 14:49:16 +0000 (16:49 +0200)]
tests: extend TEST-50-DISSECT to look for verity signatures
Lennart Poettering [Fri, 10 Sep 2021 09:01:09 +0000 (11:01 +0200)]
docs: document the three new env vars for tweaking GPT dissection/validation
Lennart Poettering [Fri, 10 Sep 2021 08:32:00 +0000 (10:32 +0200)]
docs: document the new Verity signature partition type, and its UUIDs
Lennart Poettering [Thu, 9 Sep 2021 15:55:36 +0000 (17:55 +0200)]
dissect-image: optionally, validate dm-verity signatures in userspace
Getting certificates for dm-verity roothash signing into the trusted
kernel keychain is a royal PITA (means recompiling or rebooting with
shim), hence let's add a minimal userspace PKCS7 validation as well.
The mechanism is really simple and compatible with the verification the
kernel does. The only difference is that the certificates are searched
in /etc/verity.d/*.crt (and similar dirs in /usr/lib/, …).
We'll first try validation by passing the PKCS#7 data to the kernel, but
if that doesn't work we'll see if one of the certificates found that way
works and then attempt to attach the image without passing the PKCS#7
data to the kernel.
This makes it very easy to have fully validated GPT disk images. For
example, just copy the 'mkosi.secure-boot.crt' file you have in your
mkosi build dir to /etc/verity.d/ and things should just work.
Lennart Poettering [Thu, 9 Sep 2021 14:04:00 +0000 (16:04 +0200)]
dissect-image: add env var for disabling "sidecar" loading of verity params
Just to make debugging easier.
Lennart Poettering [Thu, 9 Sep 2021 11:46:01 +0000 (13:46 +0200)]
dissect-image: load embedded verity signature info from image
This adds support for actually using embedded signature data from
partitions.
Lennart Poettering [Thu, 9 Sep 2021 09:43:13 +0000 (11:43 +0200)]
dissect-image: discover verity signature partitions
This doesn't make use of the discovered partitions yet, but it finds
them at least.
Lennart Poettering [Tue, 31 Aug 2021 15:29:34 +0000 (17:29 +0200)]
gpt: add partition type for PKCS#7 signatures for root hashes
Lennart Poettering [Tue, 28 Sep 2021 10:11:53 +0000 (12:11 +0200)]
cryptsetup: handle more gracefully if "keyslots" LUKS2 JSON header field is invalid
The field is not owned by us (even though is in our JSON objects) but by
the LUKS2 spec. Hence let's handle this a bit more gracefully: let's not
get confused by it, just warn and skip over it.
Fixes: #20847
Albert Brox [Tue, 13 Jul 2021 17:38:08 +0000 (13:38 -0400)]
core: implement RuntimeMaxDeltaSec directive
Daan De Meyer [Tue, 28 Sep 2021 10:16:43 +0000 (11:16 +0100)]
mkosi: Remove build script umask workaround
A fix for this landed in meson 3 years ago so the workaround in the
build script can now be removed (https://github.com/mesonbuild/meson/pull/3225).
alexlzhu [Fri, 9 Jul 2021 00:10:47 +0000 (17:10 -0700)]
core: Add ExecSearchPath parameter to specify the directory relative to which binaries executed by Exec*= should be found
Currently there does not exist a way to specify a path relative to which
all binaries executed by Exec should be found. The only way is to
specify the absolute path.
This change implements the functionality to specify a path relative to which
binaries executed by Exec*= can be found.
Closes #6308
Zbigniew Jędrzejewski-Szmek [Tue, 28 Sep 2021 08:12:36 +0000 (10:12 +0200)]
meson: allow extra net naming schemes to be defined during configuration
In upstream, we have a linearly-growing list of net-naming-scheme defines;
we add a new one for every release where we make user-visible changes to the
naming scheme.
But the general idea was that downstream distributions could define their
own combinations (or even just their own names for existing combinations),
so provide stability for their users. So far this required patching of the
netif-naming-scheme.c and .h files to add the new lines.
With this patch, patching is not required:
$ meson configure build \
-Dextra-net-naming-schemes=gargoyle=v238+npar_ari+allow_rerenames,gargoyle2=gargoyle+nspawn_long_hash \
-Ddefault-net-naming-scheme=gargoyle2
or even
$ meson configure build \
-Dextra-net-naming-schemes=gargoyle=v238+npar_ari+allow_rerenames,gargoyle2=gargoyle+nspawn_long_hash,latest=v249 \
-Ddefault-net-naming-scheme=gargoyle2
The syntax is a comma-separated list of NAME=name+name+…
This syntax is a bit scary, but any typos result in compilation errors,
so I think it should be OK in practice.
With this approach, we don't allow users to define arbitrary combinations:
what is allowed is still defined at compilation time, so it's up to the
distribution maintainers to provide reasonable combinations. In this regard,
the only difference from status quo is that it's much easier to do (and harder
to do incorrectly, for example by forgetting to add a name to one of the
maps).
Zbigniew Jędrzejewski-Szmek [Tue, 28 Sep 2021 07:33:30 +0000 (09:33 +0200)]
meson: drop the list of valid net naming schemes
We used 'combo' type for the scheme list. For a while we forgot to add
new names, and recently
aa0a23ec86 added v241, v243, v245, and v247.
I want to allow defining new values during configuration, which means
that we can't use meson to verify the list of options. So any value is
allowed, but then two tests are added: one that will fail compilation if some
invalid name is given (other than "latest"), and one that converts
DEFAULT_NET_NAMING_SCHEME to a NamingScheme pointer.
Zbigniew Jędrzejewski-Szmek [Tue, 28 Sep 2021 11:45:59 +0000 (13:45 +0200)]
Merge pull request #20837 from bluca/coveralls
CI: add code coverage reports via lcov and coveralls.io
Yu Watanabe [Tue, 28 Sep 2021 11:22:21 +0000 (20:22 +0900)]
Merge pull request #20861 from yuwata/sd-lldp-rx-cleanups
sd-lldp-rx: several trivial cleanups
Zbigniew Jędrzejewski-Szmek [Tue, 28 Sep 2021 06:55:18 +0000 (08:55 +0200)]
netif-naming: inline one iterator variable
Yu Watanabe [Tue, 28 Sep 2021 06:51:59 +0000 (15:51 +0900)]
sd-lldp-rx: make lldp_rx_free() and lldp_neighbor_free() accept NULL
Yu Watanabe [Tue, 28 Sep 2021 06:41:19 +0000 (15:41 +0900)]
sd-lldp-rx: sd_event should be attached when lldp_rx_start_timer() is called
Yu Watanabe [Tue, 28 Sep 2021 06:38:50 +0000 (15:38 +0900)]
sd-lldp-rx: do not enable timer event source in sd_lldp_rx_get_neighbors()
It must be just a simple getter.
Yu Watanabe [Tue, 28 Sep 2021 06:30:52 +0000 (15:30 +0900)]
sd-lldp-rx: use _cleanup_ attribute at one more place
Yu Watanabe [Tue, 28 Sep 2021 06:29:27 +0000 (15:29 +0900)]
sd-lldp-rx: wrap long line
Yu Watanabe [Tue, 28 Sep 2021 06:29:07 +0000 (15:29 +0900)]
sd-lldp-rx: add missing assertions
Yu Watanabe [Tue, 28 Sep 2021 06:19:39 +0000 (15:19 +0900)]
sd-lldp-rx: delay allocating hashmap and prioq to store neighbors
Yu Watanabe [Tue, 28 Sep 2021 06:14:50 +0000 (15:14 +0900)]
prioq: introduce prioq_ensure_put()
Yu Watanabe [Tue, 28 Sep 2021 05:55:06 +0000 (14:55 +0900)]
sd-lldp-rx: ensure no event will be triggered after sd_lldp_rx_detach_event() is called
Yu Watanabe [Tue, 28 Sep 2021 06:01:06 +0000 (15:01 +0900)]
sd-lldp-rx: add comments about the three multicast addresses
Yu Watanabe [Tue, 28 Sep 2021 05:51:24 +0000 (14:51 +0900)]
sd-lldp-rx: introduce sd_lldp_rx_is_running()
Yu Watanabe [Tue, 28 Sep 2021 05:44:12 +0000 (14:44 +0900)]
sd-lldp-rx: ignore all errors in processing datagram
Yu Watanabe [Tue, 28 Sep 2021 02:29:34 +0000 (11:29 +0900)]
Merge pull request #20846 from yuwata/sd-lldp-tx
network: move LLDP transmission feature to libsystemd-network
Yu Watanabe [Tue, 28 Sep 2021 02:28:07 +0000 (11:28 +0900)]
Merge pull request #20855 from dannf/update-net-name-schemes
Update net name schemes
Lennart Poettering [Mon, 27 Sep 2021 12:28:16 +0000 (14:28 +0200)]
resolved: suppress writing DNS server info into /etc/resolv.conf for non-standard UDP ports
glibc doesn't support this, hence don#t generate it.
Fixes: #20836
Luca Boccassi [Mon, 27 Sep 2021 13:49:47 +0000 (14:49 +0100)]
parse-util: prefix load average macros with LOAD_AVG_
Follow-up for #20839
dann frazier [Mon, 27 Sep 2021 17:08:37 +0000 (11:08 -0600)]
Remind developers to update the list of net naming schemes that can be selected as a build-time defaults.
dann frazier [Mon, 27 Sep 2021 17:00:53 +0000 (11:00 -0600)]
Add remaining supported schemes as options for default-net-naming-scheme
Yu Watanabe [Sun, 26 Sep 2021 10:13:20 +0000 (19:13 +0900)]
network: use sd-lldp-tx
Yu Watanabe [Sun, 26 Sep 2021 08:07:34 +0000 (17:07 +0900)]
sd-lldp-tx: introduce sd-lldp-tx
Yu Watanabe [Sun, 26 Sep 2021 10:53:00 +0000 (19:53 +0900)]
hostname-util: introduce get_pretty_hostname()
Yu Watanabe [Sun, 26 Sep 2021 11:19:54 +0000 (20:19 +0900)]
sd-lldp: introduce SD_LLDP_OUI_IANA_MUD macro
Yu Watanabe [Mon, 27 Sep 2021 16:32:40 +0000 (01:32 +0900)]
sd-lldp: constify OUI
Yu Watanabe [Sun, 26 Sep 2021 11:03:51 +0000 (20:03 +0900)]
sd-lldp-rx: split out enum definitions
Yu Watanabe [Sun, 26 Sep 2021 03:39:36 +0000 (12:39 +0900)]
sd-lldp-rx: rename sd_lldp -> sd_lldp_rx
Yu Watanabe [Sun, 26 Sep 2021 03:34:41 +0000 (12:34 +0900)]
test: also rename {test,fuzz}-lldp.c
Yu Watanabe [Sun, 26 Sep 2021 02:51:17 +0000 (11:51 +0900)]
sd-lldp: rename sd-lldp.[ch] -> sd-lldp-rx.[ch]
Yu Watanabe [Sun, 26 Sep 2021 02:45:03 +0000 (11:45 +0900)]
meson: sort files
Lennart Poettering [Mon, 27 Sep 2021 11:44:54 +0000 (13:44 +0200)]
Merge pull request #20768 from pdmorrow/shutdown_cgroup_ctrl
cgroups: apply StartupAllowedCPUs= and StartupAllowedMemoryNodes= during shutdown
Luca Boccassi [Mon, 27 Sep 2021 11:24:48 +0000 (12:24 +0100)]
CI: do manpages build only on the clang unit test run
It's slow and unaffected by compiler/flags, so no point in repeating it
Luca Boccassi [Wed, 22 Sep 2021 14:41:22 +0000 (15:41 +0100)]
CI: add code coverage reports via lcov and coveralls.io
Luca Boccassi [Sat, 25 Sep 2021 14:40:39 +0000 (15:40 +0100)]
CI: run unit tests in a network namespace
It seems some of the tests break network connectivity on the host,
as the code coverage upload fails to establish a connection.
Run them in a network namespace with 'unshare -n'.
Luca Boccassi [Fri, 24 Sep 2021 17:38:25 +0000 (18:38 +0100)]
test: double test-hashmap timeout
When coverage flags are used, sometimes it goes just over 90s on a
slow CI machine
Zbigniew Jędrzejewski-Szmek [Mon, 27 Sep 2021 10:09:48 +0000 (12:09 +0200)]
Merge pull request #20849 from keszybz/man-page-tags-and-links
Add license tags to doc pages, fixups and more internal links in man pages
Kay Siver Bø [Sat, 25 Sep 2021 10:37:29 +0000 (12:37 +0200)]
hwbd: 60-sensor.hwdb: Add Lenovo ThinkPad Yoga 11e 5th Gen (Type: 20LN, Gemini Lake)
Zbigniew Jędrzejewski-Szmek [Mon, 27 Sep 2021 07:09:30 +0000 (09:09 +0200)]
man: mention pages with more settings at end of each option list
For some unit types we have hundreds of options, and the reader may easily miss
that more options are described in other pages. We already mentioned this in
the introduction and then at the top of the option list, but it can't hurt to
repeat the information.
Also, add an (almost empty) Options section for the unit types which don't have
any custom options. It is nicer to have the same page structure in all cases,
so people can jump between pages for different types more easily.
Zbigniew Jędrzejewski-Szmek [Mon, 27 Sep 2021 06:43:10 +0000 (08:43 +0200)]
man: refresh description of sysvinit compat for services
The existing text must have been written before systemd-sysv-generator was
created. We don't create the wrappers dynamically since a long time.
Also add more links and make the description conditional on "if compat
is enabled".
Zbigniew Jędrzejewski-Szmek [Fri, 24 Sep 2021 07:12:02 +0000 (09:12 +0200)]
man: minor grammar fixups in systemd-cryptenroll
Zbigniew Jędrzejewski-Szmek [Tue, 14 Sep 2021 14:05:21 +0000 (16:05 +0200)]
docs: add spdx tags to all .md files
I have no idea if this is going to cause rendering problems, and it is fairly
hard to check. So let's just merge this, and if it github markdown processor
doesn't like it, revert.
Zbigniew Jędrzejewski-Szmek [Wed, 8 Sep 2021 13:46:17 +0000 (15:46 +0200)]
man: cross-reference DeviceAllow= and PrivateDevices=
They are somewhat similar, but not easy to discover, esp. considering that
they are described in different pages.
For PrivateDevices=, split out the first paragraph that gives the high-level
overview. (The giant second paragraph could also use some heavy editing to break
it up into more digestible chunks, alas.)
Yu Watanabe [Fri, 24 Sep 2021 15:16:20 +0000 (00:16 +0900)]
meson: refuse implicit int <-> pointer conversion
Before:
```
Compiling C object src/libsystemd-network/libsystemd-network.a.p/dhcp6-option.c.o
../src/libsystemd-network/dhcp6-option.c: In function ‘dhcp6_option_parse_ia’:
../src/libsystemd-network/dhcp6-option.c:633:70: warning: passing argument 3 of ‘dhcp6_option_parse’ makes pointer from integer without a cast [-Wint-conversion]
633 | r = dhcp6_option_parse(option_data, option_data_len, offset, &subopt, &subdata_len, &subdata);
| ^~~~~~
| |
| size_t {aka long unsigned int}
../src/libsystemd-network/dhcp6-option.c:358:25: note: expected ‘size_t *’ {aka ‘long unsigned int *’} but argument is of type ‘size_t’ {aka ‘long unsigned int’}
358 | size_t *offset,
| ~~~~~~~~^~~~~~
```
After:
```
../src/libsystemd-network/dhcp6-option.c: In function ‘dhcp6_option_parse_ia’:
../src/libsystemd-network/dhcp6-option.c:633:70: error: passing argument 3 of ‘dhcp6_option_parse’ makes pointer from integer without a cast [-Werror=int-conversion]
633 | r = dhcp6_option_parse(option_data, option_data_len, offset, &subopt, &subdata_len, &subdata);
| ^~~~~~
| |
| size_t {aka long unsigned int}
../src/libsystemd-network/dhcp6-option.c:358:25: note: expected ‘size_t *’ {aka ‘long unsigned int *’} but argument is of type ‘size_t’ {aka ‘long unsigned int’}
358 | size_t *offset,
| ~~~~~~~~^~~~~~
cc1: some warnings being treated as errors
```
Luca Boccassi [Fri, 24 Sep 2021 16:28:27 +0000 (17:28 +0100)]
basic: delete loadavg.h copy
loadavg.h is an internal header of the Linux source repository, and as
such it is licensed as GPLv2-only, without syscall exception.
We use it only for 4 macros, which are simply doing some math calculations
that cannot thus be subject to copyright.
Reimplement the same calculations in another internal header and delete
loadavg.h from our tree.
nl6720 [Fri, 24 Sep 2021 10:22:18 +0000 (13:22 +0300)]
user-record: switch the default LUKS PBKDF to argon2id to match cryptsetup
cryptsetup 2.4.0 changed the default LUKS2 PBKDF to argon2id.
See https://gitlab.com/cryptsetup/cryptsetup/-/commit/
db775417909db0f0b07168d07fdf8813e3ca94fe.
Anssi Hannula [Fri, 24 Sep 2021 12:26:21 +0000 (15:26 +0300)]
man: fix a reference in timedatectl man page
timedatectl(1) says the synchronization service list generation is
described "below", but in reality it is documented in
systemd-timedated.service(8).
Fix the sentence to reference the correct man page.
Peter Morrow [Fri, 17 Sep 2021 10:13:39 +0000 (11:13 +0100)]
man: Startup* updates for systemd.resource-control
All Startup*= directives now also apply to the shutdown phase as well as
boot phase.