firejail/test/hidepid-howto
Fred-Barclay 6181f75e3f
Housekeeping
Make sure all files end with a newline
Strip extra newlines and trailing whitespace from files
2019-02-17 17:04:02 -06:00

25 lines
634 B
Text

1. Find an unused user group for hidepid exception:
$ id
uid=1000(netblue) gid=100(users) groups=100(users),10(wheel),90(network),
92(audio),93(optical),95(storage),98(power)
From /etc/group I pick up a group I am not part of:
$ cat /etc/group
[...]
xmms2:x:618:
rtkit:x:133:
vboxsf:x:109:
git:x:617:
[...]
I'll use group 618 (xmms2)
2. Set hidepid and allow xmms2 users to bypass hidepid
$ sudo mount -o remount,rw,hidepid=2,gid=618 /proc
$ cat /proc/mounts | grep proc
proc /proc proc rw,nosuid,nodev,noexec,relatime,gid=618,hidepid=2 0 0
3. Test "firejail --list", "firejail --top", "firejail --tree", "firejail --netstats"