Commit d8c51cb2 authored by topjohnwu's avatar topjohnwu

Update sepolicy handling

parent 2f79d0c3
......@@ -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);
......
Subproject commit edab891427b8018b09cc6883e924b2c7e81b4a31
Subproject commit 5c338cd0a7f3b85305dcc960c8533da9d7ff2f27
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment