Skip to content
Snippets Groups Projects
Commit 43cd0cce authored by Nick Kralevich's avatar Nick Kralevich
Browse files

allow shell self:process ptrace;

Allow the non-privileged adb shell user to run strace. Without
this patch, the command "strace /system/bin/ls" fails with the
following error:

  shell@android:/ $ strace /system/bin/ls
  strace: ptrace(PTRACE_TRACEME, ...): Permission denied
  +++ exited with 1 +++

Change-Id: I207fe0f71941bff55dbeb6fe130e636418f333ee
parent 1d2eaf92
No related branches found
No related tags found
No related merge requests found
...@@ -88,6 +88,9 @@ allow shell domain:process getattr; ...@@ -88,6 +88,9 @@ allow shell domain:process getattr;
allow shell bootchart_data_file:dir rw_dir_perms; allow shell bootchart_data_file:dir rw_dir_perms;
allow shell bootchart_data_file:file create_file_perms; allow shell bootchart_data_file:file create_file_perms;
# Make sure strace works for the non-privileged shell user
allow shell self:process ptrace;
# Do not allow shell to hard link to any files. # Do not allow shell to hard link to any files.
# In particular, if shell hard links to app data # In particular, if shell hard links to app data
# files, installd will not be able to guarantee the deletion # files, installd will not be able to guarantee the deletion
......
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