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
ba176c5f
Commit
ba176c5f
authored
10 years ago
by
Torne (Richard Coles)
Committed by
Gerrit Code Review
10 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Define SELinux policy for RELRO sharing support."
parents
0cefb701
9786af2b
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
app.te
+4
-0
4 additions, 0 deletions
app.te
file.te
+1
-0
1 addition, 0 deletions
file.te
file_contexts
+1
-0
1 addition, 0 deletions
file_contexts
seapp_contexts
+1
-0
1 addition, 0 deletions
seapp_contexts
shared_relro.te
+10
-0
10 additions, 0 deletions
shared_relro.te
with
17 additions
and
0 deletions
app.te
+
4
−
0
View file @
ba176c5f
...
@@ -133,6 +133,10 @@ allow appdomain dalvikcache_data_file:file execute;
...
@@ -133,6 +133,10 @@ allow appdomain dalvikcache_data_file:file execute;
# /data/dalvik-cache/profiles
# /data/dalvik-cache/profiles
allow appdomain dalvikcache_profiles_data_file:file write;
allow appdomain dalvikcache_profiles_data_file:file write;
# Allow any app to read shared RELRO files.
allow appdomain shared_relro_file:dir search;
allow appdomain shared_relro_file:file r_file_perms;
###
###
### CTS-specific rules
### CTS-specific rules
###
###
...
...
This diff is collapsed.
Click to expand it.
file.te
+
1
−
0
View file @
ba176c5f
...
@@ -75,6 +75,7 @@ type media_data_file, file_type, data_file_type;
...
@@ -75,6 +75,7 @@ type media_data_file, file_type, data_file_type;
type media_rw_data_file, file_type, data_file_type;
type media_rw_data_file, file_type, data_file_type;
type nfc_data_file, file_type, data_file_type;
type nfc_data_file, file_type, data_file_type;
type radio_data_file, file_type, data_file_type;
type radio_data_file, file_type, data_file_type;
type shared_relro_file, file_type, data_file_type;
type systemkeys_data_file, file_type, data_file_type;
type systemkeys_data_file, file_type, data_file_type;
type vpn_data_file, file_type, data_file_type;
type vpn_data_file, file_type, data_file_type;
type wifi_data_file, file_type, data_file_type;
type wifi_data_file, file_type, data_file_type;
...
...
This diff is collapsed.
Click to expand it.
file_contexts
+
1
−
0
View file @
ba176c5f
...
@@ -196,6 +196,7 @@
...
@@ -196,6 +196,7 @@
/data/misc/dhcp(/.*)? u:object_r:dhcp_data_file:s0
/data/misc/dhcp(/.*)? u:object_r:dhcp_data_file:s0
/data/misc/keystore(/.*)? u:object_r:keystore_data_file:s0
/data/misc/keystore(/.*)? u:object_r:keystore_data_file:s0
/data/misc/media(/.*)? u:object_r:media_data_file:s0
/data/misc/media(/.*)? u:object_r:media_data_file:s0
/data/misc/shared_relro(/.*)? u:object_r:shared_relro_file:s0
/data/misc/sms(/.*)? u:object_r:radio_data_file:s0
/data/misc/sms(/.*)? u:object_r:radio_data_file:s0
/data/misc/systemkeys(/.*)? u:object_r:systemkeys_data_file:s0
/data/misc/systemkeys(/.*)? u:object_r:systemkeys_data_file:s0
/data/misc/vpn(/.*)? u:object_r:vpn_data_file:s0
/data/misc/vpn(/.*)? u:object_r:vpn_data_file:s0
...
...
This diff is collapsed.
Click to expand it.
seapp_contexts
+
1
−
0
View file @
ba176c5f
...
@@ -39,6 +39,7 @@ user=system domain=system_app type=system_app_data_file
...
@@ -39,6 +39,7 @@ user=system domain=system_app type=system_app_data_file
user=bluetooth domain=bluetooth type=bluetooth_data_file
user=bluetooth domain=bluetooth type=bluetooth_data_file
user=nfc domain=nfc type=nfc_data_file
user=nfc domain=nfc type=nfc_data_file
user=radio domain=radio type=radio_data_file
user=radio domain=radio type=radio_data_file
user=shared_relro domain=shared_relro
user=shell domain=shell type=shell_data_file
user=shell domain=shell type=shell_data_file
user=_isolated domain=isolated_app
user=_isolated domain=isolated_app
user=_app seinfo=platform domain=platform_app type=app_data_file
user=_app seinfo=platform domain=platform_app type=app_data_file
...
...
This diff is collapsed.
Click to expand it.
shared_relro.te
0 → 100644
+
10
−
0
View file @
ba176c5f
# Process which creates/updates shared RELRO files to be used by other apps.
type shared_relro, domain;
# The shared relro process is a Java program forked from the zygote, so it
# inherits from app to get basic permissions it needs to run.
app_domain(shared_relro)
# Grant write access to the shared relro files/directory.
allow shared_relro shared_relro_file:dir rw_dir_perms;
allow shared_relro shared_relro_file:file create_file_perms;
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