blob: b1ca5d134252fbf5e8f93c9c233ba1aaf69173aa [file] [log] [blame]
Marko Mane2e1d7e2018-08-26 23:15:26 +02001r_dir_file(update_engine, mnt_user_file)
2r_dir_file(update_engine, storage_file)
3
Marko Manf2b9bf92018-09-01 19:21:27 +02004allow update_engine self:capability { chown fsetid };
Marko Mane2e1d7e2018-08-26 23:15:26 +02005
6allow update_engine labeledfs:filesystem { mount unmount };
7
maxwen1630ca72018-10-03 19:13:17 +02008allow update_engine { otapreopt_chroot_exec toolbox_exec }:file rx_file_perms;
Marko Manf2b9bf92018-09-01 19:21:27 +02009
10allow update_engine labeledfs:filesystem mount;
Marko Manbe9caa02019-10-11 10:35:54 +020011allow update_engine rootfs:file { rx_file_perms relabelfrom rename setattr unlink };
maxwen1630ca72018-10-03 19:13:17 +020012allow update_engine rootfs:dir { create write open add_name read rmdir remove_name };
13
14allow update_engine system_data_file:file { create read write open unlink };
15allow update_engine system_data_file:dir { create write add_name read remove_name unlink };
16
17allow update_engine system_file:file { create setattr write relabelto relabelfrom rx_file_perms unlink };
Marko Manbe9caa02019-10-11 10:35:54 +020018allow update_engine system_file:dir { create setattr write rmdir remove_name add_name setattr };
maxwen1630ca72018-10-03 19:13:17 +020019
Marko Manf2b9bf92018-09-01 19:21:27 +020020allow update_engine storage_file:lnk_file read;
Marko Manf2b9bf92018-09-01 19:21:27 +020021allow update_engine toolbox_exec:file { execute getattr };
Marko Mand83e01d2019-08-07 13:35:03 +020022
23allow update_engine sepolicy_file:file { append };
Marko Manf3953cf2019-09-29 00:02:17 +020024
25allow update_engine gsi_metadata_file:dir search;
26allow update_engine rootfs:file { create write };
Marko Manbe9caa02019-10-11 10:35:54 +020027#####
28allow update_engine proc_filesystems:file { getattr open read };
29allow update_engine system_file:lnk_file { create rename };
30allow update_engine system_lib_file:dir setattr;
Marko Manf3953cf2019-09-29 00:02:17 +020031