proc hidepid=2 not working
egrain opened this issue · 2 comments
egrain commented
I have this in /etc/fstab
proc /proc proc nosuid,nodev,noexec,hidepid=2 0 0
after rebooting I still see everything with top though.
when I do
mount -o remount /proc
top shows me only what I have going on.
in #voidlinux I was given this link, so I report.
Workaround:
putting the "mount -o remount /proc" line in /etc/rc.local
thanks for your time.
h4xor666 commented
I have the same issue. Unfortunately, the workaround is not working for me. If I try the workaround, it fails to mount the drive successfully, which may have something to do with the LUKS partitioning or something. In any case, I don't think it should need the workaround to work.
Risto-Stevcev commented
I remounted and set hidepid=2
in rc.local
and it works for me. I'm also using LUKS:
mount -o remount,rw,nosuid,nodev,noexec,relatime,hidepid=2 /proc