I'm using the ACL below for my login process. But it is just not allowed to read/write to /var/run/umtp.
- Code: Select all
Sep 26 16:13:18 mm-master kernel: grsec: attempt to open /var/run/utmp for reading writing by (login:1522) UID(0) EUID(0), parent (init:1) UID(0) EUID(0)
I'm not quite sure if this is some kind of bug or my own fault. (I'm using 1.9.7).
Thank you
Marcel
- Code: Select all
/bin/login o {
/etc/shadow r
/etc/ld.so.cache r
/etc/login.defs r
/var/run r # doesn't make any difference if left out
/var/run/umtp rw
/var/log
/var/log/faillog rw
/dev/tty6 rw
/dev/tty5 rw
/dev/tty4 rw
/dev/tty3 rw
/dev/tty2 rw
/dev/tty1 rw
/dev
/lib/ld-linux.so.2 rx
/lib/libc.so.6 rx
/lib/libcrypt.so.1 rx
/lib/libdl.so.2 rx
/lib/libnsl.so.1 rx
/lib/libpam.so.0 rx
/lib/libpam_misc.so.0 rx
/lib/libnss_compat.so.2 rx
/lib/security rx
/usr/lib/libcrack.so.2.7 rx
/bin/login x
/bin/bash x
/root/.bash_history a
/home/lxadmin/.bash_history a
/ r
-CAP_ALL
+CAP_SYS_TTY_CONFIG
+CAP_CHOWN
+CAP_SETGID
+CAP_SETUID
+CAP_FSETID
connect {
disabled
}
bind {
disabled
}
}