Skip to content
Snippets Groups Projects
Commit c24962c4 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

am: 9d6237a8

Change-Id: Ia369d26adeb07495beaf406055f6a4689acd54ab
parents 5e625a4c 9d6237a8
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; ...@@ -629,11 +629,9 @@ allow system_server sysfs_leds:file rw_file_perms;
allow system_server sysfs_leds:dir r_dir_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 WifiService to start, stop, and read wifi-specific trace events. allow system_server debugfs_tracing_instances:dir search;
allow system_server debugfs_tracing_instances:dir search; allow system_server debugfs_wifi_tracing:file rw_file_perms;
allow system_server debugfs_wifi_tracing:file rw_file_perms;
')
### ###
### Neverallow rules ### Neverallow rules
......
...@@ -188,12 +188,10 @@ allow init dev_type:lnk_file create; ...@@ -188,12 +188,10 @@ allow init dev_type:lnk_file create;
# Disable tracing by writing to /sys/kernel/debug/tracing/tracing_on # Disable tracing by writing to /sys/kernel/debug/tracing/tracing_on
allow init tracing_shell_writable:file w_file_perms; allow init tracing_shell_writable:file w_file_perms;
userdebug_or_eng(` # Setup and control wifi event tracing (see wifi-events.rc)
# Setup and control wifi event tracing (see wifi-events.rc) allow init debugfs_tracing_instances:dir create_dir_perms;
allow init debugfs_tracing_instances:dir create_dir_perms; allow init debugfs_tracing_instances:file w_file_perms;
allow init debugfs_tracing_instances:file w_file_perms; allow init debugfs_wifi_tracing:file w_file_perms;
allow init debugfs_wifi_tracing:file w_file_perms;
')
# chown/chmod on pseudo files. # chown/chmod on pseudo files.
allow init { fs_type -contextmount_type -sdcard_type -rootfs }:file { open read setattr }; 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.
Finish editing this message first!
Please register or to comment