void-runit icon indicating copy to clipboard operation
void-runit copied to clipboard

proc hidepid=2 not working

Open egrain opened this issue 3 years ago • 2 comments

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.

egrain avatar Mar 17 '21 23:03 egrain

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.

h4xor666 avatar Aug 06 '21 14:08 h4xor666

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

Risto-Stevcev avatar Dec 02 '21 23:12 Risto-Stevcev