Page 1 of 1

CONFIG_GRKERNSEC_PROC_MEMMAP partially breaks lsof

PostPosted: Fri Oct 04, 2002 2:36 pm
by AverageUser
Configure.help says this about CONFIG_GRKERNSEC_PROC_MEMMAP:

CONFIG_GRKERNSEC_PROC_MEMMAP
If you say Y here, the /proc/<pid>/mem and /proc/<pid>/maps files
will no longer be accessible. If you use PaX it is greatly
recommended that you say Y here as it closes up a hole that makes the
full ASLR useless for suid binaries. No legitimate programs should have
to use either of the two files.

Well, I've come across one: lsof. :)

With CONFIG_GRKERNSEC_PROC_MEMMAP enabled, lsof no longer lists shared libraries that are in use. Perhaps it would be a good idea to change "No legitimate programs" to "No legitimate programs other than lsof". It took me a while to narrow this down...