aboutsummaryrefslogtreecommitdiffstats
path: root/recovery.te
blob: 37d645593caff66aeff9fec738049e8f9d1fe7d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# recovery console (used in recovery init.rc for /sbin/recovery)
type recovery, domain;
allow recovery rootfs:file entrypoint;
unconfined_domain(recovery)
relabelto_domain(recovery)

allow recovery self:capability2 mac_admin;

allow recovery {fs_type dev_type -kmem_device file_type}:dir_file_class_set relabelto;
allow recovery unlabeled:filesystem mount;
allow recovery fs_type:filesystem *;

allow recovery self:process execmem;
allow recovery ashmem_device:chr_file execute;
allow recovery tmpfs:file rx_file_perms;