Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sepolicy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test
platform
system
sepolicy
Commits
39e29b6f
Commit
39e29b6f
authored
Jan 8, 2016
by
Johan Redestig
Committed by
android-build-merger
Jan 8, 2016
Browse files
Options
Downloads
Plain Diff
Neverallow isolated and untrusted apps to write system properties am:
0d8e9adf
am:
fc3b0dd3
* commit '
fc3b0dd3
': Neverallow isolated and untrusted apps to write system properties
parents
c00e771c
fc3b0dd3
No related branches found
No related tags found
No related merge requests found
Changes
3
Show 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 @
39e29b6f
...
...
@@ -281,8 +281,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;
...
...
@@ -388,10 +386,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 @
39e29b6f
...
...
@@ -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 @
39e29b6f
...
...
@@ -147,3 +147,7 @@ neverallowxperm untrusted_app domain:{ rawip_socket tcp_socket udp_socket } ioct
# 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