blob: 1a1d1adf1cc186b0d3d1d83d15f075a90055f7ba [file] [log] [blame]
###########################
# OmniROM common sepolicy
#
domain_trans(init, rootfs, vold)
# Allow vold to manage ASEC
allow vold sdcard_type:file create_file_perms;
allow vold vold_tmpfs:file create_file_perms;
# Allow vold to access fuse for fuse-based fs
allow vold fuse_device:chr_file rw_file_perms;
# NTFS-3g wants to drop permission
allow vold self:capability { setgid setuid };
# External storage
allow vold storage_stub_file:dir { rw_file_perms search add_name };
allow vold mnt_media_rw_stub_file:dir r_dir_perms;
allow vold mkfs_exec:file { execute read open getattr execute_no_trans };
allow vold fuse_device:dir getattr;
allow vold fuse_device:filesystem unmount;