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
f07a24ff
Commit
f07a24ff
authored
Mar 13, 2015
by
Paul Lawrence
Committed by
Android (Google) Code Review
Mar 13, 2015
Browse files
Options
Downloads
Plain Diff
Merge "Adding e4crypt support"
parents
c3a80643
8138401d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
domain.te
+1
-0
1 addition, 0 deletions
domain.te
file.te
+2
-0
2 additions, 0 deletions
file.te
file_contexts
+1
-0
1 addition, 0 deletions
file_contexts
init.te
+12
-0
12 additions, 0 deletions
init.te
vold.te
+4
-0
4 additions, 0 deletions
vold.te
with
20 additions
and
0 deletions
domain.te
+
1
−
0
View file @
f07a24ff
...
...
@@ -92,6 +92,7 @@ allow domain alarm_device:chr_file r_file_perms;
allow domain urandom_device:chr_file rw_file_perms;
allow domain random_device:chr_file rw_file_perms;
allow domain properties_device:file r_file_perms;
allow domain init:key search;
# logd access
write_logd(domain)
...
...
This diff is collapsed.
Click to expand it.
file.te
+
2
−
0
View file @
f07a24ff
...
...
@@ -49,6 +49,8 @@ type logcat_exec, exec_type, file_type;
type coredump_file, file_type;
# Default type for anything under /data.
type system_data_file, file_type, data_file_type;
# Unencrypted data
type unencrypted_data_file, file_type, data_file_type;
# /data/.layout_version or other installd-created files that
# are created in a system_data_file directory.
type install_data_file, file_type, data_file_type;
...
...
This diff is collapsed.
Click to expand it.
file_contexts
+
1
−
0
View file @
f07a24ff
...
...
@@ -181,6 +181,7 @@
#
/data(/.*)? u:object_r:system_data_file:s0
/data/.layout_version u:object_r:install_data_file:s0
/data/unencrypted(/.*)? u:object_r:unencrypted_data_file:s0
/data/backup(/.*)? u:object_r:backup_data_file:s0
/data/secure/backup(/.*)? u:object_r:backup_data_file:s0
/data/security(/.*)? u:object_r:security_file:s0
...
...
This diff is collapsed.
Click to expand it.
init.te
+
12
−
0
View file @
f07a24ff
...
...
@@ -234,6 +234,18 @@ allow init metadata_block_device:blk_file rw_file_perms;
allow init pstorefs:dir search;
allow init pstorefs:file r_file_perms;
# linux keyring configuration
allow init init:key { write search setattr };
# Allow init to link temp fs to unencrypted data on userdata
allow init tmpfs:lnk_file { create read getattr relabelfrom };
# Allow init to manipulate /data/unencrypted
allow init unencrypted_data_file:{ file lnk_file } create_file_perms;
allow init unencrypted_data_file:dir create_dir_perms;
unix_socket_connect(init, vold, vold)
###
### neverallow rules
###
...
...
This diff is collapsed.
Click to expand it.
vold.te
+
4
−
0
View file @
f07a24ff
...
...
@@ -101,3 +101,7 @@ allow vold userdata_block_device:blk_file rw_file_perms;
# Access metadata block device used for encryption meta-data.
allow vold metadata_block_device:blk_file rw_file_perms;
# Allow init to manipulate /data/unencrypted
allow vold unencrypted_data_file:{ file lnk_file } create_file_perms;
allow vold unencrypted_data_file:dir create_dir_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