From 26dfbb30285ce8858d1051870620b6d5925f3128 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sun, 18 Feb 2018 19:19:14 +0800 Subject: [PATCH] Add rules for Magisk Manager --- rules.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rules.c b/rules.c index d51e48e70..f42ace60e 100644 --- a/rules.c +++ b/rules.c @@ -6,11 +6,10 @@ void allowSuClient(char *target) { sepol_allow(target, "rootfs", "lnk_file", ALL); sepol_allow(target, "su", "unix_stream_socket", "connectto"); sepol_allow(target, "su", "unix_stream_socket", "getopt"); - sepol_allow(target, "su_file", "dir", "search"); - sepol_allow(target, "su_file", "dir", "read"); sepol_allow(target, "su_file", "sock_file", "read"); sepol_allow(target, "su_file", "sock_file", "write"); sepol_allow(target, "su_file", "file", ALL); + sepol_allow(target, "su_file", "dir", ALL); sepol_allow(target, "devpts", "chr_file", "ioctl"); sepol_allow("su", target, "fd", "use"); sepol_allow("su", target, "fifo_file", ALL);