test: mask tmpfiles.d file shipped by selinux policy package in containers
authorLuca Boccassi <luca.boccassi@gmail.com>
Sat, 23 Nov 2024 13:28:03 +0000 (13:28 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 29 Nov 2024 13:26:57 +0000 (14:26 +0100)
commit2d975f64d40cff41f36792d92dde65a65fb0dd9d
tree644e646a55cb87463a1e492dfc35737a3318bb2f
parent964ced4100fb5f5b5d41b988512f681a1b0b20f7
test: mask tmpfiles.d file shipped by selinux policy package in containers

This tmpfiles.d wants to write to sysfs, which is read-only in containers,
so systemd-tmpfiles --create fails in TEST-22-TMPFILES when ran in nspawn
if the selinux policy package is instealled. Mask it, as it's not our
config file, we don't need it in the test.

(cherry picked from commit 6fd3496cfd0d28808b5489ee87f826c2130f5f0b)
test/units/TEST-22-TMPFILES.sh