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
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test
platform
system
sepolicy
Commits
8d9ef067
Commit
8d9ef067
authored
Jan 31, 2014
by
Nick Kralevich
Committed by
Gerrit Code Review
Jan 31, 2014
Browse files
Options
Downloads
Plain Diff
Merge "Remove MAC capabilities from unconfined domains."
parents
0cbf06fd
04ee5dfb
No related branches found
No related tags found
No related merge requests found
Changes
3
Show 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 @
8d9ef067
...
@@ -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 @
8d9ef067
...
@@ -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 @
8d9ef067
...
@@ -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