Commit 21a557a1 authored by topjohnwu's avatar topjohnwu

Add rules for Android P

parent 26dfbb30
......@@ -2,6 +2,8 @@
#include "sepolicy.h"
void allowSuClient(char *target) {
if (!sepol_exists(target))
return;
sepol_allow(target, "rootfs", "file", ALL);
sepol_allow(target, "rootfs", "lnk_file", ALL);
sepol_allow(target, "su", "unix_stream_socket", "connectto");
......@@ -140,10 +142,9 @@ void sepol_magisk_rules() {
allowSuClient("untrusted_app");
allowSuClient("system_app");
allowSuClient("platform_app");
if (sepol_exists("priv_app"))
allowSuClient("priv_app");
if (sepol_exists("untrusted_app_25"))
allowSuClient("untrusted_app_25");
allowSuClient("untrusted_app_27");
// Some superuser stuffs
suRights();
......
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