Skip to content
Snippets Groups Projects
Commit 97199122 authored by Daniel Rosenberg's avatar Daniel Rosenberg Committed by Android Git Automerger
Browse files

am e244f2d3: Allow init to mount filesystems on properly labeled folders

* commit 'e244f2d3':
  Allow init to mount filesystems on properly labeled folders
parents 14ac6bc3 e244f2d3
Branches
Tags
No related merge requests found
...@@ -327,7 +327,8 @@ neverallow { domain -recovery } { system_file exec_type }:dir_file_class_set ...@@ -327,7 +327,8 @@ neverallow { domain -recovery } { system_file exec_type }:dir_file_class_set
neverallow { domain -recovery -kernel } { system_file exec_type }:dir_file_class_set relabelto; neverallow { domain -recovery -kernel } { system_file exec_type }:dir_file_class_set relabelto;
# Don't allow mounting on top of /system files or directories # Don't allow mounting on top of /system files or directories
neverallow domain { system_file exec_type }:dir_file_class_set mounton; neverallow domain exec_type:dir_file_class_set mounton;
neverallow { domain -init } system_file:dir_file_class_set mounton;
# Nothing should be writing to files in the rootfs. # Nothing should be writing to files in the rootfs.
neverallow domain rootfs:file { create write setattr relabelto append unlink link rename }; neverallow domain rootfs:file { create write setattr relabelto append unlink link rename };
......
...@@ -43,7 +43,7 @@ allow init self:capability sys_admin; ...@@ -43,7 +43,7 @@ allow init self:capability sys_admin;
# Create and mount on directories in /. # Create and mount on directories in /.
allow init rootfs:dir create_dir_perms; allow init rootfs:dir create_dir_perms;
allow init rootfs:dir mounton; allow init { rootfs cache_file cgroup storage_file system_data_file system_file }:dir mounton;
# Mount on /dev/usb-ffs/adb. # Mount on /dev/usb-ffs/adb.
allow init device:dir mounton; allow init device:dir mounton;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment