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
72126e1b
Commit
72126e1b
authored
7 years ago
by
Sandeep Patil
Committed by
Android (Google) Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "sepolicy: allow access to vndk-stable libs" into oc-dev
parents
df720941
a4768fa8
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
private/file_contexts
+2
-0
2 additions, 0 deletions
private/file_contexts
public/domain.te
+5
-0
5 additions, 0 deletions
public/domain.te
public/file.te
+2
-0
2 additions, 0 deletions
public/file.te
with
9 additions
and
0 deletions
private/file_contexts
+
2
−
0
View file @
72126e1b
...
@@ -266,6 +266,8 @@
...
@@ -266,6 +266,8 @@
/(vendor|system/vendor)/lib(64)?/egl(/.*)? u:object_r:same_process_hal_file:s0
/(vendor|system/vendor)/lib(64)?/egl(/.*)? u:object_r:same_process_hal_file:s0
/(vendor|system/vendor)/lib(64)?/vndk-stable(/.*)? u:object_r:vndk_stable_file:s0
# TODO: b/36790901 move this to /vendor/etc
# TODO: b/36790901 move this to /vendor/etc
/(vendor|system/vendor)/manifest.xml u:object_r:vendor_configs_file:s0
/(vendor|system/vendor)/manifest.xml u:object_r:vendor_configs_file:s0
/(vendor|system/vendor)/app(/.*)? u:object_r:vendor_app_file:s0
/(vendor|system/vendor)/app(/.*)? u:object_r:vendor_app_file:s0
...
...
This diff is collapsed.
Click to expand it.
public/domain.te
+
5
−
0
View file @
72126e1b
...
@@ -119,6 +119,11 @@ allow domain vendor_hal_file:dir r_dir_perms;
...
@@ -119,6 +119,11 @@ allow domain vendor_hal_file:dir r_dir_perms;
allow domain same_process_hal_file:dir r_dir_perms;
allow domain same_process_hal_file:dir r_dir_perms;
allow domain same_process_hal_file:file { execute read open getattr };
allow domain same_process_hal_file:file { execute read open getattr };
# Any process can load vndk-stable libraries, which are system libraries
# used by same process HALs
allow domain vndk_stable_file:dir r_dir_perms;
allow domain vndk_stable_file:file { execute read open getattr };
# All domains get access to /vendor/etc
# All domains get access to /vendor/etc
allow domain vendor_configs_file:dir r_dir_perms;
allow domain vendor_configs_file:dir r_dir_perms;
allow domain vendor_configs_file:file { read open getattr };
allow domain vendor_configs_file:file { read open getattr };
...
...
This diff is collapsed.
Click to expand it.
public/file.te
+
2
−
0
View file @
72126e1b
...
@@ -94,6 +94,8 @@ type vendor_configs_file, vendor_file_type, file_type;
...
@@ -94,6 +94,8 @@ type vendor_configs_file, vendor_file_type, file_type;
# Default type for all *same process* HALs.
# Default type for all *same process* HALs.
# e.g. libEGL_xxx.so, android.hardware.graphics.mapper@2.0-impl.so
# e.g. libEGL_xxx.so, android.hardware.graphics.mapper@2.0-impl.so
type same_process_hal_file, vendor_file_type, file_type;
type same_process_hal_file, vendor_file_type, file_type;
# Default type for vndk-stable libs. /vendor/lib/vndk-stable
type vndk_stable_file, vendor_file_type, file_type;
# Default type for everything in /vendor/framework
# Default type for everything in /vendor/framework
type vendor_framework_file, vendor_file_type, file_type;
type vendor_framework_file, vendor_file_type, file_type;
# Default type for everything in /vendor/overlay
# Default type for everything in /vendor/overlay
...
...
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