I get the following errors every time I log in to my system through ssh.
Feb 23 17:03:07 oblivion kernel: grsec: From xxx.xxx.xxx.xxx: denied access to pid/mem entry of (sshd:27612) UID(0) EUID(0), parent (sshd:564) UID(0) EUID(0) by (sshd:27612) UID(0) EUID(0), parent (sshd:564) UID(0) EUID(0)
Feb 23 17:03:07 oblivion kernel: grsec: From xxx.xxx.xxx.xxx: denied access to pid/mem entry of (sshd:27612) UID(0) EUID(0), parent (sshd:564) UID(0) EUID(0) by (sshd:27612) UID(0) EUID(0), parent (sshd:564) UID(0) EUID(0)
sshd's acl entry:
# the d flag protects /proc fd and mem entries for sshd
/usr/sbin/sshd d {
/dev/log rw
/var/log/wtmp w
/var/log/lastlog rw
bind {
xxx.xxx.xxx.xxx:22 stream tcp
}
connect {
xxx.xxx.xxx.xxx/xx stream dgram tcp udp
}
}
It's obvious that sshd's subject flag has something to do with this, but it isn't documented anywhere. I just want to know whether I can safely remove the d flag or how can I stop sshd from accessing pid/mem file.
--
Jari Laurila