Lines Matching refs:recovery
1 # recovery console (used in recovery init.rc for /sbin/recovery)
5 type recovery, domain;
7 # But the allow rules are only included in the recovery policy.
8 # Otherwise recovery is only allowed the domain rules.
10 # Allow recovery to perform an update as update_engine would do.
11 typeattribute recovery update_engine_common;
13 passthrough_hal_client_domain(recovery, hal_bootctl)
15 allow recovery self:global_capability_class_set {
26 r_dir_file(recovery, rootfs)
27 allow recovery rootfs:file execute_no_trans;
28 allow recovery system_file:file execute_no_trans;
29 allow recovery toolbox_exec:file rx_file_perms;
32 allow recovery rootfs:dir mounton;
33 allow recovery fs_type:filesystem ~relabelto;
34 allow recovery unlabeled:filesystem ~relabelto;
35 allow recovery contextmount_type:filesystem relabelto;
39 allow recovery unlabeled:{ file lnk_file } { create_file_perms relabelfrom relabelto };
40 allow recovery unlabeled:dir { create_dir_perms relabelfrom relabelto };
43 allow recovery file_contexts_file:file r_file_perms;
46 allow recovery proc_drop_caches:file w_file_perms;
49 allow recovery proc_swaps:file r_file_perms;
52 allow recovery config_gz:file { open read getattr };
55 r_dir_file(recovery, sysfs_android_usb)
56 allow recovery sysfs_android_usb:file w_file_perms;
59 allow recovery sysfs_devices_system_cpu:file w_file_perms;
61 allow recovery sysfs_batteryinfo:file r_file_perms;
64 r_dir_file(recovery, sysfs_fs_ext4_features)
68 allow recovery sysfs_leds:dir r_dir_perms;
69 allow recovery sysfs_leds:file rw_file_perms;
70 allow recovery sysfs_leds:lnk_file read;
72 allow recovery kernel:system syslog_read;
75 allow recovery functionfs:dir search;
76 allow recovery functionfs:file rw_file_perms;
79 allow recovery selinuxfs:file r_file_perms;
82 allow recovery device:dir r_dir_perms;
83 allow recovery block_device:dir r_dir_perms;
84 allow recovery dev_type:blk_file rw_file_perms;
87 allow recovery graphics_device:chr_file rw_file_perms;
88 allow recovery graphics_device:dir r_dir_perms;
89 allow recovery input_device:dir r_dir_perms;
90 allow recovery input_device:chr_file r_file_perms;
91 allow recovery tty_device:chr_file rw_file_perms;
93 # Create /tmp/recovery.log and execute /tmp/update_binary.
94 allow recovery tmpfs:file { create_file_perms x_file_perms };
95 allow recovery tmpfs:dir create_dir_perms;
97 # Manage files on /cache and /cache/recovery
98 allow recovery { cache_file cache_recovery_file }:dir create_dir_perms;
99 allow recovery { cache_file cache_recovery_file }:file create_file_perms;
102 r_dir_file(recovery, sysfs_thermal)
105 r_dir_file(recovery, oemfs);
108 set_prop(recovery, powerctl_prop)
111 set_prop(recovery, ctl_default_prop)
114 get_prop(recovery, serialno_prop)
117 set_prop(recovery, ffs_prop)
118 set_prop(recovery, exported_ffs_prop)
121 get_prop(recovery, bootloader_boot_reason_prop)
124 allow recovery self:process setfscreate;
126 # Allow recovery to create a fuse filesystem, and read files from it.
127 allow recovery fuse_device:chr_file rw_file_perms;
128 allow recovery fuse:dir r_dir_perms;
129 allow recovery fuse:file r_file_perms;
131 wakelock_use(recovery)
135 allow recovery kernel:process setsched;
145 # to recovery anyway.
149 # domains, including recovery.
152 neverallow recovery {
157 neverallow recovery {