diff options
Diffstat (limited to 'old/au.sh')
-rwxr-xr-x | old/au.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/old/au.sh b/old/au.sh new file mode 100755 index 0000000..66da315 --- /dev/null +++ b/old/au.sh | |||
@@ -0,0 +1,24 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | ########################################################################## | ||
4 | # File Name : au.sh | ||
5 | # Encoding : utf-8 | ||
6 | # Author : We-unite | ||
7 | # Email : weunite1848@gmail.com | ||
8 | # Created Time : 2024-07-25 17:56:49 | ||
9 | ########################################################################## | ||
10 | |||
11 | set -e | ||
12 | |||
13 | if [ $EUID -ne 0 ]; then | ||
14 | echo -e "Please run as root/sudo" | ||
15 | exit 1 | ||
16 | fi | ||
17 | |||
18 | auditctl -D | ||
19 | |||
20 | fileSyscall="open write creat unlink mkdir rmdir chmod fchmod chown fchown lchown flock" | ||
21 | for syscall in $fileSyscall; do | ||
22 | auditctl -a exit,always -F arch=b64 -S $syscall | ||
23 | done | ||
24 | |||