Allow sdcardd to write to sdcard directory and file.
Should resolve b/13060688 - emulator writes to /storage/sdcard failing. Change-Id: I9f00d9dfcd1c4f84c2320628257beca71abf170b Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
This commit is contained in:
parent
e55aac2a5a
commit
7b52ebf52f
1 changed files with 3 additions and 0 deletions
|
@ -9,6 +9,9 @@ allow sdcardd rootfs:dir mounton;
|
|||
allow sdcardd sdcard_type:filesystem mount;
|
||||
allow sdcardd self:capability { setuid setgid dac_override sys_admin sys_resource };
|
||||
|
||||
allow sdcardd sdcard_type:dir create_dir_perms;
|
||||
allow sdcardd sdcard_type:file create_file_perms;
|
||||
|
||||
type_transition sdcardd system_data_file:{ dir file } media_rw_data_file;
|
||||
allow sdcardd media_rw_data_file:dir create_dir_perms;
|
||||
allow sdcardd media_rw_data_file:file create_file_perms;
|
||||
|
|
Loading…
Reference in a new issue