Skip to content
Snippets Groups Projects
Commit 9d6237a8 authored by mukesh agrawal's avatar mukesh agrawal Committed by android-build-merger
Browse files

allow WifiService to use tracing on user builds

am: 723364f1

Change-Id: Icc344f5c6537e394e4888ddc369d9cf3ee2c4c5d
parents 7753ef7a 723364f1
No related branches found
No related tags found
No related merge requests found
......@@ -629,11 +629,9 @@ allow system_server sysfs_leds:file rw_file_perms;
allow system_server sysfs_leds:dir r_dir_perms;
###
userdebug_or_eng(`
# Allow WifiService to start, stop, and read wifi-specific trace events.
allow system_server debugfs_tracing_instances:dir search;
allow system_server debugfs_wifi_tracing:file rw_file_perms;
')
###
### Neverallow rules
......
......@@ -188,12 +188,10 @@ allow init dev_type:lnk_file create;
# Disable tracing by writing to /sys/kernel/debug/tracing/tracing_on
allow init tracing_shell_writable:file w_file_perms;
userdebug_or_eng(`
# Setup and control wifi event tracing (see wifi-events.rc)
allow init debugfs_tracing_instances:dir create_dir_perms;
allow init debugfs_tracing_instances:file w_file_perms;
allow init debugfs_wifi_tracing:file w_file_perms;
')
# chown/chmod on pseudo files.
allow init { fs_type -contextmount_type -sdcard_type -rootfs }:file { open read setattr };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment