Bug 216584 - Undocumented mount option subset=pid for proc
Summary: Undocumented mount option subset=pid for proc
Status: NEW
Alias: None
Product: Documentation
Classification: Unclassified
Component: man-pages (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: documentation_man-pages@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-14 05:55 UTC by Philipp Wendler
Modified: 2022-10-14 06:15 UTC (History)
0 users

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Philipp Wendler 2022-10-14 05:55:07 UTC
Since Linux 5.8, proc can be mounted with options subset=pids to hide all non-task-related information. This is missing from proc(5).

Original patch:
https://lore.kernel.org/all/20200423200316.164518-6-gladkov.alexey@gmail.com/

The kernel documentation shows the option:
https://www.kernel.org/doc/html/latest/filesystems/proc.html#mount-options

This option is useful when mounting proc for a container nested for example in a Docker container that hides certain parts of /proc, otherwise one is not allowed to mount /proc (https://lkml.kernel.org/lkml/cover.1597931457.git.gladkov.alexey@gmail.com/). It might be useful to add a note about this as well.
Comment 1 Philipp Wendler 2022-10-14 06:15:12 UTC
Actually, skip my last paragraph, it seems this patch did not get merged yet. Last iteration I found is at https://lore.kernel.org/all/cover.1626432185.git.legion@kernel.org/. But the mount option does exist.

Note You need to log in before you can comment on or make changes to this bug.