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
e923f65a
Commit
e923f65a
authored
10 years ago
by
Stephen Smalley
Committed by
Android Git Automerger
10 years ago
Browse files
Options
Downloads
Plain Diff
am
206b1a6c
: Define specific block device types for system and recovery partitions.
* commit '
206b1a6c
': Define specific block device types for system and recovery partitions.
parents
f6a0ca25
206b1a6c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
device.te
+6
-0
6 additions, 0 deletions
device.te
domain.te
+6
-0
6 additions, 0 deletions
domain.te
install_recovery.te
+2
-0
2 additions, 0 deletions
install_recovery.te
with
14 additions
and
0 deletions
device.te
+
6
−
0
View file @
e923f65a
...
@@ -68,6 +68,12 @@ type root_block_device, dev_type;
...
@@ -68,6 +68,12 @@ type root_block_device, dev_type;
# factory reset protection block device
# factory reset protection block device
type frp_block_device, dev_type;
type frp_block_device, dev_type;
# System block device mounted on /system.
type system_block_device, dev_type;
# Recovery block device.
type recovery_block_device, dev_type;
# Userdata block device mounted on /data.
# Userdata block device mounted on /data.
type userdata_block_device, dev_type;
type userdata_block_device, dev_type;
...
...
This diff is collapsed.
Click to expand it.
domain.te
+
6
−
0
View file @
e923f65a
...
@@ -318,3 +318,9 @@ neverallow domain default_android_service:service_manager add;
...
@@ -318,3 +318,9 @@ neverallow domain default_android_service:service_manager add;
neverallow { domain -init } default_prop:property_service set;
neverallow { domain -init } default_prop:property_service set;
neverallow { domain -init -recovery -system_server } frp_block_device:blk_file rw_file_perms;
neverallow { domain -init -recovery -system_server } frp_block_device:blk_file rw_file_perms;
# No domain other than recovery can write to system.
neverallow { domain -recovery } system_block_device:blk_file write;
# No domains other than install_recovery or recovery can write to recovery.
neverallow { domain -install_recovery -recovery } recovery_block_device:blk_file write;
This diff is collapsed.
Click to expand it.
install_recovery.te
+
2
−
0
View file @
e923f65a
...
@@ -18,6 +18,8 @@ allow install_recovery system_file:file rx_file_perms;
...
@@ -18,6 +18,8 @@ allow install_recovery system_file:file rx_file_perms;
# create an appropriate label for it.
# create an appropriate label for it.
allow install_recovery block_device:dir search;
allow install_recovery block_device:dir search;
allow install_recovery block_device:blk_file rw_file_perms;
allow install_recovery block_device:blk_file rw_file_perms;
auditallow install_recovery block_device:blk_file rw_file_perms;
allow install_recovery recovery_block_device:blk_file rw_file_perms;
# Create and delete /cache/saved.file
# Create and delete /cache/saved.file
allow install_recovery cache_file:dir rw_dir_perms;
allow install_recovery cache_file:dir rw_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