• topjohnwu's avatar
    Remove requirement to use early-init daemon · 003e44fb
    topjohnwu authored
    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.
    003e44fb
Name
Last commit
Last update
app Loading commit data...
chromeos Loading commit data...
docs Loading commit data...
gradle/wrapper Loading commit data...
native Loading commit data...
net Loading commit data...
scripts Loading commit data...
shared Loading commit data...
signing Loading commit data...
snet Loading commit data...
stub Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
LICENSE Loading commit data...
README.MD Loading commit data...
build.gradle Loading commit data...
build.py Loading commit data...
config.prop.sample Loading commit data...
gradle.properties Loading commit data...
gradlew Loading commit data...
gradlew.bat Loading commit data...
settings.gradle Loading commit data...