Skip to content

Commit

Permalink
Device using split policy can still have monolithic sepolicy file
Browse files Browse the repository at this point in the history
  • Loading branch information
canyie authored and topjohnwu committed Mar 19, 2022
1 parent dd5a341 commit 0f07bbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/jni/init/rootdir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ void SARBase::patch_ro_root() {
}
}

if (access("/sepolicy", F_OK) == 0) {
if (access(SPLIT_PLAT_CIL, F_OK) != 0 && access("/sepolicy", F_OK) == 0) {
patch_sepolicy(ROOTOVL "/sepolicy");
} else {
hijack_sepolicy();
Expand Down

0 comments on commit 0f07bbb

Please sign in to comment.