@@ -10,7 +10,7 @@ export SUBTEST_DESCRIPTION="Default capability"
1010show_subtest_description
1111cd ${TMPDIR}
1212cat << EOF >test/test.sh
13- cat /proc/self/status | grep CapEff | awk '{print \$ 2}' > /cap
13+ cat /proc/self/status | grep CapBnd | awk '{print \$ 2}' > /cap
1414EOF
1515chmod 777 test/test.sh
1616./ruri ./test /bin/sh /test.sh
@@ -55,7 +55,7 @@ export SUBTEST_DESCRIPTION="Add capability CAP_SYS_ADMIN"
5555show_subtest_description
5656cd ${TMPDIR}
5757cat << EOF >test/test.sh
58- cat /proc/self/status | grep CapEff | awk '{print \$ 2}' > /cap
58+ cat /proc/self/status | grep CapBnd | awk '{print \$ 2}' > /cap
5959EOF
6060chmod 777 test/test.sh
6161./ruri -k cap_sys_admin ./test /bin/sh /test.sh
@@ -72,7 +72,7 @@ export SUBTEST_DESCRIPTION="Drop capability CAP_CHOWN"
7272show_subtest_description
7373cd ${TMPDIR}
7474cat << EOF >test/test.sh
75- cat /proc/self/status | grep CapEff | awk '{print \$ 2}' > /cap
75+ cat /proc/self/status | grep CapBnd | awk '{print \$ 2}' > /cap
7676EOF
7777chmod 777 test/test.sh
7878./ruri -d cap_chown ./test /bin/sh /test.sh
@@ -89,7 +89,7 @@ export SUBTEST_DESCRIPTION="Drop all capabilities"
8989show_subtest_description
9090cd ${TMPDIR}
9191cat << EOF >test/test.sh
92- cat /proc/self/status | grep CapEff | awk '{print \$ 2}' > /cap
92+ cat /proc/self/status | grep CapBnd | awk '{print \$ 2}' > /cap
9393EOF
9494chmod 777 test/test.sh
9595for i in $( seq 0 40) ; do
@@ -109,7 +109,7 @@ export SUBTEST_DESCRIPTION="Keep all capabilities(privileged)"
109109show_subtest_description
110110cd ${TMPDIR}
111111cat << EOF >test/test.sh
112- cat /proc/self/status | grep CapEff | awk '{print \$ 2}' > /cap
112+ cat /proc/self/status | grep CapBnd | awk '{print \$ 2}' > /cap
113113EOF
114114chmod 777 test/test.sh
115115./ruri -p ./test /bin/sh /test.sh
@@ -126,7 +126,7 @@ export SUBTEST_DESCRIPTION="Drop all capabilities but keep CAP_SYS_ADMIN"
126126show_subtest_description
127127cd ${TMPDIR}
128128cat << EOF >test/test.sh
129- cat /proc/self/status | grep CapEff | awk '{print \$ 2}' > /cap
129+ cat /proc/self/status | grep CapBnd | awk '{print \$ 2}' > /cap
130130EOF
131131chmod 777 test/test.sh
132132for i in $( seq 0 40) ; do
0 commit comments