More rules

This commit is contained in:
topjohnwu 2016-10-02 23:03:44 +08:00
parent 98cdee7f03
commit 3a0df56605

View File

@ -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");