Commit 3a0df566 authored by topjohnwu's avatar topjohnwu

More rules

parent 98cdee7f
......@@ -356,22 +356,56 @@ void magisk_rules(policydb_t *policydb) {
allow("su", "su", "lnk_file", ALL);
allow("su", "su", "dir", ALL);
allow("su", "device", "file", ALL);
allow("su", "device", "fifo_file", ALL);
allow("su", "device", "lnk_file", ALL);
allow("su", "device", "dir", ALL);
allow("su", "storage_file", "file", ALL);
allow("su", "storage_file", "fifo_file", ALL);
allow("su", "storage_file", "lnk_file", ALL);
allow("su", "storage_file", "dir", ALL);
allow("su", "sysfs", "file", ALL);
allow("su", "sysfs", "fifo_file", ALL);
allow("su", "sysfs", "lnk_file", ALL);
allow("su", "sysfs", "dir", ALL);
allow("su", "block_device", "file", ALL);
allow("su", "block_device", "fifo_file", ALL);
allow("su", "block_device", "lnk_file", ALL);
allow("su", "block_device", "dir", ALL);
allow("su", "rootfs", "file", ALL);
allow("su", "rootfs", "fifo_file", ALL);
allow("su", "rootfs", "lnk_file", ALL);
allow("su", "rootfs", "dir", ALL);
allow("su", "toolbox_exec", "file", ALL);
allow("su", "toolbox_exec", "fifo_file", ALL);
allow("su", "toolbox_exec", "lnk_file", ALL);
allow("su", "toolbox_exec", "dir", ALL);
allow("su", "zygote_exec", "file", ALL);
allow("su", "zygote_exec", "fifo_file", ALL);
allow("su", "zygote_exec", "lnk_file", ALL);
allow("su", "zygote_exec", "dir", ALL);
allow("su", "bootanim_exec", "file", ALL);
allow("su", "bootanim_exec", "fifo_file", ALL);
allow("su", "bootanim_exec", "lnk_file", ALL);
allow("su", "bootanim_exec", "dir", ALL);
allow("su", "dex2oat_exec", "file", ALL);
allow("su", "dex2oat_exec", "fifo_file", ALL);
allow("su", "dex2oat_exec", "lnk_file", ALL);
allow("su", "dex2oat_exec", "dir", ALL);
allow("su", "fsck_exec", "file", ALL);
allow("su", "fsck_exec", "fifo_file", ALL);
allow("su", "fsck_exec", "lnk_file", ALL);
allow("su", "fsck_exec", "dir", ALL);
allow("su", "cache_file", "file", ALL);
allow("su", "cache_file", "fifo_file", ALL);
allow("su", "cache_file", "lnk_file", ALL);
allow("su", "cache_file", "dir", ALL);
allow("su", "system_file", "file", ALL);
allow("su", "system_file", "fifo_file", ALL);
allow("su", "system_file", "lnk_file", ALL);
allow("su", "system_file", "dir", ALL);
allow("su", "system_data_file", "file", ALL);
allow("su", "system_data_file", "fifo_file", ALL);
allow("su", "system_data_file", "lnk_file", ALL);
allow("su", "system_data_file", "dir", ALL);
allow("su", "kernel", "security", "read_policy");
allow("su", "kernel", "security", "load_policy");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment