mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-04-19 00:31:29 +00:00
Update sepolicy handling
This commit is contained in:
parent
2f79d0c3b3
commit
d8c51cb286
@ -364,7 +364,8 @@ static void magisk_init_daemon() {
|
|||||||
sepol_allow("su", ALL, ALL, ALL);
|
sepol_allow("su", ALL, ALL, ALL);
|
||||||
|
|
||||||
// Wait till init cold boot done
|
// 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);
|
int null = open("/dev/null", O_RDWR | O_CLOEXEC);
|
||||||
dup3(null, STDIN_FILENO, O_CLOEXEC);
|
dup3(null, STDIN_FILENO, O_CLOEXEC);
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit edab891427b8018b09cc6883e924b2c7e81b4a31
|
Subproject commit 5c338cd0a7f3b85305dcc960c8533da9d7ff2f27
|
Loading…
x
Reference in New Issue
Block a user