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
84a81d1e
Commit
84a81d1e
authored
11 years ago
by
Nick Kralevich
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Restrict ability to set checkreqprot."
parents
c0493c8d
8b51674b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
domain.te
+1
-1
1 addition, 1 deletion
domain.te
kernel.te
+3
-0
3 additions, 0 deletions
kernel.te
unconfined.te
+1
-1
1 addition, 1 deletion
unconfined.te
with
5 additions
and
2 deletions
domain.te
+
1
−
1
View file @
84a81d1e
...
@@ -148,7 +148,7 @@ neverallow { domain -init } kernel:security load_policy;
...
@@ -148,7 +148,7 @@ neverallow { domain -init } kernel:security load_policy;
# init starts in kernel domain and switches to init domain via setcon in
# init starts in kernel domain and switches to init domain via setcon in
# the init.rc, so the setenforce occurs while still in kernel. After
# the init.rc, so the setenforce occurs while still in kernel. After
# switching domains, there is never any need to setenforce again by init.
# switching domains, there is never any need to setenforce again by init.
neverallow { domain -kernel } kernel:security setenforce;
neverallow { domain -kernel } kernel:security
{
setenforce
setcheckreqprot }
;
# Only init, ueventd and system_server should be able to access HW RNG
# Only init, ueventd and system_server should be able to access HW RNG
neverallow { domain -init -system_server -ueventd -unconfineddomain } hw_random_device:chr_file *;
neverallow { domain -init -system_server -ueventd -unconfineddomain } hw_random_device:chr_file *;
...
...
This diff is collapsed.
Click to expand it.
kernel.te
+
3
−
0
View file @
84a81d1e
...
@@ -9,3 +9,6 @@ allow kernel unlabeled:filesystem mount;
...
@@ -9,3 +9,6 @@ allow kernel unlabeled:filesystem mount;
# Initial setenforce by init prior to switching to init domain.
# Initial setenforce by init prior to switching to init domain.
allow kernel self:security setenforce;
allow kernel self:security setenforce;
# Set checkreqprot by init.rc prior to switching to init domain.
allow kernel self:security setcheckreqprot;
This diff is collapsed.
Click to expand it.
unconfined.te
+
1
−
1
View file @
84a81d1e
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
######################################################
######################################################
allow unconfineddomain self:capability_class_set *;
allow unconfineddomain self:capability_class_set *;
allow unconfineddomain kernel:security ~{ load_policy setenforce };
allow unconfineddomain kernel:security ~{ load_policy setenforce
setcheckreqprot
};
allow unconfineddomain kernel:system *;
allow unconfineddomain kernel:system *;
allow unconfineddomain domain:process ~ptrace;
allow unconfineddomain domain:process ~ptrace;
allow unconfineddomain domain:fd *;
allow unconfineddomain domain:fd *;
...
...
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