shell.te: allow pulling the currently running SELinux policy
Allow pulling the currently running SELinux policy for CTS.
Change-Id: I82ec03724a8e5773b3b693c4f39cc7b5c3ae4516
diff --git a/shell.te b/shell.te
index a8089d6..e0c318f 100644
--- a/shell.te
+++ b/shell.te
@@ -98,6 +98,10 @@
# allow shell to read /proc/pid/attr/current for ps -Z
allow shell domain:process getattr;
+# Allow pulling the SELinux policy for CTS purposes
+allow shell selinuxfs:dir r_dir_perms;
+allow shell selinuxfs:file r_file_perms;
+
# enable shell domain to read/write files/dirs for bootchart data
# User will creates the start and stop file via adb shell
# and read other files created by init process under /data/bootchart