Skip to content
Snippets Groups Projects
Commit 17286c0b authored by Nick Kralevich's avatar Nick Kralevich Committed by Android Git Automerger
Browse files

am f06090af: am 490a7a8a: Merge "neverallow shell file_type:file link"

* commit 'f06090af':
  neverallow shell file_type:file link
parents 76ce37d7 f06090af
No related branches found
No related tags found
No related merge requests found
......@@ -75,3 +75,11 @@ allow shell domain:process getattr;
# and read other files created by init process under /data/bootchart
allow shell bootchart_data_file:dir rw_dir_perms;
allow shell bootchart_data_file:file create_file_perms;
# 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
# of the linked to file. Hard links also contribute to security
# bugs, so we want to ensure the shell user never has this
# capability.
neverallow shell file_type:file link;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment