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
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test
platform
system
sepolicy
Commits
3026dc73
Commit
3026dc73
authored
Oct 13, 2018
by
Tri Vo
Committed by
android-build-merger
Oct 13, 2018
Browse files
Options
Downloads
Plain Diff
Audit access to same_process_hal_file.
am:
81ade3dd
Change-Id: Ie3437cd699d16cbf72fca61c5646800d90feaa2a
parents
71512730
81ade3dd
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
private/isolated_app.te
+6
-0
6 additions, 0 deletions
private/isolated_app.te
public/domain.te
+15
-0
15 additions, 0 deletions
public/domain.te
with
21 additions
and
0 deletions
private/isolated_app.te
+
6
−
0
View file @
3026dc73
...
@@ -47,6 +47,12 @@ allow isolated_app webview_zygote_tmpfs:file read;
...
@@ -47,6 +47,12 @@ allow isolated_app webview_zygote_tmpfs:file read;
# suppress denials to /data/local/tmp
# suppress denials to /data/local/tmp
dontaudit isolated_app shell_data_file:dir search;
dontaudit isolated_app shell_data_file:dir search;
# TODO(b/37211678): give isolated_app explicit access to same_process_hal_file
# if needed.
userdebug_or_eng(`
auditallow isolated_app same_process_hal_file:file *;
')
# Write app-specific trace data to the Perfetto traced damon. This requires
# Write app-specific trace data to the Perfetto traced damon. This requires
# connecting to its producer socket and obtaining a (per-process) tmpfs fd.
# connecting to its producer socket and obtaining a (per-process) tmpfs fd.
allow isolated_app traced:fd use;
allow isolated_app traced:fd use;
...
...
This diff is collapsed.
Click to expand it.
public/domain.te
+
15
−
0
View file @
3026dc73
...
@@ -188,7 +188,22 @@ allow domain vendor_hal_file:dir r_dir_perms;
...
@@ -188,7 +188,22 @@ allow domain vendor_hal_file:dir r_dir_perms;
# Everyone can read and execute all same process HALs
# Everyone can read and execute all same process HALs
allow domain same_process_hal_file:dir r_dir_perms;
allow domain same_process_hal_file:dir r_dir_perms;
# TODO(b/37211678): whitelist domains that actually need same process HALs.
allow domain same_process_hal_file:file { execute read open getattr map };
allow domain same_process_hal_file:file { execute read open getattr map };
# Touching same_process_hal_file indicates usage of SP-HALs or abuse of
# same_process_hal_file label, which is what we are interested in.
userdebug_or_eng(`
auditallow {
coredomain
-zygote
-hal_allocator_client
# Graphics mapper clients.
-hal_graphics_allocator_client
# Renderscript clients include { system_server appdomain -isolated_app }.
-appdomain
-system_server
} same_process_hal_file:file *;
')
# Any process can load vndk-sp libraries, which are system libraries
# Any process can load vndk-sp libraries, which are system libraries
# used by same process HALs
# used by same process HALs
...
...
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