Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression tests v2.1.1 #148

Merged
merged 7 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: Add test/native/kaudit.test
  • Loading branch information
djolertrk committed Dec 2, 2024
commit 48dfb6def6f0d595c34ee06662c0064254281ded
1 change: 1 addition & 0 deletions docs/TestFeatures.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,3 +316,4 @@ NOTE: If a test should be executed in `DEPLOY` mode only, `.test` file should co
| Remove netcat and install again (backdoors) | Yes | native/nc-backdoor-remove-and-install-nc-tool.test |
| bdclient.sh test | Yes | native/nc-backdoor-bdclient.test |
| bdclient.sh GIFT | Yes | test/native/gift-bdclient.test |
| Kaudit | Yes | test/native/kaudit.test |
1 change: 1 addition & 0 deletions test/native/gift-bdclient.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
19 changes: 19 additions & 0 deletions test/native/kaudit.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# REQUIRES: DEBUG_ONLY
# REQUIRES: NATIVE_TESTS

# RUN: bash %s > %t.log
# RUN: FileCheck-18 --input-file=%t.log %s

sudo dmesg -c
sleep 10
sudo insmod ../../../build/kovid.ko
kill -CONT 999
su
exit
sudo rmmod kovid
sudo dmesg

# CHECK: loaded.
# CHECK: Cool! Now try 'su'
# CHECK: Uninstalling: 'sys_exit_group' syscall=1
# CHECK: unloaded.
Loading