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
c011bccc
Commit
c011bccc
authored
Nov 11, 2015
by
Pierre-Hugues Husson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We can now have a list of permissions instead of just one permission, coma separated
parent
8473caf5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
sepolicy-inject.c
sepolicy-inject.c
+9
-5
No files found.
sepolicy-inject.c
View file @
c011bccc
...
@@ -455,11 +455,15 @@ int main(int argc, char **argv)
...
@@ -455,11 +455,15 @@ int main(int argc, char **argv)
}
else
if
(
noaudit
)
{
}
else
if
(
noaudit
)
{
add_rule
(
source
,
target
,
class
,
perm
,
AVTAB_AUDITDENY
,
&
policydb
);
add_rule
(
source
,
target
,
class
,
perm
,
AVTAB_AUDITDENY
,
&
policydb
);
}
else
{
}
else
{
create_domain
(
source
,
&
policydb
);
char
*
saveptr
=
NULL
;
if
(
add_rule
(
source
,
target
,
class
,
perm
,
AVTAB_ALLOWED
,
&
policydb
))
{
fprintf
(
stderr
,
"Could not add rule
\n
"
);
char
*
p
=
strtok_r
(
perm
,
","
,
&
saveptr
);
return
1
;
do
{
}
if
(
add_rule
(
source
,
target
,
class
,
p
,
AVTAB_ALLOWED
,
&
policydb
))
{
fprintf
(
stderr
,
"Could not add rule
\n
"
);
return
1
;
}
}
while
(
(
p
=
strtok_r
(
NULL
,
","
,
&
saveptr
))
!=
NULL
);
}
}
fp
=
fopen
(
outfile
,
"w"
);
fp
=
fopen
(
outfile
,
"w"
);
...
...
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