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
8ee9984e
Commit
8ee9984e
authored
Nov 27, 2017
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add rules for magiskinit daemon
parent
e5b6121d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
rules.c
rules.c
+4
-3
No files found.
rules.c
View file @
8ee9984e
...
@@ -163,11 +163,12 @@ void sepol_min_rules() {
...
@@ -163,11 +163,12 @@ void sepol_min_rules() {
sepol_attradd
(
"su"
,
"mlstrustedsubject"
);
sepol_attradd
(
"su"
,
"mlstrustedsubject"
);
sepol_attradd
(
"su_device"
,
"mlstrustedobject"
);
sepol_attradd
(
"su_device"
,
"mlstrustedobject"
);
// Let pre-init do stuffs
// Let magiskinit daemon monitor and transit to su
sepol_allow
(
"kernel"
,
"kernel"
,
"security"
,
"load_policy"
);
sepol_allow
(
"kernel"
,
"kernel"
,
"capability"
,
"dac_override"
);
sepol_allow
(
"kernel"
,
"device"
,
"dir"
,
ALL
);
sepol_allow
(
"kernel"
,
"device"
,
"dir"
,
ALL
);
sepol_allow
(
"kernel"
,
"device"
,
"file"
,
ALL
);
sepol_allow
(
"kernel"
,
"device"
,
"file"
,
ALL
);
sepol_allow
(
"kernel"
,
"su"
,
"unix_stream_socket"
,
"connectto"
);
sepol_allow
(
"kernel"
,
"kernel"
,
"process"
,
"setcurrent"
);
sepol_allow
(
"kernel"
,
"su"
,
"process"
,
"dyntransition"
);
// Let init run stuffs in su context
// Let init run stuffs in su context
sepol_allow
(
"kernel"
,
"su"
,
"fd"
,
"use"
);
sepol_allow
(
"kernel"
,
"su"
,
"fd"
,
"use"
);
...
...
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