diff options
| author | Luis Hector Chavez <lhchavez@google.com> | 2018-02-12 11:30:46 -0800 |
|---|---|---|
| committer | Luis Hector Chavez <lhchavez@google.com> | 2018-02-12 23:17:10 +0000 |
| commit | f8a7e37b2de50eb7a2bcd59b305adb8f68f204c1 (patch) | |
| tree | 9cb5163155be7787a2c5651e025b7be2d514fc45 /rootdir | |
| parent | 73a2508dc4b2b6644e4904f013a6df5fff5e4569 (diff) | |
| download | core-f8a7e37b2de50eb7a2bcd59b305adb8f68f204c1.tar.gz core-f8a7e37b2de50eb7a2bcd59b305adb8f68f204c1.tar.bz2 core-f8a7e37b2de50eb7a2bcd59b305adb8f68f204c1.zip | |
init.rc: Perform some mounts with nodev,nosuid,noexec
This change adds some additional flags to some mounts. This is to reduce
the number of mounts with these flags.
Bug: 73255020
Test: aosp_sailfish still boots
Change-Id: I285e6d7b3dcc19f691a3d6780e7d3a3a5d7cb3de
Diffstat (limited to 'rootdir')
| -rw-r--r-- | rootdir/init.rc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc index 6a1872fd1..f008c1748 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -28,12 +28,12 @@ on early-init restorecon /postinstall # Mount cgroup mount point for cpu accounting - mount cgroup none /acct cpuacct + mount cgroup none /acct nodev noexec nosuid cpuacct mkdir /acct/uid # root memory control cgroup, used by lmkd mkdir /dev/memcg 0700 root system - mount cgroup none /dev/memcg memory + mount cgroup none /dev/memcg nodev noexec nosuid memory # app mem cgroups, used by activity manager, lmkd and zygote mkdir /dev/memcg/apps/ 0755 system system # cgroup for system_server and surfaceflinger @@ -59,7 +59,7 @@ on init # Create energy-aware scheduler tuning nodes mkdir /dev/stune - mount cgroup none /dev/stune schedtune + mount cgroup none /dev/stune nodev noexec nosuid schedtune mkdir /dev/stune/foreground mkdir /dev/stune/background mkdir /dev/stune/top-app @@ -155,7 +155,7 @@ on init # Create cgroup mount points for process groups mkdir /dev/cpuctl - mount cgroup none /dev/cpuctl cpu + mount cgroup none /dev/cpuctl nodev noexec nosuid cpu chown system system /dev/cpuctl chown system system /dev/cpuctl/tasks chmod 0666 /dev/cpuctl/tasks @@ -164,7 +164,7 @@ on init # sets up initial cpusets for ActivityManager mkdir /dev/cpuset - mount cpuset none /dev/cpuset + mount cpuset none /dev/cpuset nodev noexec nosuid # this ensures that the cpusets are present and usable, but the device's # init.rc must actually set the correct cpus @@ -219,17 +219,17 @@ on init chmod 0644 /dev/xt_qtaguid mkdir /dev/cg2_bpf - mount cgroup2 cg2_bpf /dev/cg2_bpf + mount cgroup2 cg2_bpf /dev/cg2_bpf nodev noexec nosuid chown root root /dev/cg2_bpf chmod 0600 /dev/cg2_bpf - mount bpf bpf /sys/fs/bpf + mount bpf bpf /sys/fs/bpf nodev noexec nosuid # Create location for fs_mgr to store abbreviated output from filesystem # checker programs. mkdir /dev/fscklogs 0770 root system # pstore/ramoops previous console log - mount pstore pstore /sys/fs/pstore + mount pstore pstore /sys/fs/pstore nodev noexec nosuid chown system log /sys/fs/pstore/console-ramoops chmod 0440 /sys/fs/pstore/console-ramoops chown system log /sys/fs/pstore/console-ramoops-0 |
