Hello,
Who can help me with a ACL for sshd?!
How should i configure the learning mode, to get the best result?
Thanx,
^r00t^
/usr/sbin/sshd opX {
/ h
/etc r
/etc/ssh r
/etc/ld.so.cache rx
/etc/grsec h
/var/empty
/var/log
/var/log/wtmp w
/var/log/lastlog rw
/var/run/utmp rw
/var/run/sshd.pid rw
/var/run
/usr/lib rx
/usr/libexec/sftp-server
/usr/share r
/home
/lib rx
/root
/tmp rw
/proc
/dev/urandom r
/dev/tty rw
/dev/pts rw
/dev/ptmx rw
/dev/null rw
/dev/log rw
/bin/bash x
/usr/sbin/sshd x
-CAP_ALL
+CAP_CHOWN
+CAP_KILL
+CAP_SETGID
+CAP_SETUID
+CAP_NET_BIND_SERVICE
+CAP_SYS_CHROOT
+CAP_DAC_OVERRIDE
+CAP_SYS_TTY_CONFIG
RES_CRASH 1 10m
connect {
127.0.0.1/32:21 stream tcp
0.0.0.0/0:53 stream tcp
0.0.0.0/0:113 stream tcp
0.0.0.0/0:53 dgram udp
}
bind {
0.0.0.0/0:22 stream tcp
}
}
/usr/libexec/sftp-server oX {
/ h
/etc/group r
/etc/grsec h
/etc/nsswitch.conf r
/etc/ld.so.cache rx
/etc/passwd r
/usr/lib rx
/usr/libexec/sftp-server x
/usr/share r
/tmp rw
/root rw
/proc
/lib rx
/home rw
-CAP_ALL
+CAP_SETGID
+CAP_SETUID
+CAP_SYS_CHROOT
connect {
disabled
}
bind {
disabled
}
}