summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeremy Condra <gcondra@google.com>2013-04-03 20:59:32 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-04-03 20:59:33 +0000
commitc1e47294c9ca69f32bae24036eb0f19db3af7b2e (patch)
tree995a832128283eae16e82e25c91b298462df3d45
parent8e15eabdc0b40e68426eaf3179dc076d20df75b6 (diff)
parentc2594f36e789bbd49cbeeb9421a7b6a16cd30ba4 (diff)
downloadsystem_core-c1e47294c9ca69f32bae24036eb0f19db3af7b2e.zip
system_core-c1e47294c9ca69f32bae24036eb0f19db3af7b2e.tar.gz
system_core-c1e47294c9ca69f32bae24036eb0f19db3af7b2e.tar.bz2
Merge "Give system ownership of selinux load and enforce files." into jb-mr2-dev
-rw-r--r--rootdir/init.rc4
1 files changed, 4 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index e6583e3..89ec18a 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -348,6 +348,10 @@ on boot
chown system system /sys/kernel/ipv4/tcp_rmem_max
chown root radio /proc/cmdline
+# Set these so we can remotely update SELinux policy
+ chown system system /sys/fs/selinux/load
+ chown system system /sys/fs/selinux/enforce
+
# Define TCP buffer sizes for various networks
# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208