Todd Kjos
57a853e058
ANDROID: make sure proc mount options are applied
...
Android relies on the "hidepid" mount option for /proc on
the 2nd mount, however the upstream kernel requires options
on the first mount and ignores options afterwards.
In prevous Android kernels, this was fixed by reverting
upstream commit e94591d0d9 ("proc: Convert proc_mount
to use mount_ns."). The upstream code has now been
refactored to the point that a new fix is needed. This
patch applies mount options during proc_get_tree() to
ensure the most recently parsed options are applied.
Bug: 145626724
Test: atest CtsOsTestCases:android.os.cts.EnvironmentTest#testHidePid2
Change-Id: I3d402f98e826e2f03ad366da7d05b3eeaaa90c26
Signed-off-by: Todd Kjos <tkjos@google.com>
2019-12-06 12:45:10 -08:00
..
array.c
Merge branch 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2019-07-08 16:39:53 -07:00
base.c
Linus 5.3-rc1
2019-07-23 16:21:59 -07:00
cmdline.c
consoles.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191
2019-05-30 11:29:21 -07:00
cpuinfo.c
devices.c
fd.c
fd.h
generic.c
treewide: Add SPDX license identifier for missed files
2019-05-21 10:50:45 +02:00
inode.c
fs/proc/inode.c: use typeof_member() macro
2019-07-16 19:23:21 -07:00
internal.h
Linux 5.2-rc3
2019-06-03 11:50:00 +02:00
interrupts.c
Kconfig
Linus 5.3-rc1
2019-07-23 16:21:59 -07:00
kcore.c
lockdown: Print current->comm in restriction messages
2019-08-19 21:54:17 -07:00
kmsg.c
loadavg.c
sched: loadavg: consolidate LOAD_INT, LOAD_FRAC, CALC_LOAD
2018-10-26 16:26:32 -07:00
Makefile
ANDROID: proc: Add /proc/uid directory
2019-05-03 10:44:50 -07:00
meminfo.c
FROMLIST: scs: add accounting
2019-11-27 12:49:09 -08:00
namespaces.c
nommu.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152
2019-05-30 11:26:32 -07:00
page.c
fs/proc/page.c: don't access uninitialized memmaps in fs/proc/page.c
2019-10-19 06:32:31 -04:00
proc_net.c
treewide: Add SPDX license identifier for missed files
2019-05-21 10:50:45 +02:00
proc_sysctl.c
proc/sysctl: add shared variables for range check
2019-07-18 17:08:07 -07:00
proc_tty.c
root.c
ANDROID: make sure proc mount options are applied
2019-12-06 12:45:10 -08:00
self.c
fs/proc/self.c: code cleanup for proc_setup_self()
2019-03-05 21:07:21 -08:00
softirqs.c
stat.c
Merge branch 'akpm' (patches from Andrew)
2019-03-06 10:31:36 -08:00
task_mmu.c
Merge 5.4-rc1-prelrease into android-mainline
2019-10-02 17:58:47 +02:00
task_nommu.c
proc: use down_read_killable mmap_sem for /proc/pid/maps
2019-07-12 11:05:46 -07:00
thread_self.c
fs/proc/thread_self.c: code cleanup for proc_setup_thread_self()
2019-03-05 21:07:21 -08:00
uid.c
ANDROID: cpufreq: Add time_in_state to /proc/uid directories
2019-05-03 10:44:50 -07:00
uptime.c
util.c
fs/proc/util.c: include fs/proc/internal.h for name_to_int()
2019-01-04 13:13:45 -08:00
version.c
vmcore.c
fs/core/vmcore: Move sev_active() reference to x86 arch code
2019-08-09 22:52:10 +10:00