Update sepolicy handling

This commit is contained in:
topjohnwu 2017-12-31 19:32:04 +08:00
parent 2f79d0c3b3
commit d8c51cb286
2 changed files with 3 additions and 2 deletions

View File

@ -364,7 +364,8 @@ static void magisk_init_daemon() {
sepol_allow("su", ALL, ALL, ALL);
// Wait till init cold boot done
wait_till_exists("/dev/.coldboot_done");
while (access("/dev/.coldboot_done", F_OK))
usleep(1);
int null = open("/dev/null", O_RDWR | O_CLOEXEC);
dup3(null, STDIN_FILENO, O_CLOEXEC);

@ -1 +1 @@
Subproject commit edab891427b8018b09cc6883e924b2c7e81b4a31
Subproject commit 5c338cd0a7f3b85305dcc960c8533da9d7ff2f27