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
7ea7f12d
Commit
7ea7f12d
authored
6 years ago
by
android-build-team Robot
Committed by
Android (Google) Code Review
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Allow system server to record its own profile" into pi-dev
parents
d018b5ce
035fcc46
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
prebuilts/api/28.0/private/system_server.te
+6
-1
6 additions, 1 deletion
prebuilts/api/28.0/private/system_server.te
private/system_server.te
+6
-1
6 additions, 1 deletion
private/system_server.te
with
12 additions
and
2 deletions
prebuilts/api/28.0/private/system_server.te
+
6
−
1
View file @
7ea7f12d
...
@@ -772,9 +772,14 @@ allow system_server netd:bpf map_read;
...
@@ -772,9 +772,14 @@ allow system_server netd:bpf map_read;
# Allow system_server to open profile snapshots for read.
# Allow system_server to open profile snapshots for read.
# System server never reads the actual content. It passes the descriptor to
# System server never reads the actual content. It passes the descriptor to
# to privileged apps which acquire the permissions to inspect the profiles.
# to privileged apps which acquire the permissions to inspect the profiles.
allow system_server user_profile_data_file:dir { search };
allow system_server user_profile_data_file:dir {
getattr
search };
allow system_server user_profile_data_file:file { getattr open read };
allow system_server user_profile_data_file:file { getattr open read };
# On userdebug build we may profile system server. Allow it to write and create its own profile.
userdebug_or_eng(`
allow system_server user_profile_data_file:file create_file_perms;
')
userdebug_or_eng(`
userdebug_or_eng(`
# Allow system server to notify mediaextractor of the plugin update.
# Allow system server to notify mediaextractor of the plugin update.
allow system_server mediaextractor_update_service:service_manager find;
allow system_server mediaextractor_update_service:service_manager find;
...
...
This diff is collapsed.
Click to expand it.
private/system_server.te
+
6
−
1
View file @
7ea7f12d
...
@@ -772,9 +772,14 @@ allow system_server netd:bpf map_read;
...
@@ -772,9 +772,14 @@ allow system_server netd:bpf map_read;
# Allow system_server to open profile snapshots for read.
# Allow system_server to open profile snapshots for read.
# System server never reads the actual content. It passes the descriptor to
# System server never reads the actual content. It passes the descriptor to
# to privileged apps which acquire the permissions to inspect the profiles.
# to privileged apps which acquire the permissions to inspect the profiles.
allow system_server user_profile_data_file:dir { search };
allow system_server user_profile_data_file:dir {
getattr
search };
allow system_server user_profile_data_file:file { getattr open read };
allow system_server user_profile_data_file:file { getattr open read };
# On userdebug build we may profile system server. Allow it to write and create its own profile.
userdebug_or_eng(`
allow system_server user_profile_data_file:file create_file_perms;
')
userdebug_or_eng(`
userdebug_or_eng(`
# Allow system server to notify mediaextractor of the plugin update.
# Allow system server to notify mediaextractor of the plugin update.
allow system_server mediaextractor_update_service:service_manager find;
allow system_server mediaextractor_update_service:service_manager find;
...
...
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