Skip to content
Snippets Groups Projects
Commit 7b52ebf5 authored by Stephen Smalley's avatar Stephen Smalley
Browse files

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: default avatarStephen Smalley <sds@tycho.nsa.gov>
parent e55aac2a
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,9 @@ allow sdcardd rootfs:dir mounton; ...@@ -9,6 +9,9 @@ allow sdcardd rootfs:dir mounton;
allow sdcardd sdcard_type:filesystem mount; allow sdcardd sdcard_type:filesystem mount;
allow sdcardd self:capability { setuid setgid dac_override sys_admin sys_resource }; 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; 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:dir create_dir_perms;
allow sdcardd media_rw_data_file:file create_file_perms; allow sdcardd media_rw_data_file:file create_file_perms;
......
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