commit | 2712c90263325fbd98aa8702c97bd21c0f66ec03 | [log] [tgz] |
---|---|---|
author | Shintaro Kawamura <kawasin@google.com> | Thu Nov 21 11:59:17 2024 +0900 |
committer | Shintaro Kawamura <kawasin@google.com> | Thu Nov 21 12:01:13 2024 +0900 |
tree | de761823bef85494f0b7b04120852161d692f260 | |
parent | 9c7d306429f3ef12ce53fdf5ee868cf75c91d8e2 [diff] [blame] |
Add sepolicy for mmd to execute zram maintenance mmd reads /proc/meminfo to calculate idle duration (https://r.android.com/c/3350507). ZramMaintenance.java of system_server calls binder API of mmd (https://r.android.com/3342055). Bug: 375432468 Test: manual Change-Id: Idd3dd2cd93402affd0655b4edc912ab10b3b7755
diff --git a/private/mmd.te b/private/mmd.te index 4955d13..193c307 100644 --- a/private/mmd.te +++ b/private/mmd.te
@@ -8,3 +8,10 @@ # mmd binder setup add_service(mmd, mmd_service) binder_use(mmd) + +# zram sysfs access +allow mmd sysfs_zram:dir search; +allow mmd sysfs_zram:file rw_file_perms; + +# procfs +allow mmd proc_meminfo:file r_file_perms;