Skip to content

Commit

Permalink
TMP CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
linD026 committed Oct 5, 2024
1 parent 558dcd8 commit d87b1a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .ci/build-n-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@ function run_examples()
done
}

sudo cat /proc/kallsyms | grep "sys_call_table"

build_example
run_examples
3 changes: 3 additions & 0 deletions examples/syscall-steal.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ static int __init syscall_steal_start(void)
if (!(sys_call_table_stolen = acquire_sys_call_table()))
return -1;

if (sys_call_table_stolen == 0)
return 0;

disable_write_protection();

/* keep track of the original open function */
Expand Down

0 comments on commit d87b1a4

Please sign in to comment.