]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: check for kernel.apparmor_restrict_unprivileged_userns
authorNick Rosbrook <enr0n@ubuntu.com>
Mon, 4 Mar 2024 20:43:57 +0000 (15:43 -0500)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 5 Mar 2024 11:15:49 +0000 (11:15 +0000)
commit70aece819311f7ab76abdf473bc8f316c5bc58c6
tree16ad86ed61b05069f202dd888c6b73a7cdb9e650
parent7360be92adf600b7d6621d9bd789eb22392b9375
test: check for kernel.apparmor_restrict_unprivileged_userns

Some tests in test-execute are already skipped if we do not have
unprivileged user namespaces. Extend this check to look for an apparmor
specific sysctl indicating that unprivileged userns creation is
restricted.
src/test/test-execute.c