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
bef30f8c
Commit
bef30f8c
authored
9 years ago
by
Nick Kralevich
Committed by
Android Git Automerger
9 years ago
Browse files
Options
Downloads
Plain Diff
am
6d0e9c8f
: init.te: delete kernel load policy support
* commit '
6d0e9c8f
': init.te: delete kernel load policy support
parents
e9ac2d6d
6d0e9c8f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
domain.te
+2
-3
2 additions, 3 deletions
domain.te
with
2 additions
and
3 deletions
domain.te
+
2
−
3
View file @
bef30f8c
...
@@ -209,11 +209,10 @@ neverallow domain self:capability2 mac_override;
...
@@ -209,11 +209,10 @@ neverallow domain self:capability2 mac_override;
# Only recovery needs mac_admin to set contexts not defined in current policy.
# Only recovery needs mac_admin to set contexts not defined in current policy.
neverallow { domain -recovery } self:capability2 mac_admin;
neverallow { domain -recovery } self:capability2 mac_admin;
#
Only init
should be able to load SELinux polic
ies
.
#
Nobody
should be able to load
a new
SELinux polic
y
.
# The first load technically occurs while still in the kernel domain,
# The first load technically occurs while still in the kernel domain,
# but this does not trigger a denial since there is no policy yet.
# but this does not trigger a denial since there is no policy yet.
# Policy reload requires allowing this to the init domain.
neverallow domain kernel:security load_policy;
neverallow { domain -init } kernel:security load_policy;
# Only init and the system_server can set selinux.reload_policy 1
# Only init and the system_server can set selinux.reload_policy 1
# to trigger a policy reload.
# to trigger a policy reload.
...
...
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