summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeremy Condra2013-03-30 19:27:43 -0500
committerGeremy Condra2013-04-03 13:58:12 -0500
commitc2594f36e789bbd49cbeeb9421a7b6a16cd30ba4 (patch)
tree54fc92adc9858cdfb77ac811dcd7a4a310552f29
parent69de9ac00bd3db3bfdb04ac5686e4b2cbfc372b5 (diff)
downloadplatform-system-core-c2594f36e789bbd49cbeeb9421a7b6a16cd30ba4.tar.gz
platform-system-core-c2594f36e789bbd49cbeeb9421a7b6a16cd30ba4.tar.xz
platform-system-core-c2594f36e789bbd49cbeeb9421a7b6a16cd30ba4.zip
Give system ownership of selinux load and enforce files.
This is necessary to enable remote updates. Change-Id: I05fb979c0360eca4cc6e4add48bb42f712a1ba17
-rw-r--r--rootdir/init.rc4
1 files changed, 4 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index e6583e352..89ec18a36 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -348,6 +348,10 @@ on boot
348 chown system system /sys/kernel/ipv4/tcp_rmem_max 348 chown system system /sys/kernel/ipv4/tcp_rmem_max
349 chown root radio /proc/cmdline 349 chown root radio /proc/cmdline
350 350
351# Set these so we can remotely update SELinux policy
352 chown system system /sys/fs/selinux/load
353 chown system system /sys/fs/selinux/enforce
354
351# Define TCP buffer sizes for various networks 355# Define TCP buffer sizes for various networks
352# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax, 356# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
353 setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208 357 setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208