Magisk/native/jni/core
topjohnwu 003e44fb84 Remove requirement to use early-init daemon
We used to construct /sbin tmpfs overlay in early-init stage after
SELinux is properly initialized. However the way it is implemented
(forking daemon from magiskinit with complicated file waiting triggers)
is extremely complicated and error prone.

This commit moves the construction of the sbin overlay to pre-init
stage. The catch is that since SELinux is not present at that point,
proper selabel has to be reconstructed afterwards. Some additional
SEPolicy rules are added to make sure init can access magisk binaries,
and the secontext relabeling task is assigned to the main Magisk daemon.
2019-04-24 00:13:48 -04:00
..
applets.cpp Use wrapper script on system with APEX 2019-04-03 17:25:47 -04:00
bootstages.cpp Don't allow cloning root nodes 2019-04-08 12:30:57 -04:00
daemon.cpp Remove requirement to use early-init daemon 2019-04-24 00:13:48 -04:00
db.cpp Use our own function to parse int 2019-03-07 20:31:35 -05:00
init.cpp Remove requirement to use early-init daemon 2019-04-24 00:13:48 -04:00
magisk.cpp Remove requirement to use early-init daemon 2019-04-24 00:13:48 -04:00
magiskrc.h Remove requirement to use early-init daemon 2019-04-24 00:13:48 -04:00
scripting.cpp Add boot_complete trigger back 2019-04-05 07:00:30 -04:00
socket.cpp Separate scripting code 2019-02-15 20:45:05 -05:00