We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4865d89 commit 2b45982Copy full SHA for 2b45982
test/ipc_os_prov.sh
@@ -20,6 +20,11 @@ VAL=0
20
if [ -f $PTRACE_SCOPE_FILE ]; then
21
PTRACE_SCOPE_VAL=$(cat $PTRACE_SCOPE_FILE)
22
if [ $PTRACE_SCOPE_VAL -ne $VAL ]; then
23
+ # check if sudo requires password
24
+ if ! timeout --kill-after=5s 3s sudo date; then
25
+ echo "ERROR: sudo requires password - cannot set ptrace_scope to 0"
26
+ exit 1
27
+ fi
28
echo "Setting ptrace_scope to 0 (classic ptrace permissions) ..."
29
echo "$ sudo bash -c \"echo $VAL > $PTRACE_SCOPE_FILE\""
30
sudo bash -c "echo $VAL > $PTRACE_SCOPE_FILE"
0 commit comments