mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
integration: quote shell value to prevent word splitting
Signed-off-by: lifubang <lifubang@acmcoder.com>
This commit is contained in:
@@ -31,7 +31,7 @@ function teardown() {
|
||||
}
|
||||
|
||||
@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"
|
||||
fi
|
||||
update_config '.process.noNewPrivileges = false'
|
||||
|
||||
Reference in New Issue
Block a user