Merge "Typedef+rules for SysSer to access persistent block device"

This commit is contained in:
Andres Morales 2014-07-09 23:11:18 +00:00 committed by Gerrit Code Review
commit 2cd9c9bd3f
2 changed files with 8 additions and 0 deletions

View file

@ -64,3 +64,6 @@ type rpmsg_device, dev_type;
# Partition layout block device # Partition layout block device
type root_block_device, dev_type; type root_block_device, dev_type;
# Persistent data block device
type persistent_data_block_device, dev_type;

View file

@ -380,6 +380,11 @@ allow system_server keystore:keystore_key {
clear_uid clear_uid
}; };
# Allow system server to search and write to the persistent data block device
# This block device does not get wiped in a factory reset.
allow system_server persistent_data_block_device:blk_file rw_file_perms;
allow system_server block_device:dir search;
### ###
### Neverallow rules ### Neverallow rules
### ###