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
5dfb67d1
Commit
5dfb67d1
authored
11 years ago
by
Nick Kralevich
Committed by
Android Git Automerger
11 years ago
Browse files
Options
Downloads
Plain Diff
am
e5db229e
: am
8d9ef067
: Merge "Remove MAC capabilities from unconfined domains."
* commit '
e5db229e
': Remove MAC capabilities from unconfined domains.
parents
eec70252
e5db229e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
domain.te
+3
-0
3 additions, 0 deletions
domain.te
recovery.te
+2
-0
2 additions, 0 deletions
recovery.te
unconfined.te
+2
-1
2 additions, 1 deletion
unconfined.te
with
7 additions
and
1 deletion
domain.te
+
3
−
0
View file @
5dfb67d1
...
@@ -147,6 +147,9 @@ neverallow { domain -relabeltodomain } *:dir_file_class_set relabelto;
...
@@ -147,6 +147,9 @@ neverallow { domain -relabeltodomain } *:dir_file_class_set relabelto;
### neverallow rules
### neverallow rules
###
###
neverallow domain self:capability2 mac_override;
neverallow { domain -recovery } self:capability2 mac_admin;
# Only init should be able to load SELinux policies.
# Only init should be able to load SELinux policies.
# 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.
...
...
This diff is collapsed.
Click to expand it.
recovery.te
+
2
−
0
View file @
5dfb67d1
...
@@ -4,6 +4,8 @@ allow recovery rootfs:file entrypoint;
...
@@ -4,6 +4,8 @@ allow recovery rootfs:file entrypoint;
unconfined_domain(recovery)
unconfined_domain(recovery)
relabelto_domain(recovery)
relabelto_domain(recovery)
allow recovery self:capability2 mac_admin;
allow recovery {fs_type dev_type -kmem_device file_type}:dir_file_class_set relabelto;
allow recovery {fs_type dev_type -kmem_device file_type}:dir_file_class_set relabelto;
allow recovery unlabeled:filesystem mount;
allow recovery unlabeled:filesystem mount;
...
...
This diff is collapsed.
Click to expand it.
unconfined.te
+
2
−
1
View file @
5dfb67d1
...
@@ -16,7 +16,8 @@
...
@@ -16,7 +16,8 @@
# The use of this template is discouraged.
# The use of this template is discouraged.
######################################################
######################################################
allow unconfineddomain self:capability_class_set *;
allow unconfineddomain self:capability *;
allow unconfineddomain self:capability2 ~{ mac_override mac_admin };
allow unconfineddomain kernel:security ~{ load_policy setenforce setcheckreqprot };
allow unconfineddomain kernel:security ~{ load_policy setenforce setcheckreqprot };
allow unconfineddomain kernel:system *;
allow unconfineddomain kernel:system *;
allow unconfineddomain domain:process ~{ execmem execstack execheap ptrace transition dyntransition };
allow unconfineddomain domain:process ~{ execmem execstack execheap ptrace transition dyntransition };
...
...
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