]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/system-sepolicy.git/commitdiff
Selinux: Fix perfprofd policy
authorAndreas Gampe <agampe@google.com>
Fri, 30 Mar 2018 20:10:35 +0000 (13:10 -0700)
committerAndreas Gampe <agampe@google.com>
Mon, 2 Apr 2018 15:10:09 +0000 (08:10 -0700)
Update for debugfs labeling changes.

Update for simpleperf behavior with stack traces (temp file).

Bug: 73175642
Test: m
Test: manual - run profiling, look for logs
Change-Id: Ie000a00ef56cc603f498d48d89001f566c03b661

public/perfprofd.te

index 494e75bed50c8def2efc2d507b66e21b5cea6737..f067af5d4a9b5da0c847ef04eadb4324f9b477e8 100644 (file)
@@ -82,10 +82,12 @@ userdebug_or_eng(`
 
   # simpleperf examines debugfs on startup to collect tracepoint event types
   r_dir_file(perfprofd, debugfs_tracing)
-  allow perfprofd debugfs_tracing_debug:file r_file_perms;
+  r_dir_file(perfprofd, debugfs_tracing_debug)
 
   # simpleperf is going to execute "sleep"
   allow perfprofd toolbox_exec:file rx_file_perms;
+  # simpleperf is going to execute "mv" on a temp file
+  allow perfprofd shell_exec:file rx_file_perms;
 
   # needed for simpleperf on some kernels
   allow perfprofd self:global_capability_class_set ipc_lock;