Magisk/native/jni/utils
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
..
include Remove requirement to use early-init daemon 2019-04-24 00:13:48 -04:00
Android.mk Move CPIO to libutils 2019-02-23 02:42:26 -05:00
cpio.cpp Support A only System-as-root Devices 2019-02-28 05:46:36 -05:00
file.cpp Several improvements 2019-03-31 06:32:33 -04:00
logging.cpp Clean/refactor includes 2019-02-10 03:57:51 -05:00
misc.cpp Add boot_complete trigger back 2019-04-05 07:00:30 -04:00
new.cpp Bump to C++17 2019-01-20 00:07:58 -05:00
selinux.cpp Remove requirement to use early-init daemon 2019-04-24 00:13:48 -04:00
xwrap.cpp Improve builtin selinux implementation 2019-03-14 06:34:22 -04:00