-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig-rkhunter.sh
More file actions
executable file
·74 lines (57 loc) · 1.83 KB
/
config-rkhunter.sh
File metadata and controls
executable file
·74 lines (57 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/bin/sh
. /opt/farm/scripts/init
disabletests="deleted_files packet_cap_apps suspscan"
if [ "$HWTYPE" = "container" ] || [ "$HWTYPE" = "lxc" ]; then
disabletests="$disabletests hidden_procs os_specific"
fi
if ! grep -qFx $OSVER /opt/farm/ext/secure-system/config/apps.conf; then
disabletests="$disabletests apps"
fi
if [ -f /etc/systemd/journald.conf ]; then
syslogcf="/etc/rsyslog.conf /etc/systemd/journald.conf"
else
syslogcf="/etc/rsyslog.conf"
fi
echo "# This configuration file is maintained by Server Farmer.
ALLOW_SSH_ROOT_USER=without-password
ALLOW_SSH_PROT_V1=0
ALLOW_SYSLOG_REMOTE_LOGGING=1
SYSLOG_CONFIG_FILE=$syslogcf
COPY_LOG_ON_ERROR=1
DISABLE_TESTS=$disabletests
ALLOWHIDDENDIR=/etc/.java
ALLOWHIDDENDIR=/dev/.udev
ALLOWHIDDENFILE=/dev/.blkid.tab
ALLOWHIDDENFILE=/dev/.blkid.tab.old
ALLOWHIDDENFILE=/dev/.initramfs
ALLOWDEVFILE=/dev/.udev/rules.d/root.rules
ALLOWDEVFILE=/dev/shm/PostgreSQL.*
ALLOWDEVFILE=/dev/shm/spice.*
"
if [ -f /etc/X11/xinit/xinitrc ]; then
echo "ALLOWDEVFILE=/dev/shm/mono.*"
fi
if [ -x /usr/bin/lwp-request ]; then
echo "SCRIPTWHITELIST=/usr/bin/lwp-request"
fi
if [ -f /usr/bin/unhide.rb ]; then
echo "SCRIPTWHITELIST=/usr/bin/unhide.rb"
fi
if [ "$OSVER" = "debian-buster" ]; then
echo "SCRIPTWHITELIST=/usr/bin/which"
if [ -x /usr/bin/egrep ]; then echo "SCRIPTWHITELIST=/usr/bin/egrep"; fi
if [ -x /usr/bin/fgrep ]; then echo "SCRIPTWHITELIST=/usr/bin/fgrep"; fi
fi
if [ -f /usr/lib/arm-linux-gnueabihf/libarmmem.so ]; then
echo "SHARED_LIB_WHITELIST=/usr/lib/arm-linux-gnueabihf/libarmmem.so"
fi
if [ -f /usr/lib/arm-linux-gnueabihf/libarmmem-aarch64.so ]; then
echo "SHARED_LIB_WHITELIST=/usr/lib/arm-linux-gnueabihf/libarmmem-aarch64.so"
fi
if [ -x /usr/bin/curl ]; then
echo "WEB_CMD=/usr/bin/curl"
elif [ -x /usr/bin/wget ]; then
echo "WEB_CMD=/usr/bin/wget"
else
echo "WEB_CMD=/bin/false"
fi