Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the sepolicy of OTA Coordinator #382

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ota_coordinator/ota_coordinator.te
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@ allow ota_coordinator init:unix_stream_socket connectto;
allow ota_coordinator misc_block_device:blk_file rw_file_perms;
allow ota_coordinator property_socket:sock_file write;
allow ota_coordinator tmpfs:file r_file_perms;
allow ota_coordinator vendor_data_file:file { read open };
typeattribute ota_coordinator socket_between_core_and_vendor_violators;

set_prop(ota_coordinator, powerctl_prop)
set_prop(ota_coordinator, vendor_intel_ota_prop)
set_prop(vendor_init, vendor_intel_ota_prop)

recovery_only(
allow recovery vendor_data_file:dir r_dir_perms;
allow recovery vendor_data_file:file r_file_perms;
)
1 change: 1 addition & 0 deletions ota_coordinator/property_contexts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
persist.vendor.ota_coordinator.last_slot_suffix u:object_r:vendor_intel_ota_prop:s0
persist.vendor.ota_coordinator.fake_update u:object_r:vendor_intel_ota_prop:s0
vendor.ota_coordinator.factory_reset u:object_r:vendor_intel_ota_prop:s0

Loading