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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemSEPolicy
Commits
6f4adc57
Commit
6f4adc57
authored
7 years ago
by
Chenbo Feng
Committed by
android-build-merger
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Revert "Remove app access to qtaguid ctrl/stats file"" am:
2904db67
am:
178be151
am:
8f17032d
Change-Id: I5c12f3f6a42c4d9de9870ad58b56b3d755a01133
parents
d1845580
8f17032d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/app.te
+8
-5
8 additions, 5 deletions
public/app.te
with
8 additions
and
5 deletions
public/app.te
+
8
−
5
View file @
6f4adc57
...
@@ -169,7 +169,15 @@ userdebug_or_eng(`
...
@@ -169,7 +169,15 @@ userdebug_or_eng(`
allow appdomain heapdump_data_file:file append;
allow appdomain heapdump_data_file:file append;
')
')
# Write to /proc/net/xt_qtaguid/ctrl file.
allow appdomain qtaguid_proc:file rw_file_perms;
r_dir_file({ appdomain -ephemeral_app -isolated_app }, proc_net)
r_dir_file({ appdomain -ephemeral_app -isolated_app }, proc_net)
# read /proc/net/xt_qtguid/*stat* to per-app network data usage.
# Exclude isolated app which may not use network sockets.
r_dir_file({ appdomain -isolated_app }, proc_qtaguid_stat)
# Everybody can read the xt_qtaguid resource tracking misc dev.
# So allow all apps to read from /dev/xt_qtaguid.
allow { appdomain -isolated_app } 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.
# They need that to render the standard UI.
# They need that to render the standard UI.
...
@@ -542,8 +550,3 @@ neverallow appdomain proc_uid_concurrent_policy_time:file *;
...
@@ -542,8 +550,3 @@ neverallow appdomain proc_uid_concurrent_policy_time:file *;
# Apps cannot access proc_uid_cpupower
# Apps cannot access proc_uid_cpupower
neverallow appdomain proc_uid_cpupower:file *;
neverallow appdomain proc_uid_cpupower:file *;
# Apps cannot access proc/net/xt_qtaguid/ files anymore since P.
neverallow { appdomain -shell } qtaguid_proc:file rw_file_perms;
neverallow { appdomain -shell } proc_qtaguid_stat:{ file lnk_file } r_file_perms;
neverallow { appdomain -shell } qtaguid_device:chr_file r_file_perms;
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