test: skip TEST-43-PRIVATEUSER-UNPRIV if unprivileged userns is restricted
authorNick Rosbrook <enr0n@ubuntu.com>
Fri, 12 Jan 2024 19:02:17 +0000 (14:02 -0500)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 12 Jan 2024 21:55:04 +0000 (06:55 +0900)
commitfec0d508a2f3d6bcf9be16a805dfc8facdfd9bb0
tree37ba6ffafba90ccac51e3f56409f50decbf3bf1c
parent7a10e25a4115d68d0cf2db4ea091abc306ed053a
test: skip TEST-43-PRIVATEUSER-UNPRIV if unprivileged userns is restricted

With newer versions of AppArmor, unprivileged user namespace creation
may be restricted by default, in which case user manager instances will
not be able to apply PrivateUsers=yes (or the settings which require it).

This can be tested with the kernel.apparmor_restrict_unprivileged_userns
sysctl.
test/units/testsuite-43.sh