summaryrefslogtreecommitdiffstats
path: root/old/au.sh
diff options
context:
space:
mode:
Diffstat (limited to 'old/au.sh')
-rwxr-xr-xold/au.sh24
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
11set -e
12
13if [ $EUID -ne 0 ]; then
14 echo -e "Please run as root/sudo"
15 exit 1
16fi
17
18auditctl -D
19
20fileSyscall="open write creat unlink mkdir rmdir chmod fchmod chown fchown lchown flock"
21for syscall in $fileSyscall; do
22 auditctl -a exit,always -F arch=b64 -S $syscall
23done
24