systemd unit tests need updates for Linux 5.8 and later
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd |
Fix Released
|
Unknown
|
|||
systemd (Ubuntu) |
Fix Released
|
Undecided
|
Balint Reczey |
Bug Description
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_
/* 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/
FAIL: test-fs-util (code: 134)
...
====== test-stat-util =======
Assertion 'stat(path, &st) >= 0' failed at src/test/
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/
Changed in systemd: | |
status: | Unknown → New |
Changed in systemd: | |
status: | New → Fix Released |
Changed in systemd (Ubuntu): | |
assignee: | nobody → Balint Reczey (rbalint) |
status: | New → In Progress |
https:/ /objectstorage. prodstack4- 5.canonical. com/v1/ AUTH_77e2ada1e7 a84929a74ba3b87 153c0ac/ autopkgtest- groovy/ groovy/ amd64/s/ systemd/ 20200812_ 210502_ aa555@/ log.gz