Skip to content
Snippets Groups Projects
Commit fd7da7b2 authored by Tri Vo's avatar Tri Vo
Browse files

Move update_engine rules out of update_engine_common.te

Grant update_engine access to sysfs.
Ran fake ota go/manual-ab-ota, and this denial was fixed:
avc: denied { read } for pid=912 comm="update_engine" name="compatible"
dev="sysfs" ino=17399 scontext=u:r:update_engine:s0
tcontext=u:object_r:sysfs:s0 tclass=file permissive=0

Test: boots with no new denials
Change-Id: I8697da3af254aea1cec44d9dbb1eca18be31859c
parent 2f6e66ff
No related branches found
No related tags found
No related merge requests found
...@@ -39,3 +39,13 @@ allow update_engine ota_package_file:dir r_dir_perms; ...@@ -39,3 +39,13 @@ allow update_engine ota_package_file:dir r_dir_perms;
# Use Boot Control HAL # Use Boot Control HAL
hal_client_domain(update_engine, hal_bootctl) 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)
...@@ -37,13 +37,3 @@ allow update_engine_common shell_exec:file rx_file_perms; ...@@ -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 to suspend, resume and kill the postinstall program.
allow update_engine_common postinstall:process { signal sigstop sigkill }; 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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment