diff --git a/vold.te b/vold.te index e16ec73f262ce5d32ba99abbb285cfe2a9a0bb1c..67e461a25db9a665a0925b7cfca7a3032477bd12 100644 --- a/vold.te +++ b/vold.te @@ -8,6 +8,17 @@ init_daemon_domain(vold) domain_auto_trans(vold, sgdisk_exec, sgdisk); domain_auto_trans(vold, sdcardd_exec, sdcardd); +# Read already opened /cache files. +allow vold cache_file:dir r_dir_perms; +allow vold cache_file:file { getattr read }; +allow vold cache_file:lnk_file r_file_perms; + +# Read access to pseudo filesystems. +r_dir_file(vold, proc) +r_dir_file(vold, proc_net) +r_dir_file(vold, sysfs) +r_dir_file(vold, rootfs) + # For a handful of probing tools, we choose an even more restrictive # domain when working with untrusted block devices domain_trans(vold, shell_exec, blkid);