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
5f34265c
Commit
5f34265c
authored
9 years ago
by
Jeff Vander Stoep
Committed by
Android Git Automerger
9 years ago
Browse files
Options
Downloads
Plain Diff
am
a910a287
: Remove untrusted_app access to tmp apk files
* commit '
a910a287
': Remove untrusted_app access to tmp apk files
parents
e9aaae4f
a910a287
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
app.te
+4
-0
4 additions, 0 deletions
app.te
untrusted_app.te
+0
-4
0 additions, 4 deletions
untrusted_app.te
with
4 additions
and
4 deletions
app.te
+
4
−
0
View file @
5f34265c
...
@@ -344,6 +344,10 @@ neverallow appdomain
...
@@ -344,6 +344,10 @@ neverallow appdomain
dhcp_data_file:dir_file_class_set
dhcp_data_file:dir_file_class_set
{ create write setattr relabelfrom relabelto append unlink link rename };
{ create write setattr relabelfrom relabelto append unlink link rename };
# access tmp apk files
neverallow { appdomain -platform_app -priv_app }
{ apk_tmp_file apk_private_tmp_file }:dir_file_class_set *;
# Access to factory files.
# Access to factory files.
neverallow appdomain efs_file:dir_file_class_set write;
neverallow appdomain efs_file:dir_file_class_set write;
neverallow { appdomain -shell } efs_file:dir_file_class_set read;
neverallow { appdomain -shell } efs_file:dir_file_class_set read;
...
...
This diff is collapsed.
Click to expand it.
untrusted_app.te
+
0
−
4
View file @
5f34265c
...
@@ -80,10 +80,6 @@ allow untrusted_app radio_service:service_manager find;
...
@@ -80,10 +80,6 @@ allow untrusted_app radio_service:service_manager find;
allow untrusted_app surfaceflinger_service:service_manager find;
allow untrusted_app surfaceflinger_service:service_manager find;
allow untrusted_app app_api_service:service_manager find;
allow untrusted_app app_api_service:service_manager find;
# Allow verifier to access staged apks.
allow untrusted_app { apk_tmp_file apk_private_tmp_file }:dir r_dir_perms;
allow untrusted_app { apk_tmp_file apk_private_tmp_file }:file r_file_perms;
# only allow unprivileged socket ioctl commands
# only allow unprivileged socket ioctl commands
allow untrusted_app self:{ rawip_socket tcp_socket udp_socket } unpriv_sock_ioctls;
allow untrusted_app self:{ rawip_socket tcp_socket udp_socket } unpriv_sock_ioctls;
...
...
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