Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sepolicy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test
platform
system
sepolicy
Commits
41ddb80c
Commit
41ddb80c
authored
6 years ago
by
Lalit Maganti
Committed by
Gerrit Code Review
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge "sepolicy: add rules for traced_probes to capture stderr and kill atrace on timeout"
parents
0f3decf2
d6ae1a5e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
private/atrace.te
+5
-0
5 additions, 0 deletions
private/atrace.te
private/traced_probes.te
+2
-3
2 additions, 3 deletions
private/traced_probes.te
with
7 additions
and
3 deletions
private/atrace.te
+
5
−
0
View file @
41ddb80c
...
@@ -13,6 +13,11 @@ allow atrace debugfs_tracing:dir r_dir_perms;
...
@@ -13,6 +13,11 @@ allow atrace debugfs_tracing:dir r_dir_perms;
allow atrace debugfs_tracing:file rw_file_perms;
allow atrace debugfs_tracing:file rw_file_perms;
allow atrace debugfs_trace_marker:file getattr;
allow atrace debugfs_trace_marker:file getattr;
# Allow atrace to write data when a pipe is used for stdout/stderr
# This is used by Perfetto to capture the output on error in atrace.
allow atrace traced_probes:fd use;
allow atrace traced_probes:fifo_file write;
# atrace sets debug.atrace.* properties
# atrace sets debug.atrace.* properties
set_prop(atrace, debug_prop)
set_prop(atrace, debug_prop)
...
...
This diff is collapsed.
Click to expand it.
private/traced_probes.te
+
2
−
3
View file @
41ddb80c
...
@@ -53,9 +53,8 @@ allow traced_probes user_profile_data_file:dir { getattr open read search };
...
@@ -53,9 +53,8 @@ allow traced_probes user_profile_data_file:dir { getattr open read search };
# their userspace TRACE macros.
# their userspace TRACE macros.
domain_auto_trans(traced_probes, atrace_exec, atrace);
domain_auto_trans(traced_probes, atrace_exec, atrace);
# This is needed for: path="/system/bin/linker64"
# Allow traced_probes to kill atrace on timeout.
# scontext=u:r:atrace:s0 tcontext=u:r:traced_probes:s0 tclass=fd
allow traced_probes atrace:process sigkill;
allow atrace traced_probes:fd use;
# Allow traced_probes to access /proc files for system stats.
# Allow traced_probes to access /proc files for system stats.
# Note: trace data is NOT exposed to anything other than shell and privileged
# Note: trace data is NOT exposed to anything other than shell and privileged
...
...
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