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
8d68ebb0
Commit
8d68ebb0
authored
Apr 30, 2019
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert ioctl rules
parent
5f53cfb4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
rules.cpp
native/jni/magiskpolicy/rules.cpp
+12
-0
No files found.
native/jni/magiskpolicy/rules.cpp
View file @
8d68ebb0
...
@@ -15,6 +15,18 @@ static void allowSuClient(const char *target) {
...
@@ -15,6 +15,18 @@ static void allowSuClient(const char *target) {
// Allow binder service
// Allow binder service
sepol_allow
(
target
,
SEPOL_PROC_DOMAIN
,
"binder"
,
"call"
);
sepol_allow
(
target
,
SEPOL_PROC_DOMAIN
,
"binder"
,
"call"
);
sepol_allow
(
target
,
SEPOL_PROC_DOMAIN
,
"binder"
,
"transfer"
);
sepol_allow
(
target
,
SEPOL_PROC_DOMAIN
,
"binder"
,
"transfer"
);
// Allow termios ioctl
sepol_allow
(
target
,
"devpts"
,
"chr_file"
,
"ioctl"
);
sepol_allow
(
target
,
"untrusted_app_devpts"
,
"chr_file"
,
"ioctl"
);
sepol_allow
(
target
,
"untrusted_app_25_devpts"
,
"chr_file"
,
"ioctl"
);
sepol_allow
(
target
,
"untrusted_app_all_devpts"
,
"chr_file"
,
"ioctl"
);
if
(
policydb
->
policyvers
>=
POLICYDB_VERSION_XPERMS_IOCTL
)
{
sepol_allowxperm
(
target
,
"devpts"
,
"chr_file"
,
"0x5400-0x54FF"
);
sepol_allowxperm
(
target
,
"untrusted_app_devpts"
,
"chr_file"
,
"0x5400-0x54FF"
);
sepol_allowxperm
(
target
,
"untrusted_app_25_devpts"
,
"chr_file"
,
"0x5400-0x54FF"
);
sepol_allowxperm
(
target
,
"untrusted_app_all_devpts"
,
"chr_file"
,
"0x5400-0x54FF"
);
}
}
}
void
sepol_magisk_rules
()
{
void
sepol_magisk_rules
()
{
...
...
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