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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemSEPolicy
Commits
4d17e2f4
Commit
4d17e2f4
authored
9 years ago
by
Nick Kralevich
Committed by
android-build-merger
9 years ago
Browse files
Options
Downloads
Plain Diff
init.te: allow writing to /sys/kernel/debug/tracing/tracing_on
am:
5beeb81e
* commit '
5beeb81e
': init.te: allow writing to /sys/kernel/debug/tracing/tracing_on
parents
c435b759
5beeb81e
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
init.te
+3
-0
3 additions, 0 deletions
init.te
shell.te
+1
-0
1 addition, 0 deletions
shell.te
with
4 additions
and
0 deletions
init.te
+
3
−
0
View file @
4d17e2f4
...
@@ -108,6 +108,9 @@ allow init { sysfs_type debugfs_type }:{ dir file lnk_file } relabelto;
...
@@ -108,6 +108,9 @@ allow init { sysfs_type debugfs_type }:{ dir file lnk_file } relabelto;
allow init dev_type:dir create_dir_perms;
allow init dev_type:dir create_dir_perms;
allow init dev_type:lnk_file create;
allow init dev_type:lnk_file create;
# Disable tracing by writing to /sys/kernel/debug/tracing/tracing_on
allow init debugfs_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 };
allow init { fs_type -contextmount_type -sdcard_type -rootfs }:dir { open read setattr search };
allow init { fs_type -contextmount_type -sdcard_type -rootfs }:dir { open read setattr search };
...
...
This diff is collapsed.
Click to expand it.
shell.te
+
1
−
0
View file @
4d17e2f4
...
@@ -71,6 +71,7 @@ set_prop(shell, powerctl_prop)
...
@@ -71,6 +71,7 @@ set_prop(shell, powerctl_prop)
# systrace support - allow atrace to run
# systrace support - allow atrace to run
allow shell debugfs_tracing:dir r_dir_perms;
allow shell debugfs_tracing:dir r_dir_perms;
allow shell debugfs_tracing:file rw_file_perms;
allow shell debugfs_tracing:file rw_file_perms;
allow shell debugfs_trace_marker:file getattr;
allow shell atrace_exec:file rx_file_perms;
allow shell atrace_exec:file rx_file_perms;
userdebug_or_eng(`
userdebug_or_eng(`
...
...
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