File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 34
34
- name : Install apt packages
35
35
run : |
36
36
apt-get update
37
- apt-get install -y libnuma-dev libjemalloc-dev libtbb-dev libhwloc-dev
37
+ apt-get install -y libnuma-dev libjemalloc-dev libtbb-dev libhwloc-dev sudo
38
38
39
39
- name : Configure build
40
40
run : >
Original file line number Diff line number Diff line change 32
32
- name : Install apt packages
33
33
run : |
34
34
apt-get update
35
- apt-get install -y cmake libnuma-dev libjemalloc-dev libtbb-dev libhwloc-dev
35
+ apt-get install -y cmake libnuma-dev libjemalloc-dev libtbb-dev libhwloc-dev sudo
36
36
37
37
- name : Configure build
38
38
run : >
Original file line number Diff line number Diff line change 20
20
if [ -f $PTRACE_SCOPE_FILE ]; then
21
21
PTRACE_SCOPE_VAL=$( cat $PTRACE_SCOPE_FILE )
22
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
23
28
echo " Setting ptrace_scope to 0 (classic ptrace permissions) ..."
24
29
echo " $ sudo bash -c \" echo $VAL > $PTRACE_SCOPE_FILE \" "
25
30
sudo bash -c " echo $VAL > $PTRACE_SCOPE_FILE "
You can’t perform that action at this time.
0 commit comments