2014-01-13 15:45:45 +01:00
|
|
|
# recovery console (used in recovery init.rc for /sbin/recovery)
|
|
|
|
type recovery, domain;
|
|
|
|
allow recovery rootfs:file entrypoint;
|
|
|
|
unconfined_domain(recovery)
|
|
|
|
|
2014-01-30 19:23:08 +01:00
|
|
|
allow recovery self:capability2 mac_admin;
|
|
|
|
|
2014-05-29 20:35:55 +02:00
|
|
|
# Mount filesystems.
|
2014-02-10 19:29:38 +01:00
|
|
|
allow recovery fs_type:filesystem *;
|
2014-05-29 20:35:55 +02:00
|
|
|
allow recovery unlabeled:filesystem *;
|
2014-01-13 15:45:45 +01:00
|
|
|
|
2014-05-29 20:35:55 +02:00
|
|
|
|
|
|
|
# Create and relabel files under /system.
|
2014-05-20 20:09:16 +02:00
|
|
|
allow recovery exec_type:{ file dir lnk_file } { create write setattr relabelfrom relabelto append unlink link rename };
|
|
|
|
allow recovery system_file:{ file dir lnk_file } { create write setattr relabelfrom relabelto append unlink link rename };
|
|
|
|
|
2014-02-11 20:40:14 +01:00
|
|
|
# Required to e.g. wipe userdata/cache.
|
|
|
|
allow recovery dev_type:blk_file rw_file_perms;
|
|
|
|
|
2014-01-13 15:45:45 +01:00
|
|
|
allow recovery self:process execmem;
|
2014-01-13 21:32:11 +01:00
|
|
|
allow recovery ashmem_device:chr_file execute;
|
2014-01-13 20:03:47 +01:00
|
|
|
allow recovery tmpfs:file rx_file_perms;
|
2014-05-23 17:26:19 +02:00
|
|
|
|
|
|
|
# Use setfscreatecon() to label files for OTA updates.
|
|
|
|
allow recovery self:process setfscreate;
|