void-linux / void-linux/void-runit

proc hidepid=2 not working

Open
#73 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
245
Forks
67
Avg merge
2d
Merged PRs (30d)
2

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the boot-time behavior using the /etc/fstab entry, then compare it with the successful mount -o remount /proc workaround and inspect the repository's runit init scripts. The fix is complete when hidepid=2 is applied after reboot without requiring /etc/rc.local, while top shows only the current user's processes.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.