Skip to content
Snippets Groups Projects
Commit 654e9129 authored by Nick Kralevich's avatar Nick Kralevich Committed by android-build-merger
Browse files

shell.te: allow rules before neverallow rules

am: 9c5b4a8a

* commit '9c5b4a8a':
  shell.te: allow rules before neverallow rules
parents fc60f1e4 9c5b4a8a
Branches
Tags
No related merge requests found
......@@ -112,6 +112,14 @@ allow shell bootchart_data_file:file create_file_perms;
# Make sure strace works for the non-privileged shell user
allow shell self:process ptrace;
# Allow access to ion memory allocation device.
allow shell ion_device:chr_file rw_file_perms;
###
### Neverallow rules
###
# Do not allow shell to hard link to any files.
# In particular, if shell hard links to app data
# files, installd will not be able to guarantee the deletion
......@@ -119,6 +127,3 @@ allow shell self:process ptrace;
# bugs, so we want to ensure the shell user never has this
# capability.
neverallow shell file_type:file link;
# Allow access to ion memory allocation device.
allow shell ion_device:chr_file rw_file_perms;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment