Skip to content

Commit

Permalink
Allow kernel to relabel
Browse files Browse the repository at this point in the history
  • Loading branch information
yujincheng08 committed Dec 15, 2024
1 parent 1e702e0 commit 7bc2344
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions native/src/sepolicy/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ impl SepolicyMagisk for sepolicy {
// For relabelling files
allow(["rootfs"], ["labeledfs", "tmpfs"], ["filesystem"], ["associate"]);
allow([file], ["pipefs", "devpts"], ["filesystem"], ["associate"]);
allow(["kernel"], all, ["file"], ["relabelto"]);
allow(["kernel"], ["tmpfs"], ["file"], ["relabelfrom"]);

// Let init transit to SEPOL_PROC_DOMAIN
allow(["kernel"], ["kernel"], ["process"], ["setcurrent"]);
Expand Down

0 comments on commit 7bc2344

Please sign in to comment.