Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemSEPolicy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemSEPolicy
Commits
c24962c4
Commit
c24962c4
authored
8 years ago
by
mukesh agrawal
Committed by
android-build-merger
8 years ago
Browse files
Options
Downloads
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
private/system_server.te
+3
-5
3 additions, 5 deletions
private/system_server.te
public/init.te
+4
-6
4 additions, 6 deletions
public/init.te
with
7 additions
and
11 deletions
private/system_server.te
+
3
−
5
View file @
c24962c4
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
public/init.te
+
4
−
6
View file @
c24962c4
...
@@ -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 };
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment