Skip to content
Snippets Groups Projects
Commit 4eedec91 authored by Florian Mayer's avatar Florian Mayer Committed by android-build-merger
Browse files

Merge "Allow to signal perfetto from shell." am: b209cb96

am: 2aae2013

Change-Id: I537166115f01c0f67ad0ee70383bfcaad75fe4e0
parents 6b8b1684 2aae2013
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
# This command line client accesses the privileged socket of the traced # This command line client accesses the privileged socket of the traced
# daemon. # daemon.
type perfetto, domain, coredomain;
type perfetto_exec, system_file_type, exec_type, file_type; type perfetto_exec, system_file_type, exec_type, file_type;
tmpfs_domain(perfetto); tmpfs_domain(perfetto);
... ...
......
...@@ -44,6 +44,8 @@ domain_auto_trans(shell, vendor_shell_exec, vendor_shell) ...@@ -44,6 +44,8 @@ domain_auto_trans(shell, vendor_shell_exec, vendor_shell)
# transition into its own domain, so that it behaves consistently to # transition into its own domain, so that it behaves consistently to
# when exec()-d by statsd. # when exec()-d by statsd.
domain_auto_trans(shell, perfetto_exec, perfetto) domain_auto_trans(shell, perfetto_exec, perfetto)
# Allow to send SIGINT to perfetto when daemonized.
allow shell perfetto:process signal;
# Allow shell to run adb shell cmd stats commands. Needed for CTS. # Allow shell to run adb shell cmd stats commands. Needed for CTS.
binder_call(shell, statsd); binder_call(shell, statsd);
... ...
......
...@@ -432,7 +432,9 @@ neverallow { appdomain -shell } { domain -appdomain }:file no_rw_file_perms; ...@@ -432,7 +432,9 @@ neverallow { appdomain -shell } { domain -appdomain }:file no_rw_file_perms;
# sigchld allowed for parent death notification. # sigchld allowed for parent death notification.
# signull allowed for kill(pid, 0) existence test. # signull allowed for kill(pid, 0) existence test.
# All others prohibited. # All others prohibited.
neverallow appdomain { domain -appdomain }:process # -perfetto is to allow shell (which is an appdomain) to kill perfetto
# (see private/shell.te).
neverallow appdomain { domain -appdomain -perfetto }:process
{ sigkill sigstop signal }; { sigkill sigstop signal };
# Write to rootfs. # Write to rootfs.
... ...
......
type perfetto, domain, coredomain;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment