mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Merge pull request #5079 from ricardobranco777/no_new_privs
integration: Skip test for new privileges if NoNewPrivs is set
This commit is contained in:
@@ -31,6 +31,9 @@ function teardown() {
|
||||
}
|
||||
|
||||
@test "runc run with new privileges" {
|
||||
if [ $(awk '$1 == "NoNewPrivs:" { print $2; exit }' /proc/self/status) -ne 0 ]; then
|
||||
skip "requires unset NoNewPrivs"
|
||||
fi
|
||||
update_config '.process.noNewPrivileges = false'
|
||||
runc run test_new_privileges
|
||||
[ "$status" -eq 0 ]
|
||||
|
||||
Reference in New Issue
Block a user