Public bug reported:
Linux 5.8 allows unprivileged creation of whiteout devices, causing a
couple of test failures in systemd:
====== test-fs-util =======
/* test_chase_symlinks */
/* test_unlink_noerrno */
/* test_readlink_and_make_absolute */
/* test_var_tmp */
/* test_dot_or_dot_dot */
/* test_access_fd */
/* test_touch_file */
Assertion 'mknod(a, 0775 | S_IFBLK, makedev(0, 0)) >= 0' failed at
src/test/test-fs-util.c:637, function test_touch_file(). Aborting.
FAIL: test-fs-util (code: 134)
...
====== test-stat-util =======
Assertion 'stat(path, &st) >= 0' failed at src/test/test-stat-util.c:126,
function test_device_path_make_canonical_one(). Aborting.
FAIL: test-stat-util (code: 134)
test-fs-util succeeds in making a character device with major/minor 0,0,
and thus assumes it will be able to create other devices, but it cannot.
test-stat-util assumes that because /run/systemd/inaccessible/chr exists
/run/systemd/inaccessible/blk should also exist, but it does not for the
same reason.
** Affects: systemd
Importance: Unknown
Status: Unknown
** Affects: systemd (Ubuntu)
Importance: Undecided
Status: New
** Bug watch added: github.com/systemd/systemd/issues #16721
https://github.com/systemd/systemd/issues/16721
** Also affects: systemd via
https://github.com/systemd/systemd/issues/16721
Importance: Unknown
Status: Unknown
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1891527
Title:
systemd unit tests need updates for Linux 5.8 and later
To manage notifications about this bug go to:
https://bugs.launchpad.net/systemd/+bug/1891527/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs