blob: 83ce43fe818bb256fd424a1dc77e9f3a5350c668 [file] [log] [blame]
Tom Marshall5e84bfc2018-02-17 01:17:34 +01001recovery_only(`
Alessandro Astone0a5dfb22019-05-05 00:23:03 +02002userdebug_or_eng(`
3permissive recovery;
4')
Alessandro Astonef51b60c2019-03-20 21:10:54 +01005
6# Volume manager
Michael Bestas31b9bc52019-03-23 18:17:15 +02007allow recovery block_device:dir create_dir_perms;
Alessandro Astonefb92a022019-03-29 18:10:57 +01008allow recovery block_device:blk_file create_file_perms;
Alessandrob9f79b32020-04-13 14:28:56 +02009allow recovery self:capability { mknod fsetid };
Michael Bestas2b046422019-03-23 13:07:51 +020010allow recovery proc_filesystems:file r_file_perms;
Alessandro Astonef51b60c2019-03-20 21:10:54 +010011allow recovery self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl;
Michael Bestas4368f9b2019-03-23 18:55:43 +020012allow recovery sysfs:file w_file_perms; # writing to /sys/*/uevent during coldboot.
Adrian DCe89d9102016-08-02 23:21:35 +020013allow recovery tmpfs:file link;
Alessandrob9f79b32020-04-13 14:28:56 +020014allow recovery rootfs:dir w_dir_perms;
15allow recovery rootfs:file { create_file_perms link };
16allow recovery media_rw_data_file:dir r_dir_perms;
Tom Marshall5e84bfc2018-02-17 01:17:34 +010017')