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
c071ac89
Commit
c071ac89
authored
May 29, 2020
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused code
parent
599ee57d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
14 deletions
+0
-14
sepolicy.cpp
native/jni/magiskpolicy/sepolicy.cpp
+0
-13
sepolicy.hpp
native/jni/magiskpolicy/sepolicy.hpp
+0
-1
No files found.
native/jni/magiskpolicy/sepolicy.cpp
View file @
c071ac89
...
@@ -107,19 +107,6 @@ static int avtab_remove_node(avtab_t *h, avtab_ptr_t node) {
...
@@ -107,19 +107,6 @@ static int avtab_remove_node(avtab_t *h, avtab_ptr_t node) {
return
0
;
return
0
;
}
}
int
sepol_impl
::
set_attr
(
const
char
*
attr_name
,
int
type_val
)
{
type_datum_t
*
attr
=
hashtab_find
(
db
->
p_types
.
table
,
attr_name
);
if
(
!
attr
||
attr
->
flavor
!=
TYPE_ATTRIB
)
return
-
1
;
if
(
ebitmap_set_bit
(
&
db
->
type_attr_map
[
type_val
-
1
],
attr
->
s
.
value
-
1
,
1
))
return
-
1
;
if
(
ebitmap_set_bit
(
&
db
->
attr_type_map
[
attr
->
s
.
value
-
1
],
type_val
-
1
,
1
))
return
-
1
;
return
attr
->
s
.
value
;
}
void
sepol_impl
::
check_avtab_node
(
avtab_ptr_t
node
)
{
void
sepol_impl
::
check_avtab_node
(
avtab_ptr_t
node
)
{
bool
redundant
;
bool
redundant
;
if
(
node
->
key
.
specified
==
AVTAB_AUDITDENY
)
if
(
node
->
key
.
specified
==
AVTAB_AUDITDENY
)
...
...
native/jni/magiskpolicy/sepolicy.hpp
View file @
c071ac89
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
// Internal APIs, do not use directly
// Internal APIs, do not use directly
struct
sepol_impl
:
public
sepolicy
{
struct
sepol_impl
:
public
sepolicy
{
int
set_attr
(
const
char
*
attr_name
,
int
type_val
);
void
check_avtab_node
(
avtab_ptr_t
node
);
void
check_avtab_node
(
avtab_ptr_t
node
);
avtab_ptr_t
get_avtab_node
(
avtab_key_t
*
key
,
avtab_extended_perms_t
*
xperms
);
avtab_ptr_t
get_avtab_node
(
avtab_key_t
*
key
,
avtab_extended_perms_t
*
xperms
);
bool
add_rule
(
const
char
*
s
,
const
char
*
t
,
const
char
*
c
,
const
char
*
p
,
int
effect
,
bool
invert
);
bool
add_rule
(
const
char
*
s
,
const
char
*
t
,
const
char
*
c
,
const
char
*
p
,
int
effect
,
bool
invert
);
...
...
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