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
0f59d0b1
Commit
0f59d0b1
authored
6 years ago
by
Jeff Vander Stoep
Committed by
android-build-merger
6 years ago
Browse files
Options
Downloads
Plain Diff
shell: move shell qtaguid perms to shell.te am:
9d28625f
am:
7a99df89
Change-Id: I577f211e913fd5ad2150a54d6931a810ec58cb43
parents
49733255
7a99df89
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
public/app.te
+1
-4
1 addition, 4 deletions
public/app.te
public/shell.te
+1
-0
1 addition, 0 deletions
public/shell.te
with
2 additions
and
4 deletions
public/app.te
+
1
−
4
View file @
0f59d0b1
...
@@ -174,6 +174,7 @@ userdebug_or_eng(`
...
@@ -174,6 +174,7 @@ userdebug_or_eng(`
allow appdomain heapdump_data_file:file append;
allow appdomain heapdump_data_file:file append;
')
')
r_dir_file({ appdomain -ephemeral_app -isolated_app }, proc_net)
# Write to /proc/net/xt_qtaguid/ctrl file.
# Write to /proc/net/xt_qtaguid/ctrl file.
allow {
allow {
untrusted_app_25
untrusted_app_25
...
@@ -182,9 +183,7 @@ allow {
...
@@ -182,9 +183,7 @@ allow {
priv_app
priv_app
system_app
system_app
platform_app
platform_app
shell
} proc_qtaguid_ctrl:file rw_file_perms;
} proc_qtaguid_ctrl:file rw_file_perms;
r_dir_file({ appdomain -ephemeral_app -isolated_app }, proc_net)
# read /proc/net/xt_qtguid/*stat* to per-app network data usage.
# read /proc/net/xt_qtguid/*stat* to per-app network data usage.
# Exclude isolated app which may not use network sockets.
# Exclude isolated app which may not use network sockets.
r_dir_file({
r_dir_file({
...
@@ -194,7 +193,6 @@ r_dir_file({
...
@@ -194,7 +193,6 @@ r_dir_file({
priv_app
priv_app
system_app
system_app
platform_app
platform_app
shell
}, proc_qtaguid_stat)
}, proc_qtaguid_stat)
# Everybody can read the xt_qtaguid resource tracking misc dev.
# Everybody can read the xt_qtaguid resource tracking misc dev.
# So allow all apps to read from /dev/xt_qtaguid.
# So allow all apps to read from /dev/xt_qtaguid.
...
@@ -205,7 +203,6 @@ allow {
...
@@ -205,7 +203,6 @@ allow {
priv_app
priv_app
system_app
system_app
platform_app
platform_app
shell
} qtaguid_device:chr_file r_file_perms;
} qtaguid_device:chr_file r_file_perms;
# Grant GPU access to all processes started by Zygote.
# Grant GPU access to all processes started by Zygote.
...
...
This diff is collapsed.
Click to expand it.
public/shell.te
+
1
−
0
View file @
0f59d0b1
...
@@ -121,6 +121,7 @@ allow shell {
...
@@ -121,6 +121,7 @@ allow shell {
proc_meminfo
proc_meminfo
proc_modules
proc_modules
proc_pid_max
proc_pid_max
proc_qtaguid_stat
proc_stat
proc_stat
proc_timer
proc_timer
proc_uptime
proc_uptime
...
...
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