From 3a0df56605bc9226b4c989979c1d4e9a8a565ad4 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sun, 2 Oct 2016 23:03:44 +0800 Subject: [PATCH] More rules --- builtin_rules.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/builtin_rules.c b/builtin_rules.c index df9605ba9..a81f2094b 100644 --- a/builtin_rules.c +++ b/builtin_rules.c @@ -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");