Skip to content

Commit

Permalink
Update sepolicy handling
Browse files Browse the repository at this point in the history
  • Loading branch information
topjohnwu committed Dec 31, 2017
1 parent 2f79d0c commit d8c51cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/jni/core/magiskinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion core/jni/magiskpolicy
Submodule magiskpolicy updated 1 files
+9 −99 rules.c

0 comments on commit d8c51cb

Please sign in to comment.