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
fc3b0dd3
Commit
fc3b0dd3
authored
9 years ago
by
Johan Redestig
Committed by
android-build-merger
9 years ago
Browse files
Options
Downloads
Plain Diff
Neverallow isolated and untrusted apps to write system properties
am:
0d8e9adf
* commit '
0d8e9adf
': Neverallow isolated and untrusted apps to write system properties
parents
937fbd41
0d8e9adf
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app.te
+0
-6
0 additions, 6 deletions
app.te
isolated_app.te
+4
-0
4 additions, 0 deletions
isolated_app.te
untrusted_app.te
+4
-0
4 additions, 0 deletions
untrusted_app.te
with
8 additions
and
6 deletions
app.te
+
0
−
6
View file @
fc3b0dd3
...
...
@@ -278,8 +278,6 @@ neverallow appdomain socket_device:sock_file write;
# Unix domain sockets.
neverallow appdomain adbd_socket:sock_file write;
neverallow appdomain installd_socket:sock_file write;
neverallow { appdomain -bluetooth -radio -shell -system_app -nfc }
property_socket:sock_file write;
neverallow { appdomain -radio } rild_socket:sock_file write;
neverallow appdomain vold_socket:sock_file write;
neverallow appdomain zygote_socket:sock_file write;
...
...
@@ -385,10 +383,6 @@ neverallow { appdomain -system_app -shell }
# i.e. no mount(2), unmount(2), etc.
neverallow appdomain fs_type:filesystem ~getattr;
# Ability to set system properties.
neverallow { appdomain -system_app -radio -shell -bluetooth -nfc }
property_type:property_service set;
# prevent creation/manipulation of globally readable symlinks
neverallow appdomain {
apk_data_file
...
...
This diff is collapsed.
Click to expand it.
isolated_app.te
+
4
−
0
View file @
fc3b0dd3
...
...
@@ -29,6 +29,10 @@ allow isolated_app self:process ptrace;
##### Neverallow
#####
# Do not allow isolated_app to set system properties.
neverallow isolated_app property_socket:sock_file write;
neverallow isolated_app property_type:property_service set;
# Isolated apps should not directly open app data files themselves.
neverallow isolated_app app_data_file:file open;
...
...
This diff is collapsed.
Click to expand it.
untrusted_app.te
+
4
−
0
View file @
fc3b0dd3
...
...
@@ -142,3 +142,7 @@ neverallow untrusted_app sysfs_mac_address:file no_rw_file_perms;
# Do not allow untrusted_app access to /cache
neverallow untrusted_app { cache_file cache_recovery_file }:dir ~{ r_dir_perms };
neverallow untrusted_app { cache_file cache_recovery_file }:file ~{ read getattr };
# Do not allow untrusted_app to set system properties.
neverallow untrusted_app property_socket:sock_file write;
neverallow untrusted_app property_type:property_service set;
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