Skip to content
Commit 69879c01 authored by Eric W. Biederman's avatar Eric W. Biederman
Browse files

proc: Remove the now unnecessary internal mount of proc



There remains no more code in the kernel using pids_ns->proc_mnt,
therefore remove it from the kernel.

The big benefit of this change is that one of the most error prone and
tricky parts of the pid namespace implementation, maintaining kernel
mounts of proc is removed.

In addition removing the unnecessary complexity of the kernel mount
fixes a regression that caused the proc mount options to be ignored.
Now that the initial mount of proc comes from userspace, those mount
options are again honored.  This fixes Android's usage of the proc
hidepid option.

Reported-by: default avatarAlistair Strachan <astrachan@google.com>
Fixes: e94591d0 ("proc: Convert proc_mount to use mount_ns.")
Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
parent 76313c70
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment