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
89a8ed4e
Commit
89a8ed4e
authored
8 years ago
by
Nick Kralevich
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "fine-grained policy for access to /proc/zoneinfo"
parents
c0937b6e
7078e8b6
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
dumpstate.te
+1
-0
1 addition, 0 deletions
dumpstate.te
file.te
+1
-0
1 addition, 0 deletions
file.te
genfs_contexts
+1
-0
1 addition, 0 deletions
genfs_contexts
lmkd.te
+2
-0
2 additions, 0 deletions
lmkd.te
shell.te
+1
-0
1 addition, 0 deletions
shell.te
with
6 additions
and
0 deletions
dumpstate.te
+
1
−
0
View file @
89a8ed4e
...
@@ -144,3 +144,4 @@ allow dumpstate debugfs_trace_marker:file getattr;
...
@@ -144,3 +144,4 @@ allow dumpstate debugfs_trace_marker:file getattr;
allow dumpstate atrace_exec:file rx_file_perms;
allow dumpstate atrace_exec:file rx_file_perms;
allow dumpstate proc_interrupts:file r_file_perms;
allow dumpstate proc_interrupts:file r_file_perms;
allow dumpstate proc_zoneinfo:file r_file_perms;
This diff is collapsed.
Click to expand it.
file.te
+
1
−
0
View file @
89a8ed4e
...
@@ -22,6 +22,7 @@ type proc_sysrq, fs_type;
...
@@ -22,6 +22,7 @@ type proc_sysrq, fs_type;
type proc_timer, fs_type;
type proc_timer, fs_type;
type proc_uid_cputime_showstat, fs_type;
type proc_uid_cputime_showstat, fs_type;
type proc_uid_cputime_removeuid, fs_type;
type proc_uid_cputime_removeuid, fs_type;
type proc_zoneinfo, fs_type;
type selinuxfs, fs_type, mlstrustedobject;
type selinuxfs, fs_type, mlstrustedobject;
type cgroup, fs_type, mlstrustedobject;
type cgroup, fs_type, mlstrustedobject;
type sysfs, fs_type, sysfs_type, mlstrustedobject;
type sysfs, fs_type, sysfs_type, mlstrustedobject;
...
...
This diff is collapsed.
Click to expand it.
genfs_contexts
+
1
−
0
View file @
89a8ed4e
...
@@ -31,6 +31,7 @@ genfscon proc /timer_list u:object_r:proc_timer:s0
...
@@ -31,6 +31,7 @@ genfscon proc /timer_list u:object_r:proc_timer:s0
genfscon proc /timer_stats u:object_r:proc_timer:s0
genfscon proc /timer_stats u:object_r:proc_timer:s0
genfscon proc /uid_cputime/show_uid_stat u:object_r:proc_uid_cputime_showstat:s0
genfscon proc /uid_cputime/show_uid_stat u:object_r:proc_uid_cputime_showstat:s0
genfscon proc /uid_cputime/remove_uid_range u:object_r:proc_uid_cputime_removeuid:s0
genfscon proc /uid_cputime/remove_uid_range u:object_r:proc_uid_cputime_removeuid:s0
genfscon proc /zoneinfo u:object_r:proc_zoneinfo:s0
# selinuxfs booleans can be individually labeled.
# selinuxfs booleans can be individually labeled.
genfscon selinuxfs / u:object_r:selinuxfs:s0
genfscon selinuxfs / u:object_r:selinuxfs:s0
...
...
This diff is collapsed.
Click to expand it.
lmkd.te
+
2
−
0
View file @
89a8ed4e
...
@@ -32,6 +32,8 @@ allow lmkd cgroup:dir { remove_name rmdir };
...
@@ -32,6 +32,8 @@ allow lmkd cgroup:dir { remove_name rmdir };
# Set self to SCHED_FIFO
# Set self to SCHED_FIFO
allow lmkd self:capability sys_nice;
allow lmkd self:capability sys_nice;
allow lmkd proc_zoneinfo:file r_file_perms;
### neverallow rules
### neverallow rules
# never honor LD_PRELOAD
# never honor LD_PRELOAD
...
...
This diff is collapsed.
Click to expand it.
shell.te
+
1
−
0
View file @
89a8ed4e
...
@@ -93,6 +93,7 @@ allow shell proc_interrupts:file r_file_perms;
...
@@ -93,6 +93,7 @@ allow shell proc_interrupts:file r_file_perms;
allow shell proc_meminfo:file r_file_perms;
allow shell proc_meminfo:file r_file_perms;
allow shell proc_stat:file r_file_perms;
allow shell proc_stat:file r_file_perms;
allow shell proc_timer:file r_file_perms;
allow shell proc_timer:file r_file_perms;
allow shell proc_zoneinfo:file r_file_perms;
r_dir_file(shell, cgroup)
r_dir_file(shell, cgroup)
allow shell domain:dir { search open read getattr };
allow shell domain:dir { search open read getattr };
allow shell domain:{ file lnk_file } { open read getattr };
allow shell domain:{ file lnk_file } { open read getattr };
...
...
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