Skip to content
Snippets Groups Projects
Commit d8447fdf authored by Andres Morales's avatar Andres Morales
Browse files

Typedef+rules for SysSer to access persistent block device

Defines new device type persistent_data_block_device

This block device will allow storage of data that
will live across factory resets.

Gives rw and search access to SystemServer.

Change-Id: I298eb40f9a04c16e90dcc1ad32d240ca84df3b1e
parent e844113b
No related branches found
No related tags found
No related merge requests found
...@@ -64,3 +64,6 @@ type rpmsg_device, dev_type; ...@@ -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;
...@@ -380,6 +380,11 @@ allow system_server keystore:keystore_key { ...@@ -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
### ###
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment