From d36ece2ca7498b7ba5485d5010439b57f006c9c8 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 23 Mar 2021 11:46:26 -0400 Subject: tests: Actually remove capabilities after dropping them --- tests.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests.sh b/tests.sh index ad71894..8eb4dc0 100755 --- a/tests.sh +++ b/tests.sh @@ -35,22 +35,25 @@ if [ -t 1 ]; then fi if command -v capsh &>/dev/null; then - if capsh --has-p=CAP_DAC_OVERRIDE &>/dev/null || capsh --has-p=CAP_DAC_READ_SEARCH &>/dev/null; then + if capsh --has-p=cap_dac_override &>/dev/null || capsh --has-p=cap_dac_read_search &>/dev/null; then if [ -n "$BFS_TRIED_DROP" ]; then cat >&2 <&2 <