diff options
| author | Kevin F. Haggerty <haggertk@lineageos.org> | 2020-09-05 05:26:22 -0600 |
|---|---|---|
| committer | Jeferson <jroliveira.oliveira301@gmail.com> | 2022-05-04 13:31:12 +0200 |
| commit | 22cdf3eca21fdb93f37ac8007213bbb778bda710 (patch) | |
| tree | 247a5a1a3f9759414be9d02e903111e6b0a76a3a | |
| parent | 796a0a87dddc288b20a3fa154265830205a1c202 (diff) | |
victara: sepolicy: Allow system_app to access zram sysfs nodes
avc: denied { search } for name=zram0 dev=sysfs ino=20744
scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs_zram:s0 tclass=dir
permissive=0
avc: denied { open } for name=mem_used_total dev=sysfs ino=20804
scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs_zram:s0 tclass=file
permissive=0
avc: denied { read } for name=mem_used_total dev=sysfs ino=20804
scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs_zram:s0 tclass=file
permissive=0
Change-Id: Ide9b1a9488b26fa69e7a2c8e73a8e657c8b28beb
| -rw-r--r-- | sepolicy/system_app.te | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sepolicy/system_app.te b/sepolicy/system_app.te index bbc0088..8ce27b7 100644 --- a/sepolicy/system_app.te +++ b/sepolicy/system_app.te @@ -12,6 +12,10 @@ set_prop(system_app, timekeep_prop) r_dir_file(system_app, sysfs_timekeep) r_dir_file(system_app, sysfs_rtc) +# Zram +allow system_app sysfs_zram:dir search; +allow system_app sysfs_zram:file r_file_perms; + dontaudit system_app { apex_service system_suspend_control_service |
