Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
0d229dac
Commit
0d229dac
authored
Feb 21, 2020
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support Android 11 SELinux paths
This is NOT proper Android 11 support
parent
3b8ea599
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
policydb.cpp
native/jni/magiskpolicy/policydb.cpp
+8
-0
selinux.h
native/jni/utils/include/selinux.h
+1
-0
No files found.
native/jni/magiskpolicy/policydb.cpp
View file @
0d229dac
...
@@ -83,6 +83,14 @@ static bool check_precompiled(const char *precompiled) {
...
@@ -83,6 +83,14 @@ static bool check_precompiled(const char *precompiled) {
return
false
;
return
false
;
}
}
actual_sha
=
SYSEXT_POLICY_DIR
"system_ext_sepolicy_and_mapping.sha256"
;
if
(
access
(
actual_sha
,
R_OK
)
==
0
)
{
ok
=
true
;
sprintf
(
compiled_sha
,
"%s.system_ext_sepolicy_and_mapping.sha256"
,
precompiled
);
if
(
!
cmp_sha256
(
actual_sha
,
compiled_sha
)
!=
0
)
return
false
;
}
return
ok
;
return
ok
;
}
}
...
...
native/jni/utils/include/selinux.h
View file @
0d229dac
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
#define VEND_POLICY_DIR "/vendor/etc/selinux/"
#define VEND_POLICY_DIR "/vendor/etc/selinux/"
#define PROD_POLICY_DIR "/product/etc/selinux/"
#define PROD_POLICY_DIR "/product/etc/selinux/"
#define ODM_POLICY_DIR "/odm/etc/selinux/"
#define ODM_POLICY_DIR "/odm/etc/selinux/"
#define SYSEXT_POLICY_DIR "/system_ext/etc/selinux/"
#define SPLIT_PLAT_CIL PLAT_POLICY_DIR "plat_sepolicy.cil"
#define SPLIT_PLAT_CIL PLAT_POLICY_DIR "plat_sepolicy.cil"
#define SEPOL_PROC_DOMAIN "magisk"
#define SEPOL_PROC_DOMAIN "magisk"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment