Spacewar: Sepolicy: allow glyph app to access battery supply
Change-Id: Ifdbe1061ded2888140022b21eac589d44ca483c8 Signed-off-by: BrainKub <fyhtjnt@gmail.com>
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
type glyph_app, domain;
|
||||
typeattribute glyph_app mlstrustedsubject;
|
||||
|
||||
app_domain(glyph_app)
|
||||
@@ -33,9 +32,6 @@ allow glyph_app system_app_data_file:{
|
||||
allow glyph_app sysfs_leds:dir r_dir_perms;
|
||||
allow glyph_app sysfs_leds:file rw_file_perms;
|
||||
|
||||
allow glyph_app sysfs_powershare:dir r_dir_perms;
|
||||
allow glyph_app sysfs_powershare:file r_file_perms;
|
||||
|
||||
allow glyph_app mnt_vendor_file:dir r_dir_perms;
|
||||
allow glyph_app mnt_vendor_file:file rw_file_perms;
|
||||
allow glyph_app thermal_service:service_manager find;
|
||||
|
||||
1
sepolicy/public/glyph_app.te
Normal file
1
sepolicy/public/glyph_app.te
Normal file
@@ -0,0 +1 @@
|
||||
type glyph_app, domain;
|
||||
3
sepolicy/vendor/glyph_app.te
vendored
Normal file
3
sepolicy/vendor/glyph_app.te
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
allow glyph_app vendor_sysfs_battery_supply:dir search;
|
||||
allow glyph_app vendor_sysfs_battery_supply:file { read open getattr };
|
||||
allow glyph_app sysfs_powershare:file rw_file_perms;
|
||||
Reference in New Issue
Block a user