Skip to content

Commit

Permalink
Sepolicy for power-stats and power hal
Browse files Browse the repository at this point in the history
Add sepolicy for vendor power and power
stats implementation.

Tracked-On: OAM-126029
Signed-off-by: Shwetha B <[email protected]>
  • Loading branch information
shwethabolumbu committed Oct 1, 2024
1 parent ee52ee2 commit 3640eba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion power/file_contexts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Power HAL service
/(vendor|system/vendor)/bin/hw/android\.hardware\.power@[0-9]+.?[0-9]*-service u:object_r:hal_power_service_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.power-service\.intel u:object_r:hal_power_default_exec:s0
# Power HAL helper
(/system)?/vendor/bin/power_hal_helper u:object_r:power_hal_helper_exec:s0
2 changes: 2 additions & 0 deletions power/hal_power_service.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#type hal_power_service, domain;
type hal_power_service_exec, exec_type, vendor_file_type, file_type;
#init_daemon_domain(hal_power_service)

allow hal_power_service cgroup:file rw_file_perms;
allowxperm hal_power_service fs_type:file ioctl { FIOCLEX FIONCLEX };
Expand Down
1 change: 1 addition & 0 deletions power_stats/file_contexts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/vendor/bin/hw/android\.hardware\.power\.stats-service\.intel u:object_r:hal_power_stats_default_exec:s0

0 comments on commit 3640eba

Please sign in to comment.