Apply all sepolicy patches pre-init

Boot services tend to fail in the middle when the kernel loads a sepolicy live.
It seems that moving full patch (allow magisk * * *) to late_start is still not enough to fix service startup failures.
So screw it, apply all patched in magiskinit, which makes sure that all rules are only loaded in a single step.
The only down side is that some OEM with a HUGE set of secontexts (e.g. Samsung) might suffer a slightly longer boot time, which IS the reason why the rules are split to 2 parts in the first place.
This commit is contained in:
topjohnwu
2018-08-09 03:20:28 +08:00
parent ff36f2ba17
commit ada0f93686
5 changed files with 5 additions and 16 deletions

View File

@ -10,7 +10,6 @@
extern int setup_done;
extern int seperate_vendor;
extern int full_patch_pid;
// Commands require connecting to daemon
enum {