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
10601e77
Commit
10601e77
authored
Nov 01, 2015
by
Pierre-Hugues Husson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename variables in add_transition to be more explicit
parent
088ce9c2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
sepolicy-inject.c
sepolicy-inject.c
+5
-5
No files found.
sepolicy-inject.c
View file @
10601e77
...
@@ -173,8 +173,8 @@ int add_rule(char *s, char *t, char *c, char *p, policydb_t *policy) {
...
@@ -173,8 +173,8 @@ int add_rule(char *s, char *t, char *c, char *p, policydb_t *policy) {
return
0
;
return
0
;
}
}
int
add_transition
(
char
*
srcS
,
char
*
fcon
S
,
char
*
tgtS
,
char
*
c
,
policydb_t
*
policy
)
{
int
add_transition
(
char
*
srcS
,
char
*
orig
S
,
char
*
tgtS
,
char
*
c
,
policydb_t
*
policy
)
{
type_datum_t
*
src
,
*
tgt
,
*
fcon
;
type_datum_t
*
src
,
*
tgt
,
*
orig
;
class_datum_t
*
cls
;
class_datum_t
*
cls
;
avtab_datum_t
*
av
;
avtab_datum_t
*
av
;
...
@@ -195,14 +195,14 @@ int add_transition(char *srcS, char *fconS, char *tgtS, char *c, policydb_t *pol
...
@@ -195,14 +195,14 @@ int add_transition(char *srcS, char *fconS, char *tgtS, char *c, policydb_t *pol
fprintf
(
stderr
,
"class %s does not exist
\n
"
,
c
);
fprintf
(
stderr
,
"class %s does not exist
\n
"
,
c
);
return
1
;
return
1
;
}
}
fcon
=
hashtab_search
(
policy
->
p_types
.
table
,
fcon
S
);
orig
=
hashtab_search
(
policy
->
p_types
.
table
,
orig
S
);
if
(
cls
==
NULL
)
{
if
(
cls
==
NULL
)
{
fprintf
(
stderr
,
"class %s does not exist
\n
"
,
fcon
S
);
fprintf
(
stderr
,
"class %s does not exist
\n
"
,
orig
S
);
return
1
;
return
1
;
}
}
key
.
source_type
=
src
->
s
.
value
;
key
.
source_type
=
src
->
s
.
value
;
key
.
target_type
=
fcon
->
s
.
value
;
key
.
target_type
=
orig
->
s
.
value
;
key
.
target_class
=
cls
->
s
.
value
;
key
.
target_class
=
cls
->
s
.
value
;
key
.
specified
=
AVTAB_TRANSITION
;
key
.
specified
=
AVTAB_TRANSITION
;
av
=
avtab_search
(
&
policy
->
te_avtab
,
&
key
);
av
=
avtab_search
(
&
policy
->
te_avtab
,
&
key
);
...
...
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