Yu Watanabe [Wed, 31 Aug 2022 14:12:26 +0000 (23:12 +0900)]
test-29-portable: enable debugging logs of udevd
Yu Watanabe [Wed, 31 Aug 2022 14:10:43 +0000 (23:10 +0900)]
test-29-portable: extend timeout for slower environment
Yu Watanabe [Wed, 31 Aug 2022 13:43:50 +0000 (22:43 +0900)]
dissect-image: add environment variable to control timeout for waiting devlink to be configured
Yu Watanabe [Wed, 31 Aug 2022 13:17:12 +0000 (22:17 +0900)]
udev-util: make device_wait_for_initialization() take relative timeout
Also make the timer event source floating.
Yu Watanabe [Wed, 31 Aug 2022 13:30:17 +0000 (22:30 +0900)]
udev-util: replace device_new_from_dev_path() with sd_device_new_from_devname()
Lennart Poettering [Mon, 29 Aug 2022 09:07:43 +0000 (11:07 +0200)]
hashmap: add comment explaining that set_fnmatch() handles fnmatch() errors as non-matches
Yu Watanabe [Wed, 31 Aug 2022 09:46:27 +0000 (18:46 +0900)]
Merge pull request #24499 from medhefgo/format-signedness
meson: Compile with -Werror=format-signedness
Swapnil Devesh [Tue, 30 Aug 2022 19:31:50 +0000 (01:01 +0530)]
hwdb: fix Dell Professional Sound Bar AE515 scancode (#24497)
Jan Janssen [Tue, 30 Aug 2022 07:57:53 +0000 (09:57 +0200)]
meson: Compile with -Werror=format-signedness
Jan Janssen [Tue, 30 Aug 2022 07:52:03 +0000 (09:52 +0200)]
tree-wide: Fix field width specifier warnings
The casting here isn't pretty, but at least it makes it obvious what is
happening instead of implicit and it allows enabling -Wformat-signedness.
Jan Janssen [Tue, 30 Aug 2022 07:28:56 +0000 (09:28 +0200)]
tree-wide: Fix format specifier warnings for %x
Unfortunately, hex output can only be produced with unsigned types. Some
cases can be fixed by producing the correct type, but a few simply have
to be cast. At least casting makes it explicit.
Jan Janssen [Mon, 29 Aug 2022 11:43:29 +0000 (13:43 +0200)]
tree-wide: Fix a some remaining format warnings by casting
Jan Janssen [Mon, 29 Aug 2022 11:36:19 +0000 (13:36 +0200)]
tree-wide: Mark some constants as unsigned
All these are really unsigned and used as such. This silences some
-Wformat-signedness warnings with gcc.
Jan Janssen [Mon, 29 Aug 2022 11:19:08 +0000 (13:19 +0200)]
journal: Show grcrypt error message instead of a raw code
Jan Janssen [Mon, 29 Aug 2022 11:08:31 +0000 (13:08 +0200)]
efivars: Parse into unsigned
The format specifiers for UUID parsing use %x, which expects unsigned.
Jan Janssen [Mon, 29 Aug 2022 11:07:11 +0000 (13:07 +0200)]
tree-wide: Use correct format specifiers
gcc will complain about all these with -Wformat-signedness.
Yu Watanabe [Mon, 29 Aug 2022 22:31:20 +0000 (07:31 +0900)]
Merge pull request #24474 from yuwata/udevadm-settle-cleanups
udevadm-settle: several cleanups
Yu Watanabe [Mon, 29 Aug 2022 22:31:05 +0000 (07:31 +0900)]
Merge pull request #24471 from yuwata/udevadm-wait-periodic-timer
udevadm-wait: introduce periodic timer for checking devices
Yu Watanabe [Mon, 29 Aug 2022 22:30:49 +0000 (07:30 +0900)]
Merge pull request #23888 from topimiettinen/networkd-netlabel-v2
network: NetLabel integration
LockBlock-dev [Mon, 29 Aug 2022 15:40:04 +0000 (15:40 +0000)]
hwdb: Force release calculator key on all HP Victus laptops
The key doesn't create a release event. This is a fix to make it work properly. I made sure the product is generic to work on all Victus laptops.
This fix #23006.
Lennart Poettering [Mon, 29 Aug 2022 13:11:15 +0000 (15:11 +0200)]
homed: don't use stat() data from an unrelated inode
This doesn't really change anything, since we know the stat data used
here also contains S_IFBLK, but it's frickin' confusing.
Yu Watanabe [Mon, 29 Aug 2022 16:10:43 +0000 (01:10 +0900)]
Merge pull request #24495 from poettering/loopback-block-msg
improve loopback warning message
Lennart Poettering [Mon, 29 Aug 2022 09:06:39 +0000 (11:06 +0200)]
strv: modernize strv_fnmatch() a bit
Frantisek Sumsal [Mon, 29 Aug 2022 15:35:07 +0000 (15:35 +0000)]
Merge pull request #24466 from mrc0mmand/TEST-75-tweaks
test: fix delv trust anchors location on Ubuntu
Lennart Poettering [Mon, 29 Aug 2022 13:11:09 +0000 (15:11 +0200)]
loopback: use ERRNO_IS_PRIVILEGE() where appropriate
Lennart Poettering [Mon, 29 Aug 2022 13:10:16 +0000 (15:10 +0200)]
loop: make 'Failed to configure loopback device' log message clearer
We print the very same log message for loopback block devices and for
loopback network devices. Let's better be clear what kind it is.
Lennart Poettering [Fri, 26 Aug 2022 13:59:07 +0000 (15:59 +0200)]
docs: use Title Case for section titles
as per:
https://titlecase.com/
Topi Miettinen [Sat, 20 Aug 2022 17:57:06 +0000 (20:57 +0300)]
test: testing for networkd NetLabel feature
Topi Miettinen [Sat, 20 Aug 2022 17:52:48 +0000 (20:52 +0300)]
network: NetLabel integration
New directive `NetLabel=` provides a method for integrating static and dynamic
network configuration into Linux NetLabel subsystem rules, used by Linux
Security Modules (LSMs) for network access control. The label, with suitable
LSM rules, can be used to control connectivity of (for example) a service with
peers in the local network. At least with SELinux, only the ingress can be
controlled but not egress. The benefit of using this setting is that it may be
possible to apply interface independent part of NetLabel configuration at very
early stage of system boot sequence, at the time when the network interfaces
are not available yet, with netlabelctl(8), and the per-interface configuration
with systemd-networkd once the interfaces appear later. Currently this feature
is only implemented for SELinux.
The option expects a single NetLabel label. The label must conform to lexical
restrictions of LSM labels. When an interface is configured with IP addresses,
the addresses and subnetwork masks will be appended to the NetLabel Fallback
Peer Labeling rules. They will be removed when the interface is
deconfigured. Failures to manage the labels will be ignored.
Example:
```
[DHCPv4]
NetLabel=system_u:object_r:localnet_peer_t:s0
```
With the above rules for interface `eth0`, when the interface is configured with
an IPv4 address of 10.0.0.123/8, `systemd-networkd` performs the equivalent of
`netlabelctl` operation
```
$ sudo netlabelctl unlbl add interface eth0 address:10.0.0.0/8 label:system_u:object_r:localnet_peer_t:s0
```
Result:
```
$ sudo netlabelctl -p unlbl list
...
interface: eth0
address: 10.0.0.0/8
label: "system_u:object_r:localnet_peer_t:s0"
...
```
Topi Miettinen [Sat, 27 Aug 2022 22:09:55 +0000 (07:09 +0900)]
sd-netlink: add NetLabel support
Topi Miettinen [Sat, 2 Jul 2022 14:15:42 +0000 (17:15 +0300)]
basic: generate netmasks for IPv6 and generic IP family addresses
Added functions to generate netmasks for IPv6 and generic IP family addresses.
Wenchao Hao [Sun, 28 Aug 2022 08:44:56 +0000 (16:44 +0800)]
scsi_id: retry inquiry ioctl if host_byte is DID_TRANSPORT_DISRUPTED
The inquiry is issued to kernel via ioctl, kernelspace would set
this inquiry command's retry count to 0 which means the command
would not be retried in kernel space even if the LLDs returned
a status which need to be retried. So we should take the retry
in user space.
Daniel Braunwarth [Sun, 28 Aug 2022 18:02:50 +0000 (20:02 +0200)]
condition: fix device-tree firmware path
The path /sys/firmware/device-tree doesn't exist. This should be either
/proc/device-tree or /sys/firmware/devicetree.
The first path is only a link. So lets use the second path.
See https://github.com/torvalds/linux/blob/v4.14/drivers/of/base.c#L218.
Yu Watanabe [Sat, 27 Aug 2022 07:13:27 +0000 (16:13 +0900)]
test-50-dissect: wait for and lock loop block partition devices
Yu Watanabe [Fri, 26 Aug 2022 16:17:46 +0000 (01:17 +0900)]
udevadm-wait: introduce periodic timer for checking devices
When --initialized=no is specified, it is not necessary to wait
for uevents to be processed by udevd.
Yu Watanabe [Sat, 27 Aug 2022 06:58:46 +0000 (15:58 +0900)]
Revert "test: wait for loop device to be removed"
This reverts commit
1a0e065e9f154f46fd68cd45f46310bc7df7a51c.
This does not work as expected.
After `losetup --detach`, the kernel lazily removes the loop device.
But, systemd-dissect should gracefully handle that. If it does not, then
it is a bug in systemd-dissect.
Let's not hide the real issue in systemd-dissect.
Yu Watanabe [Sat, 27 Aug 2022 16:11:47 +0000 (01:11 +0900)]
udevadm-settle: check validity of specified path
Yu Watanabe [Sat, 27 Aug 2022 16:06:08 +0000 (01:06 +0900)]
udevadm-settle: use sd-event
Yu Watanabe [Sat, 27 Aug 2022 16:04:56 +0000 (01:04 +0900)]
udevadm-settle: rename arg_timeout -> arg_timeout_usec
Yu Watanabe [Sat, 27 Aug 2022 15:45:21 +0000 (00:45 +0900)]
udevadm-settle: check if udevd is running
Yu Watanabe [Sat, 27 Aug 2022 15:31:13 +0000 (00:31 +0900)]
udevadm-settle: make failure in udev_ctrl_new() critical
It should not fail in general.
Yu Watanabe [Sat, 27 Aug 2022 15:33:15 +0000 (00:33 +0900)]
udevadm-settle: emit deprecated warning earlier
adrian5 [Mon, 29 Aug 2022 02:24:56 +0000 (04:24 +0200)]
man: Minor punctuation and word tweak
Yu Watanabe [Sat, 27 Aug 2022 06:44:17 +0000 (15:44 +0900)]
udev-util: minor cleanups for on_ac_power()
Follow-ups for #24420.
Luca Boccassi [Sun, 28 Aug 2022 20:09:10 +0000 (21:09 +0100)]
Merge pull request #24475 from yuwata/devpath
sd-device: introduce two helper functions for devnum
Yu Watanabe [Sun, 28 Aug 2022 03:54:52 +0000 (12:54 +0900)]
network: drop unused timestamp
Yu Watanabe [Sun, 28 Aug 2022 02:58:52 +0000 (11:58 +0900)]
test-64: run one more subtest on non-KVM environment with relaxed condition
Uriel Corfa [Sun, 28 Aug 2022 07:56:46 +0000 (09:56 +0200)]
docs: fix incorrect env var name for credentials directory
CREDENTIAL_PATH appears nowhere in the systemd source code.
$CREDENTIALS_DIRECTORY is what is used instead.
Yu Watanabe [Sat, 27 Aug 2022 21:10:44 +0000 (06:10 +0900)]
shell-completion: drop unused $mode
Fixes #24473.
Yu Watanabe [Sat, 27 Aug 2022 20:52:12 +0000 (05:52 +0900)]
udevadm: replace find_device_from_path() with sd_device_new_from_path()
Yu Watanabe [Sat, 27 Aug 2022 22:47:55 +0000 (07:47 +0900)]
test-network: add missing online check
Yu Watanabe [Sun, 28 Aug 2022 02:14:51 +0000 (11:14 +0900)]
udev: do not kill workers when requested to set the same log level currently assigned
Also refuse invalid log level.
Yu Watanabe [Sun, 28 Aug 2022 03:57:09 +0000 (12:57 +0900)]
udev/net: drop unused timestamp
Yu Watanabe [Sun, 28 Aug 2022 02:59:44 +0000 (11:59 +0900)]
test-64: relax number of partitions used in testcase_simultaneous_events() to speed up non-KVM environment
Yu Watanabe [Sat, 27 Aug 2022 20:56:25 +0000 (05:56 +0900)]
tree-wide: use devpath_from_devnum() and device_open_from_devnum()
Fixes #24465.
Yu Watanabe [Sat, 27 Aug 2022 21:43:30 +0000 (06:43 +0900)]
sd-device: skip to check diskseq if device is not initialized
Yu Watanabe [Sat, 27 Aug 2022 19:30:23 +0000 (04:30 +0900)]
sd-device: introduce device_open_from_devnum()
Yu Watanabe [Sat, 27 Aug 2022 17:45:56 +0000 (02:45 +0900)]
sd-device: introduce devpath_from_devnum()
Yu Watanabe [Sat, 27 Aug 2022 19:15:35 +0000 (04:15 +0900)]
devnum-util: split-out device_path_make_inaccessible()
Yu Watanabe [Sat, 27 Aug 2022 18:22:02 +0000 (03:22 +0900)]
sd-device: rename device-util.c -> device-filter.c
The functions provided by the file are only used in sd-device.
Yu Watanabe [Sat, 27 Aug 2022 17:59:30 +0000 (02:59 +0900)]
growfs,repart: fix misuse of sd_device_get_devpath()
Follow-up for
0f79b3469f167583033d17f9a6fa0e4341a68003.
To obtain device node, sd_device_get_devname() must be used.
Yu Watanabe [Sat, 27 Aug 2022 16:43:23 +0000 (01:43 +0900)]
test-64: extend timeout for slower env e.g. non-kvm
Yu Watanabe [Sat, 27 Aug 2022 15:03:36 +0000 (00:03 +0900)]
tree-wide: fix typo
Swapnil Devesh [Sat, 27 Aug 2022 09:44:08 +0000 (15:14 +0530)]
hwdb: Add Dell Professional Sound Bar AE515
Yu Watanabe [Sat, 27 Aug 2022 06:24:49 +0000 (15:24 +0900)]
loop-util: use filter provided by sd_device_enumerator
Frantisek Sumsal [Fri, 26 Aug 2022 19:07:44 +0000 (21:07 +0200)]
test: reload knotd after committing all zone changes
Otherwise, on Ubuntu, the DS RRs sometimes won't get propagated
correctly to parent zones for some reason, ending in a loop:
```
knotd[70]: info: [test.] DS check, outgoing, remote 10.0.0.1@53, KSK submission check: negative
knotd[70]: info: [signed.test.] DS check, outgoing, remote 10.0.0.1@53, KSK submission check: negative
knotd[70]: info: [test.] DS check, outgoing, remote 10.0.0.1@53, KSK submission check: negative
knotd[70]: info: [signed.test.] DS check, outgoing, remote 10.0.0.1@53, KSK submission check: negative
knotd[70]: info: [test.] DS check, outgoing, remote 10.0.0.1@53, KSK submission check: negative
knotd[70]: info: [signed.test.] DS check, outgoing, remote 10.0.0.1@53, KSK submission check: negative
knotd[70]: info: [test.] DS check, outgoing, remote 10.0.0.1@53, KSK submission check: negative
knotd[70]: info: [signed.test.] DS check, outgoing, remote 10.0.0.1@53, KSK submission check: negative
knotd[70]: info: [test.] DS check, outgoing, remote 10.0.0.1@53, KSK submission check: negative
knotd[70]: info: [signed.test.] DS check, outgoing, remote 10.0.0.1@53, KSK submission check: negative
knotd[70]: info: [test.] DS check, outgoing, remote 10.0.0.1@53, KSK submission check: negative
knotd[70]: info: [signed.test.] DS check, outgoing, remote 10.0.0.1@53, KSK submission check: negative
knotd[70]: info: [test.] DS check, outgoing, remote 10.0.0.1@53, KSK submission check: negative
knotd[70]: info: [signed.test.] DS check, outgoing, remote 10.0.0.1@53, KSK submission check: negative
knotd[70]: info: [test.] DS check, outgoing, remote 10.0.0.1@53, KSK submission check: negative
knotd[70]: info: [signed.test.] DS check, outgoing, remote 10.0.0.1@53, KSK submission check: negative
...
```
causing DNSSEC verification fails. I'm not sure why that happens (yet)...
Frantisek Sumsal [Fri, 26 Aug 2022 16:45:38 +0000 (18:45 +0200)]
test: fix delv trust anchors location on Ubuntu
delv on Ubuntu defaults to /etc/bind/bind.keys instead of /etc/bind.keys
when reading trust anchors, so let's create a symlink to make the test
work there as well.
Resolves: #24453
Frantisek Sumsal [Fri, 26 Aug 2022 18:08:40 +0000 (20:08 +0200)]
test: fix typo
Frantisek Sumsal [Fri, 26 Aug 2022 16:40:53 +0000 (18:40 +0200)]
test: drop old DS records if present
This makes the test re-runnable without having to go through the cleanup
and setup phases again.
Yu Watanabe [Sat, 27 Aug 2022 09:18:30 +0000 (18:18 +0900)]
Merge pull request #24468 from yuwata/test-udev-debug
test: enable udev debug log
Yu Watanabe [Fri, 26 Aug 2022 15:52:04 +0000 (00:52 +0900)]
test-50-dissect: generate debugging logs of udevd
Yu Watanabe [Fri, 26 Aug 2022 15:51:28 +0000 (00:51 +0900)]
test-58-repart: use udevadm control instead of creating service drop-in
Yu Watanabe [Sat, 27 Aug 2022 05:05:10 +0000 (14:05 +0900)]
Merge pull request #23764 from enr0n/oomd-allow-managed-oom-preference
oomd: allow ManagedOOMPreference on all cgroups
Frantisek Sumsal [Fri, 26 Aug 2022 21:31:50 +0000 (21:31 +0000)]
Merge pull request #24463 from mrc0mmand/ubuntu-ci-tweaks
(Not only) Ubuntu CI tweaks
Devendra Tewari [Fri, 26 Aug 2022 11:32:48 +0000 (08:32 -0300)]
systemd-growfs: use sd_device_new_from_devnum()
Use sd_device_new_from_devnum() instead of
device_path_make_major_minor_sysfs().
Frantisek Sumsal [Fri, 26 Aug 2022 17:18:20 +0000 (19:18 +0200)]
test: make the virt detection quiet
Follow-up to
cde09b07dfdc132a31672693c037bfc0b5879331.
Frantisek Sumsal [Fri, 26 Aug 2022 14:19:42 +0000 (16:19 +0200)]
test: set the default QEMU and nspawn timeouts to 30 minutes
Set both timeouts to some reasonable values instead of just `infinity`
to provide some form of a safe-net in case the test goes haywire and the
environment didn't set the timeouts itself (like our CIs do).
Frantisek Sumsal [Fri, 26 Aug 2022 14:17:11 +0000 (16:17 +0200)]
test: respect the global $QEMU_TIMEOUT
CIs set QEMU and nspawn timeouts by themselves which reflect their needs
and possibilities, so let's respect that value, instead of using one
pre-set value which might or might not work for all of them.
Both Ubuntu CI and CentOS CI set these values themselves.
Frantisek Sumsal [Fri, 26 Aug 2022 13:59:37 +0000 (15:59 +0200)]
test: use a unique machine name for each nspawn test
to avoid scope clashing in case some previous test crashed and/or didn't
clean up properly. Currently all test machines are called `root`, since
the name is automagically derived from the container path (in this case
`/var/tmp/systemd-test.XXXXXX/root`).
E.g. (from Ubuntu CI):
```
[23:10:12] --x-- Running TEST-71-HOSTNAME --x--
make: Entering directory '/tmp/autopkgtest.5LjnBV/build.0mE/systemd/test/TEST-71-HOSTNAME'
+ make -C TEST-71-HOSTNAME setup run
TEST-71-HOSTNAME SETUP: test hostnamed
Reusing existing cached image /tmp/autopkgtest.5LjnBV/build.0mE/systemd/test/TEST-71-HOSTNAME/../default.img → /tmp/autopkgtest.5LjnBV/build.0mE/systemd/test/default.img
'/var/tmp/systemd-test.1yy2SS/default.img' -> '/tmp/autopkgtest.5LjnBV/build.0mE/systemd/test/default.img'
I: Masking supporting services
'/var/tmp/systemd-test.1yy2SS/root/etc/systemd/system/systemd-hwdb-update.service' -> '/dev/null'
'/var/tmp/systemd-test.1yy2SS/root/etc/systemd/system/systemd-journal-catalog-update.service' -> '/dev/null'
'/var/tmp/systemd-test.1yy2SS/root/etc/systemd/system/systemd-networkd.service' -> '/dev/null'
'/var/tmp/systemd-test.1yy2SS/root/etc/systemd/system/systemd-networkd.socket' -> '/dev/null'
'/var/tmp/systemd-test.1yy2SS/root/etc/systemd/system/systemd-resolved.service' -> '/dev/null'
TEST-71-HOSTNAME RUN: test hostnamed
+ env --unset=UNIFIED_CGROUP_HIERARCHY --unset=SYSTEMD_NSPAWN_UNIFIED_HIERARCHY timeout --foreground 1200 /bin/systemd-nspawn --register=no --kill-signal=SIGKILL --directory=/var/tmp/systemd-test.1yy2SS/root --setenv=SYSTEMD_UNIT_PATH=/usr/lib/systemd/tests/testdata/testsuite-71.units:/usr/lib/systemd/tests/testdata/units: /lib/systemd/systemd systemd.unit=testsuite.target systemd.wants=testsuite-71.service systemd.wants=end.service
Spawning container root on /var/tmp/systemd-test.1yy2SS/root.
Press ^] three times within 1s to kill container.
Failed to allocate scope: Unit root.scope already exists.
E: nspawn failed with exit code 1
```
Frantisek Sumsal [Fri, 26 Aug 2022 13:53:46 +0000 (15:53 +0200)]
test: bump the reboot timeout to 60 seconds
As the reboot might take a bit on oversaturated hypervisors (spotted in
Ubuntu CI).
Frantisek Sumsal [Fri, 26 Aug 2022 17:16:24 +0000 (17:16 +0000)]
Merge pull request #24440 from mrc0mmand/TEST-64-tweaks
A couple of TEST-64 tweaks to make it usable without KVM
Luca Boccassi [Fri, 26 Aug 2022 17:04:51 +0000 (18:04 +0100)]
Merge pull request #24456 from yuwata/network-tcp-congctl
network: introduce TCPCongestionControlAlgorithm=
Nick Rosbrook [Wed, 20 Jul 2022 15:16:37 +0000 (11:16 -0400)]
oomd: fix off-by-one when dumping kill candidates
When we kill a cgroup that is towards the end of the sorted candidate
list (i.e. when we have to resort to killing a candidate with
ManagedOOMPreference=avoid), this cgroup is not logged in the candidate
list. This is due to an off-by-one error when assigning dump_until.
Nick Rosbrook [Thu, 7 Jul 2022 21:17:53 +0000 (17:17 -0400)]
man: update ManagedOOMPreference entry to reflect new behavior
Nick Rosbrook [Tue, 19 Jul 2022 16:48:04 +0000 (12:48 -0400)]
oomd: add tests for oomd_fetch_cgroup_oom_preference
Add a new test function, test_oomd_fetch_cgroup_oom_preference, to test
the ManagedOOMPreference logic. For starters, cut the relevant tests out
of test_oomd_cgroup_context_acquire_and_insert, and add them to the new
function. Then, expand these tests to cover the new behavior.
Nick Rosbrook [Tue, 19 Jul 2022 15:49:06 +0000 (11:49 -0400)]
oomd: loosen the restriction on ManagedOOMPreference
The ManagedOOMPreference property is only honored on cgroups which are
owned by root. This precludes anyone from setting ManagedOOMPreference
on cgroups managed by user managers.
Loosen this restriction in the following way: when processing a
monitored cgroup for kill candidates, honor the ManagedOOMPreference
setting if the monitored cgroup and cgroup candidate are owned by the
same user. This allows unprivileged users to configure
ManagedOOMPreference on their cgroups without affecting the kill
priority of ancestor cgroups.
N.B. that since swap kill operates globally to kill the largest
candidate, it is not appropriate to apply this logic to the swap kill
scenario. Therefore, the existing restriction on ManagedOOMPreference
will remain when calculating candidates for swap kill.
Add a new function, oomd_fetch_cgroup_oom_preference, to assist with
this new logic. To simplify things, move the `user.oomd_{avoid,omit}`
xattr reads to this function so that the xattr reads and uid checks are
performed all at once.
Nick Rosbrook [Tue, 14 Jun 2022 19:25:50 +0000 (15:25 -0400)]
core/cgroup: allow setting oomd xattrs from user manager
The extended attributes 'user.oomd_avoid' and 'user.oomd_omit' are used
to store the setting of the ManagedOOMPrefernce property. Since these
are user extended attributes, the access permissions are defined by the
file permissions, and there is no need to guard this from user managers.
Sonali Srivastava [Fri, 26 Aug 2022 13:53:42 +0000 (19:23 +0530)]
sleep: doc update for multiple battery, acpi_btp support and freeze/thaw user.slice
Frantisek Sumsal [Fri, 26 Aug 2022 13:39:32 +0000 (15:39 +0200)]
test: temporarily (?) disable TEST-64 in Ubuntu CI
The machines are still way too slow for the test to work properly
without accel.
Frantisek Sumsal [Thu, 25 Aug 2022 12:52:30 +0000 (14:52 +0200)]
test: bump the base VM memory to 768M
as with 512M some tests occasionally trip off OOM-killer (e.g.
TEST-64 + multipath).
Frantisek Sumsal [Thu, 25 Aug 2022 12:25:07 +0000 (14:25 +0200)]
test: lower the # of iterations with plain QEMU
Frantisek Sumsal [Thu, 25 Aug 2022 12:23:49 +0000 (14:23 +0200)]
test: require KVM only for specific sub-tests
since other sub-tests run relatively fine with TCG as well.
Frantisek Sumsal [Thu, 25 Aug 2022 11:51:15 +0000 (13:51 +0200)]
test: check for other hypervisors as well
EC2 machines run on Xen, so account for that as well when checking KVM
availability.
Frantisek Sumsal [Thu, 25 Aug 2022 10:57:42 +0000 (12:57 +0200)]
test: lower the # of mpath devices to 16
to make the test suitable for slower machines.
Lennart Poettering [Fri, 26 Aug 2022 13:25:35 +0000 (15:25 +0200)]
Merge pull request #24459 from poettering/tmpfiles-graceful-copy
tmpfiles: make absent source of "C" copy lines graceful
Lennart Poettering [Fri, 26 Aug 2022 13:24:55 +0000 (15:24 +0200)]
Merge pull request #24460 from poettering/stub-measure-fix
sd-stub: some minor refactoring of the cpio/TPM code
Lennart Poettering [Thu, 25 Aug 2022 16:08:49 +0000 (18:08 +0200)]
cpio: don't claim we measured anything if we weren't even asked
This is a bugfix.
Follow-up for
599fe002a135570406504998dbb7a42dabc963da
Lennart Poettering [Thu, 25 Aug 2022 14:53:43 +0000 (16:53 +0200)]
cpio: split out cpio TPM measurement logic from pack_cpio()
No code change, just some refactoring, so that we can reuse the
measurement logic later elsewhere.
Yu Watanabe [Fri, 26 Aug 2022 06:01:30 +0000 (15:01 +0900)]
test-network: add test for TCPCongestionControlAlgorithm=
Yu Watanabe [Fri, 26 Aug 2022 05:43:07 +0000 (14:43 +0900)]
network: introduce TCPCongestionControlAlgorithm=
Closes #24432.