-
Notifications
You must be signed in to change notification settings - Fork 188
proc hidepid
rfjakob edited this page Feb 29, 2020
·
4 revisions
From http://man7.org/linux/man-pages/man5/proc.5.html :
Mount options
The proc filesystem supports the following mount options:
hidepid=n (since Linux 3.3)
This option controls who can access the information in
/proc/[pid] directories. The argument, n, is one of the fol‐
lowing values:
If you use hidepid=1 or hidepid=2 for your /proc filesystem, earlyoom running as a normal user can no longer see (hidepid=2) or look at the memory usage (hidepid=1) of running processes.
To make it work, you can either run earlyoom as root, or do this (from https://github.com/rfjakob/earlyoom/issues/161):
Mount proc with
hidepid=2,gid=admand setSupplementaryGroups=admin the unit, and it works well with systemd 232.