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