From 6552f6885fc2a94501ca064bffc4c18ad40caad8 Mon Sep 17 00:00:00 2001 From: Stephen Smalley Date: Mon, 26 Aug 2013 10:45:05 -0400 Subject: [PATCH] Trigger a policy reload from post-fs-data. Once userdata is available and decrypted, trigger a policy reload to pick up any policy update files stored under /data/security. Change-Id: Ic2b3121c3395429b108c40d1d7f5a3124a5896c5 Signed-off-by: Stephen Smalley --- rootdir/init.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index 5e3c99156..50c695bc8 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -245,6 +245,9 @@ on post-fs-data # Separate location for storing security policy files on data mkdir /data/security 0711 system system + # Reload policy from /data/security if present. + setprop selinux.reload_policy 1 + # If there is no fs-post-data action in the init..rc file, you # must uncomment this line, otherwise encrypted filesystems # won't work.