diff options
Diffstat (limited to 'init/init.c')
| -rwxr-xr-x | init/init.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/init/init.c b/init/init.c index 48d9c9ae..4cf84149 100755 --- a/init/init.c +++ b/init/init.c @@ -905,6 +905,12 @@ int main(int argc, char **argv) #ifdef HAVE_SELINUX INFO("loading selinux policy\n"); selinux_load_policy(); + /* These directories were necessarily created before policy load + * and therefore need their security context restored to the proper value. + * This must happen before /dev is populated by ueventd. + */ + restorecon("/dev"); + restorecon("/dev/socket"); #endif is_charger = !strcmp(bootmode, "charger"); |
