mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-31 14:11:41 +00:00
Simple script to list ignored syscalls
This commit is contained in:
parent
c7648e01ee
commit
14c1e30c24
16
scripts/ignored-calls.sh
Executable file
16
scripts/ignored-calls.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
cat ../sysdig/userspace/libscap/syscall_info_table.c | grep EF_DROP_FALCO | sed -e 's/.*\"\(.*\)\".*/\1/' | sort > ignored_syscall_info_table.txt
|
||||
cat ../sysdig/driver/event_table.c | grep EF_DROP_FALCO | sed -e 's/[^\"]*\"\([^\"]*\)\".*/\1/' | sort | uniq > ignored_driver_event_table.txt
|
||||
cat ../sysdig/userspace/libscap/event_table.c | grep EF_DROP_FALCO | sed -e 's/[^\"]*\"\([^\"]*\)\".*/\1/' | sort | uniq > ignored_userspace_event_table.txt
|
||||
|
||||
|
||||
diff -up ignored_driver_event_table.txt ignored_userspace_event_table.txt
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Expected ignored_driver_event_table.txt and ignored_userspace_event_table.txt to have same calls"
|
||||
fi
|
||||
|
||||
|
||||
cat ignored_userspace_event_table.txt ignored_syscall_info_table.txt | sort | uniq | tr '\n' ', '
|
||||
|
Loading…
Reference in New Issue
Block a user