aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2016-08-23 17:02:57 +0100
committergitbuildkicker <android-build@google.com>2016-09-27 18:11:01 -0700
commit1825d644258314f194613b8e7cd7d8554a18843d (patch)
tree3025b35a9e7755338157c7d311e78d26354d3bb5
parent1c4530a691a3034dc790d1355f94acc7a1a7568e (diff)
downloadsepolicy-marshmallow-mr1-release.tar.gz
Allow the zygote to stat all files it opens.android-6.0.1_r73marshmallow-mr1-release
bug: 30963384 Change-Id: I62b5ffd43469dbb0bba67e1bb1d3416e7354f9e5 (cherry picked from commit 3ff0b0282688c3776904b8e5409a4dfb7f231e73)
-rw-r--r--zygote.te7
1 files changed, 7 insertions, 0 deletions
diff --git a/zygote.te b/zygote.te
index 7029344..dae91c9 100644
--- a/zygote.te
+++ b/zygote.te
@@ -37,6 +37,13 @@ allow zygote dex2oat_exec:file rx_file_perms;
# Control cgroups.
allow zygote cgroup:dir create_dir_perms;
allow zygote self:capability sys_admin;
+# Allow zygote to stat the files that it opens. The zygote must
+# be able to inspect them so that it can reopen them on fork
+# if necessary: b/30963384
+# allow zygote pmsg_device:chr_file { getattr };
+allow zygote debugfs:dir search;
+allow zygote debugfs:file { getattr };
+
# Check validity of SELinux context before use.
selinux_check_context(zygote)
# Check SELinux permissions.