Allow shell to unlink perfetto_traces_data_file.
Bug: 141704436
Test:
blueline:/ $ ls -lZa /data/misc/perfetto-traces
total 186
drwxrwx-wx 2 root shell u:object_r:perfetto_traces_data_file:s0 3488 2019-09-30 14:12 .
drwxrwx--t 46 system misc u:object_r:system_data_file:s0 3488 2019-09-30 14:08 ..
-rw------- 1 shell shell u:object_r:perfetto_traces_data_file:s0 180467 2019-09-30 14:12 profile-shell
blueline:/ $ rm /data/misc/perfetto-traces/profile-shell
rm ro /data/misc/perfetto-traces/profile-shell (y/N):y
blueline:/ $ ls -lZa /data/misc/perfetto-traces
total 6
drwxrwx-wx 2 root shell u:object_r:perfetto_traces_data_file:s0 3488 2019-09-30 14:13 .
drwxrwx--t 46 system misc u:object_r:system_data_file:s0 3488 2019-09-30 14:08 ..
blueline:/ $
Cherry pick of c069bc134e
Change-Id: Ia710068c3cca53a415347fb0a7064740e500d15d
Merged-In: Ia710068c3cca53a415347fb0a7064740e500d15d
This commit is contained in:
parent
a235dde1cc
commit
d77fec4796
2 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ binder_call(shell, statsd);
|
|||
|
||||
# Allow shell to read and unlink traces stored in /data/misc/perfetto-traces.
|
||||
allow shell perfetto_traces_data_file:dir rw_dir_perms;
|
||||
allow shell perfetto_traces_data_file:file r_file_perms;
|
||||
allow shell perfetto_traces_data_file:file { r_file_perms unlink };
|
||||
|
||||
# Allow shell to run adb shell cmd gpu commands.
|
||||
binder_call(shell, gpuservice);
|
||||
|
|
|
@ -52,7 +52,7 @@ binder_call(shell, statsd);
|
|||
|
||||
# Allow shell to read and unlink traces stored in /data/misc/perfetto-traces.
|
||||
allow shell perfetto_traces_data_file:dir rw_dir_perms;
|
||||
allow shell perfetto_traces_data_file:file r_file_perms;
|
||||
allow shell perfetto_traces_data_file:file { r_file_perms unlink };
|
||||
|
||||
# Allow shell to run adb shell cmd gpu commands.
|
||||
binder_call(shell, gpuservice);
|
||||
|
|
Loading…
Reference in a new issue