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
f1203bf0
Commit
f1203bf0
authored
9 years ago
by
Jeffrey Vander Stoep
Committed by
Gerrit Code Review
9 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Remove untrusted_app access to cache"
parents
7f09a945
68748c21
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
isolated_app.te
+4
-0
4 additions, 0 deletions
isolated_app.te
untrusted_app.te
+4
-4
4 additions, 4 deletions
untrusted_app.te
with
8 additions
and
4 deletions
isolated_app.te
+
4
−
0
View file @
f1203bf0
...
@@ -46,3 +46,7 @@ neverallow isolated_app {
...
@@ -46,3 +46,7 @@ neverallow isolated_app {
# Isolated apps shouldn't be able to access the driver directly.
# Isolated apps shouldn't be able to access the driver directly.
neverallow isolated_app gpu_device:chr_file { rw_file_perms execute };
neverallow isolated_app gpu_device:chr_file { rw_file_perms execute };
# Do not allow isolated_app access to /cache
neverallow isolated_app cache_file:dir ~{ r_dir_perms };
neverallow isolated_app cache_file:file ~{ read getattr };
This diff is collapsed.
Click to expand it.
untrusted_app.te
+
4
−
4
View file @
f1203bf0
...
@@ -70,10 +70,6 @@ allow untrusted_app media_rw_data_file:file create_file_perms;
...
@@ -70,10 +70,6 @@ allow untrusted_app media_rw_data_file:file create_file_perms;
# TODO: narrow this to just MediaProvider
# TODO: narrow this to just MediaProvider
allow untrusted_app mnt_media_rw_file:dir search;
allow untrusted_app mnt_media_rw_file:dir search;
# Write to /cache.
allow untrusted_app cache_file:dir create_dir_perms;
allow untrusted_app cache_file:file create_file_perms;
allow untrusted_app drmserver_service:service_manager find;
allow untrusted_app drmserver_service:service_manager find;
allow untrusted_app mediaserver_service:service_manager find;
allow untrusted_app mediaserver_service:service_manager find;
allow untrusted_app nfc_service:service_manager find;
allow untrusted_app nfc_service:service_manager find;
...
@@ -151,3 +147,7 @@ neverallow untrusted_app sysfs_mac_address:file no_rw_file_perms;
...
@@ -151,3 +147,7 @@ neverallow untrusted_app sysfs_mac_address:file no_rw_file_perms;
# Do not allow untrusted app to directly open tun_device
# Do not allow untrusted app to directly open tun_device
neverallow untrusted_app tun_device:chr_file open;
neverallow untrusted_app tun_device:chr_file open;
# Do not allow untrusted_app access to /cache
neverallow untrusted_app cache_file:dir ~{ r_dir_perms };
neverallow untrusted_app cache_file:file ~{ 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