Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sepolicy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test
platform
system
sepolicy
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:
# Input selectors:
# isSystemServer (boolean)
# isSystemServer (boolean)
# isOwner (boolean)
# user (string)
# user (string)
# seinfo (string)
# seinfo (string)
# name (string)
# name (string)
...
@@ -7,6 +8,9 @@
...
@@ -7,6 +8,9 @@
# sebool (string)
# sebool (string)
# isSystemServer=true can only be used once.
# isSystemServer=true can only be used once.
# An unspecified isSystemServer defaults to false.
# 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.
# An unspecified string selector will match any value.
# A user string selector that ends in * will perform a prefix match.
# A user string selector that ends in * will perform a prefix match.
# user=_app will match any regular app UID.
# user=_app will match any regular app UID.
...
@@ -16,13 +20,14 @@
...
@@ -16,13 +20,14 @@
#
#
# Precedence rules:
# Precedence rules:
# (1) isSystemServer=true before isSystemServer=false.
# (1) isSystemServer=true before isSystemServer=false.
# (2) Specified user= string before unspecified user= string.
# (2) Specified isOwner= before unspecified isOwner= boolean.
# (3) Fixed user= string before user= prefix (i.e. ending in *).
# (3) Specified user= string before unspecified user= string.
# (4) Longer user= prefix before shorter user= prefix.
# (4) Fixed user= string before user= prefix (i.e. ending in *).
# (5) Specified seinfo= string before unspecified seinfo= string.
# (5) Longer user= prefix before shorter user= prefix.
# (6) Specified name= string before unspecified name= string.
# (6) Specified seinfo= string before unspecified seinfo= string.
# (7) Specified path= string before unspecified path= string.
# (7) Specified name= string before unspecified name= string.
# (8) Specified sebool= string before unspecified sebool= string.
# (8) Specified path= string before unspecified path= string.
# (9) Specified sebool= string before unspecified sebool= string.
#
#
# Outputs:
# Outputs:
# domain (string)
# 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 = {
...
@@ -157,6 +157,7 @@ static policy_info pol = {
key_map
rules
[]
=
{
key_map
rules
[]
=
{
/*Inputs*/
/*Inputs*/
{
.
name
=
"isSystemServer"
,
.
type
=
dt_bool
,
.
dir
=
dir_in
,
.
data
=
NULL
},
{
.
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
=
"user"
,
.
type
=
dt_string
,
.
dir
=
dir_in
,
.
data
=
NULL
},
{
.
name
=
"seinfo"
,
.
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
},
{
.
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