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
d7679834
Commit
d7679834
authored
7 years ago
by
Tri Vo
Committed by
android-build-merger
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "shell: neverallow access to 'proc' label." am:
6faa3a1a
am:
51251212
am:
feabf294
Change-Id: Id66b3cd36f5b7306de3684714b22a4ff51842e6f
parents
1262e5fa
feabf294
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
private/domain.te
+0
-1
0 additions, 1 deletion
private/domain.te
public/shell.te
+14
-9
14 additions, 9 deletions
public/shell.te
with
14 additions
and
10 deletions
private/domain.te
+
0
−
1
View file @
d7679834
...
@@ -27,7 +27,6 @@ full_treble_only(`
...
@@ -27,7 +27,6 @@ full_treble_only(`
-dumpstate
-dumpstate
-platform_app
-platform_app
-priv_app
-priv_app
-shell
-system_app
-system_app
-vold
-vold
-vendor_init
-vendor_init
...
...
This diff is collapsed.
Click to expand it.
public/shell.te
+
14
−
9
View file @
d7679834
...
@@ -107,16 +107,21 @@ hwbinder_use(shell)
...
@@ -107,16 +107,21 @@ hwbinder_use(shell)
allow shell hwservicemanager:hwservice_manager list;
allow shell hwservicemanager:hwservice_manager list;
# allow shell to look through /proc/ for lsmod, ps, top, netstat.
# allow shell to look through /proc/ for lsmod, ps, top, netstat.
r_dir_file(shell, proc)
r_dir_file(shell, proc_net)
r_dir_file(shell, proc_net)
allow shell proc_filesystems:file r_file_perms;
allow shell proc_interrupts:file r_file_perms;
allow shell {
allow shell proc_meminfo:file r_file_perms;
proc_asound
allow shell proc_modules:file r_file_perms;
proc_filesystems
allow shell proc_stat:file r_file_perms;
proc_interrupts
allow shell proc_timer:file r_file_perms;
proc_meminfo
allow shell proc_version:file r_file_perms;
proc_modules
allow shell proc_zoneinfo:file r_file_perms;
proc_stat
proc_timer
proc_uptime
proc_version
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