diff --git a/public/update_engine.te b/public/update_engine.te index b8f0035bdb33d89712930cd04cd9e57196876c73..f67afc28d6db8e2d6f1611fdc4803febf806c04b 100644 --- a/public/update_engine.te +++ b/public/update_engine.te @@ -39,3 +39,13 @@ allow update_engine ota_package_file:dir r_dir_perms; # Use Boot Control HAL hal_client_domain(update_engine, hal_bootctl) + +# access /proc/misc and /proc/sys/kernel/random/boot_id +allow update_engine proc:file r_file_perms; +allow update_engine proc_misc:file r_file_perms; + +# read directories on /system and /vendor +allow update_engine system_file:dir r_dir_perms; + +# Read files in /sys +r_dir_file(update_engine, sysfs) diff --git a/public/update_engine_common.te b/public/update_engine_common.te index 7680e07da36ae44ae20e4b4c08739801c0eeb1d7..61d393a263a2cfc5335e5dc608587f031ab3d12d 100644 --- a/public/update_engine_common.te +++ b/public/update_engine_common.te @@ -37,13 +37,3 @@ allow update_engine_common shell_exec:file rx_file_perms; # Allow update_engine_common to suspend, resume and kill the postinstall program. allow update_engine_common postinstall:process { signal sigstop sigkill }; - -# access /proc/misc and /proc/sys/kernel/random/boot_id -allow update_engine proc:file r_file_perms; -allow update_engine proc_misc:file r_file_perms; - -# read directories on /system and /vendor -allow update_engine system_file:dir r_dir_perms; - -# Read files in /sys -r_dir_file(uncrypt, sysfs)