Spacewar: Sepolicy: allow glyph app to access battery supply

Change-Id: Ifdbe1061ded2888140022b21eac589d44ca483c8
Signed-off-by: BrainKub <fyhtjnt@gmail.com>
This commit is contained in:
BrainKub
2025-01-17 18:02:48 +03:00
committed by Wiktor Rudzki
parent 418670facd
commit b95e07609f
3 changed files with 4 additions and 4 deletions

View File

@@ -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;

View File

@@ -0,0 +1 @@
type glyph_app, domain;

3
sepolicy/vendor/glyph_app.te vendored Normal file
View 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;