Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
external_sepolicy
Commits
77e85289
Commit
77e85289
authored
11 years ago
by
Jeff Sharkey
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Download
Plain Diff
Merge "Rules to allow installing package directories."
parents
c2ba5ed9
be092af0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
file_contexts
file_contexts
+8
-8
system_server.te
system_server.te
+4
-2
No files found.
file_contexts
View file @
77e85289
...
...
@@ -179,10 +179,10 @@
/data/dalvik-cache(/.*)? u:object_r:dalvikcache_data_file:s0
/data/dalvik-cache/profiles(/.*)? u:object_r:dalvikcache_profiles_data_file:s0
/data/anr(/.*)? u:object_r:anr_data_file:s0
/data/app(/.*)?
u:object_r:apk_data_file:s0
/data/app/vmdl.*\.tmp
u:object_r:apk_tmp_file:s0
/data/app-private(/.*)?
u:object_r:apk_private_data_file:s0
/data/app-private/vmdl.*\.tmp
u:object_r:apk_private_tmp_file:s0
/data/app(/.*)?
u:object_r:apk_data_file:s0
/data/app/vmdl.*\.tmp
(/.*)?
u:object_r:apk_tmp_file:s0
/data/app-private(/.*)?
u:object_r:apk_private_data_file:s0
/data/app-private/vmdl.*\.tmp
(/.*)?
u:object_r:apk_private_tmp_file:s0
/data/tombstones(/.*)? u:object_r:tombstone_data_file:s0
/data/local/tmp(/.*)? u:object_r:shell_data_file:s0
/data/media(/.*)? u:object_r:media_rw_data_file:s0
...
...
@@ -236,7 +236,7 @@
#############################
# asec containers
/mnt/asec(/.*)? u:object_r:asec_apk_file:s0
/mnt/asec/[^/]+/
res
\.zip
u:object_r:asec_public_file:s0
/mnt/asec/[^/]+/lib(/.*)? u:object_r:asec_public_file:s0
/data/app-asec(/.*)? u:object_r:asec_image_file:s0
/mnt/asec(/.*)?
u:object_r:asec_apk_file:s0
/mnt/asec/[^/]+/
[^/]+
\.zip u:object_r:asec_public_file:s0
/mnt/asec/[^/]+/lib(/.*)?
u:object_r:asec_public_file:s0
/data/app-asec(/.*)?
u:object_r:asec_image_file:s0
This diff is collapsed.
Click to expand it.
system_server.te
View file @
77e85289
...
...
@@ -171,11 +171,13 @@ allow system_server system_data_file:notdevfile_class_set create_file_perms;
# Manage /data/app.
allow system_server apk_data_file:dir create_dir_perms;
allow system_server apk_data_file:file create_file_perms;
allow system_server apk_tmp_file:dir create_dir_perms;
allow system_server apk_tmp_file:file create_file_perms;
# Manage /data/app-private.
allow system_server apk_private_data_file:dir create_dir_perms;
allow system_server apk_private_data_file:file create_file_perms;
allow system_server apk_private_tmp_file:dir create_dir_perms;
allow system_server apk_private_tmp_file:file create_file_perms;
# Manage files within asec containers.
...
...
@@ -252,8 +254,8 @@ allow system_server media_rw_data_file:file { getattr read write };
security_access_policy(system_server)
# Relabel apk files.
allow system_server { apk_tmp_file apk_private_tmp_file }:file { relabelfrom relabelto };
allow system_server { apk_data_file apk_private_data_file }:file { relabelfrom relabelto };
allow system_server { apk_tmp_file apk_private_tmp_file }:
{ dir
file
}
{ relabelfrom relabelto };
allow system_server { apk_data_file apk_private_data_file }:
{ dir
file
}
{ relabelfrom relabelto };
# Relabel wallpaper.
allow system_server system_data_file:file relabelfrom;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment