-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cupid: sepolicy: Bring back ALS correction service rules
Change-Id: Ifa589b3f08be63aa8b2cf1e4ae69a09b5ea53f0c
- Loading branch information
Showing
7 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
type als_correction_service_exec, system_file_type, exec_type, file_type; | ||
|
||
init_daemon_domain(als_correction_service) | ||
|
||
typeattribute als_correction_service system_writes_vendor_properties_violators; | ||
|
||
hal_client_domain(als_correction_service, hal_graphics_allocator) | ||
|
||
binder_use(als_correction_service) | ||
|
||
binder_call(als_correction_service, surfaceflinger) | ||
binder_call(surfaceflinger, als_correction_service) | ||
|
||
allow als_correction_service hal_graphics_allocator_hwservice:hwservice_manager find; | ||
allow als_correction_service hal_graphics_mapper_hwservice:hwservice_manager find; | ||
|
||
allow als_correction_service surfaceflinger_service:service_manager find; | ||
|
||
allow als_correction_service same_process_hal_file:file r_file_perms; | ||
|
||
allow als_correction_service ion_device:chr_file rw_file_perms; | ||
|
||
set_prop(als_correction_service, vendor_sensors_als_prop) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Sensors | ||
/(system_ext|system/system_ext)/bin/als_correction_service u:object_r:als_correction_service_exec:s0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Sensors | ||
vendor.sensors.als_correction. u:object_r:vendor_sensors_als_prop:s0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
type als_correction_service, domain, coredomain; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
system_public_prop(vendor_sensors_als_prop) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
allow hal_sensors_default als_correction_service:process signal; | ||
|
||
get_prop(hal_sensors_default, vendor_sensors_als_prop) | ||
|
||
r_dir_file(als_correction_service, vendor_proc_oplus_als_file) |