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
b827155c
Commit
b827155c
authored
7 years ago
by
Sandeep Patil
Committed by
android-build-merger
7 years ago
Browse files
Options
Downloads
Plain Diff
Add label for kernel test files and executables am:
34e35e9e
am:
bf01e8e1
am:
d044177a
Change-Id: I2c84e9a6252e5cb2c85ec1e50f9e2583f3fb9027
parents
b2a679f9
d044177a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
private/file_contexts
+1
-0
1 addition, 0 deletions
private/file_contexts
public/domain.te
+3
-1
3 additions, 1 deletion
public/domain.te
public/init.te
+5
-0
5 additions, 0 deletions
public/init.te
public/kernel.te
+1
-0
1 addition, 0 deletions
public/kernel.te
with
10 additions
and
1 deletion
private/file_contexts
+
1
−
0
View file @
b827155c
...
...
@@ -363,6 +363,7 @@
/data/tombstones(/.*)? u:object_r:tombstone_data_file:s0
/data/vendor/tombstones/wifi(/.*)? u:object_r:tombstone_wifi_data_file:s0
/data/local/tmp(/.*)? u:object_r:shell_data_file:s0
/data/local/tmp/ltp(/.*)? u:object_r:nativetest_data_file:s0
/data/local/traces(/.*)? u:object_r:trace_data_file:s0
/data/media(/.*)? u:object_r:media_rw_data_file:s0
/data/mediadrm(/.*)? u:object_r:media_data_file:s0
...
...
This diff is collapsed.
Click to expand it.
public/domain.te
+
3
−
1
View file @
b827155c
...
...
@@ -452,6 +452,9 @@ neverallow {
-apk_data_file
}:file no_x_file_perms;
# The test files and executables MUST not be accessible to any domain
neverallow domain nativetest_data_file:file_class_set no_w_file_perms;
neverallow domain nativetest_data_file:dir no_w_dir_perms;
neverallow { domain userdebug_or_eng(`-shell') } nativetest_data_file:file no_x_file_perms;
# Only the init property service should write to /data/property and /dev/__properties__
...
...
@@ -1182,7 +1185,6 @@ neverallow {
userdebug_or_eng(`-uncrypt')
} shell_data_file:file open;
# servicemanager and vndservicemanager are the only processes which handle the
# service_manager list request
neverallow * ~{
...
...
This diff is collapsed.
Click to expand it.
public/init.te
+
5
−
0
View file @
b827155c
...
...
@@ -138,6 +138,7 @@ allow init {
-app_data_file
-exec_type
-misc_logd_file
-nativetest_data_file
-system_app_data_file
-system_file
-vendor_file_type
...
...
@@ -149,6 +150,7 @@ allow init {
-exec_type
-keystore_data_file
-misc_logd_file
-nativetest_data_file
-shell_data_file
-system_app_data_file
-system_file
...
...
@@ -163,6 +165,7 @@ allow init {
-exec_type
-keystore_data_file
-misc_logd_file
-nativetest_data_file
-shell_data_file
-system_app_data_file
-system_file
...
...
@@ -176,6 +179,7 @@ allow init {
-exec_type
-keystore_data_file
-misc_logd_file
-nativetest_data_file
-shell_data_file
-system_app_data_file
-system_file
...
...
@@ -189,6 +193,7 @@ allow init {
-exec_type
-keystore_data_file
-misc_logd_file
-nativetest_data_file
-shell_data_file
-system_app_data_file
-system_file
...
...
This diff is collapsed.
Click to expand it.
public/kernel.te
+
1
−
0
View file @
b827155c
...
...
@@ -66,6 +66,7 @@ allow kernel app_data_file:file read;
allow kernel asec_image_file:file read;
# Allow reading loop device in update_engine_unittests. (b/28319454)
# and for LTP kernel tests (b/73220071)
userdebug_or_eng(`
allow kernel update_engine_data_file:file read;
allow kernel nativetest_data_file:file read;
...
...
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