Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemSEPolicy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemSEPolicy
Commits
d298354e
Commit
d298354e
authored
10 years ago
by
Nick Kralevich
Committed by
Gerrit Code Review
10 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Add isOwner= input selector for seapp_contexts."
parents
b4c10e98
ff4db919
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
seapp_contexts
+12
-7
12 additions, 7 deletions
seapp_contexts
tools/check_seapp.c
+1
-0
1 addition, 0 deletions
tools/check_seapp.c
with
13 additions
and
7 deletions
seapp_contexts
+
12
−
7
View file @
d298354e
# Input selectors:
# isSystemServer (boolean)
# isOwner (boolean)
# user (string)
# seinfo (string)
# name (string)
...
...
@@ -7,6 +8,9 @@
# sebool (string)
# isSystemServer=true can only be used once.
# An unspecified isSystemServer defaults to false.
# isOwner=true will only match for the owner/primary user.
# isOwner=false will only match for secondary users.
# If unspecified, the entry can match either case.
# An unspecified string selector will match any value.
# A user string selector that ends in * will perform a prefix match.
# user=_app will match any regular app UID.
...
...
@@ -16,13 +20,14 @@
#
# Precedence rules:
# (1) isSystemServer=true before isSystemServer=false.
# (2) Specified user= string before unspecified user= string.
# (3) Fixed user= string before user= prefix (i.e. ending in *).
# (4) Longer user= prefix before shorter user= prefix.
# (5) Specified seinfo= string before unspecified seinfo= string.
# (6) Specified name= string before unspecified name= string.
# (7) Specified path= string before unspecified path= string.
# (8) Specified sebool= string before unspecified sebool= string.
# (2) Specified isOwner= before unspecified isOwner= boolean.
# (3) Specified user= string before unspecified user= string.
# (4) Fixed user= string before user= prefix (i.e. ending in *).
# (5) Longer user= prefix before shorter user= prefix.
# (6) Specified seinfo= string before unspecified seinfo= string.
# (7) Specified name= string before unspecified name= string.
# (8) Specified path= string before unspecified path= string.
# (9) Specified sebool= string before unspecified sebool= string.
#
# Outputs:
# domain (string)
...
...
This diff is collapsed.
Click to expand it.
tools/check_seapp.c
+
1
−
0
View file @
d298354e
...
...
@@ -157,6 +157,7 @@ static policy_info pol = {
key_map
rules
[]
=
{
/*Inputs*/
{
.
name
=
"isSystemServer"
,
.
type
=
dt_bool
,
.
dir
=
dir_in
,
.
data
=
NULL
},
{
.
name
=
"isOwner"
,
.
type
=
dt_bool
,
.
dir
=
dir_in
,
.
data
=
NULL
},
{
.
name
=
"user"
,
.
type
=
dt_string
,
.
dir
=
dir_in
,
.
data
=
NULL
},
{
.
name
=
"seinfo"
,
.
type
=
dt_string
,
.
dir
=
dir_in
,
.
data
=
NULL
},
{
.
name
=
"name"
,
.
type
=
dt_string
,
.
dir
=
dir_in
,
.
data
=
NULL
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment