summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOcean Chen <oceanchen@google.com>2023-03-15 14:57:10 +0800
committerOcean Chen <oceanchen@google.com>2023-03-15 15:05:45 +0800
commit4c3fd431bfb88e8ee72d0d09ac950ac1206ab4f6 (patch)
treec2830ff0fce7c6154fce3c4a13720714c314a137
parent8599b93e47513e2e065a1c286d8d167aabafe38d (diff)
downloadpixel-sepolicy-4c3fd431bfb88e8ee72d0d09ac950ac1206ab4f6.tar.gz
pixel-sepolicy: allow pixelstats to query persist used size
avc: denied { search } for comm="pixelstats-vend" name="vendor" dev="tmpfs" ino=9172 scontext=u:r:pixelstats_vendor:s0 tcontext=u:object_r:mnt_vendor_file:s0 tclass=dir permissive=0 Bug: 259265903 Bug: 240518513 Test: reboot and check log Change-Id: I6c17f8209d2dcd671b950152dcbdac14795a7642 Signed-off-by: Ocean Chen <oceanchen@google.com>
-rw-r--r--pixelstats/pixelstats_vendor.te1
1 files changed, 1 insertions, 0 deletions
diff --git a/pixelstats/pixelstats_vendor.te b/pixelstats/pixelstats_vendor.te
index f7b77e7..d0850b1 100644
--- a/pixelstats/pixelstats_vendor.te
+++ b/pixelstats/pixelstats_vendor.te
@@ -11,6 +11,7 @@ r_dir_file(pixelstats_vendor, sysfs_batteryinfo)
allow pixelstats_vendor sysfs_batteryinfo:file w_file_perms;
allow pixelstats_vendor self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl;
+allow pixelstats_vendor mnt_vendor_file:dir search;
allow pixelstats_vendor sysfs_scsi_devices_0000:dir search;
allow pixelstats_vendor sysfs_scsi_devices_0000:file rw_file_perms;
allow pixelstats_vendor sysfs_fs_f2fs:dir search;