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
1cf57199
Commit
1cf57199
authored
8 years ago
by
Nick Kralevich
Committed by
android-build-merger
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "fine-grained policy for access to /proc/zoneinfo" am:
89a8ed4e
am:
9cb9c4bd
Change-Id: I1b8dc30e19617d9081219d38e417c4157dd88be1
parents
b5396d98
9cb9c4bd
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 @
1cf57199
...
...
@@ -174,3 +174,4 @@ allow dumpstate atrace_exec:file rx_file_perms;
# accesses to the underlying FS.
allow dumpstate media_rw_data_file:dir getattr;
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 @
1cf57199
...
...
@@ -22,6 +22,7 @@ type proc_sysrq, fs_type;
type proc_timer, fs_type;
type proc_uid_cputime_showstat, fs_type;
type proc_uid_cputime_removeuid, fs_type;
type proc_zoneinfo, fs_type;
type selinuxfs, fs_type, mlstrustedobject;
type cgroup, fs_type, mlstrustedobject;
type sysfs, fs_type, sysfs_type, mlstrustedobject;
...
...
This diff is collapsed.
Click to expand it.
genfs_contexts
+
1
−
0
View file @
1cf57199
...
...
@@ -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 /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 /zoneinfo u:object_r:proc_zoneinfo:s0
# selinuxfs booleans can be individually labeled.
genfscon selinuxfs / u:object_r:selinuxfs:s0
...
...
This diff is collapsed.
Click to expand it.
lmkd.te
+
2
−
0
View file @
1cf57199
...
...
@@ -34,6 +34,8 @@ allow lmkd cgroup:dir { remove_name rmdir };
# Set self to SCHED_FIFO
allow lmkd self:capability sys_nice;
allow lmkd proc_zoneinfo:file r_file_perms;
### neverallow rules
# never honor LD_PRELOAD
...
...
This diff is collapsed.
Click to expand it.
shell.te
+
1
−
0
View file @
1cf57199
...
...
@@ -100,6 +100,7 @@ allow shell proc_interrupts:file r_file_perms;
allow shell proc_meminfo:file r_file_perms;
allow shell proc_stat: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)
allow shell domain:dir { search 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