Skip to content

Commit

Permalink
Allow kernel to relabel
Browse files Browse the repository at this point in the history
  • Loading branch information
yujincheng08 authored and topjohnwu committed Dec 27, 2024
1 parent aae5b46 commit a6c2ba7
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 a6c2ba7

Please sign in to comment.