blob: 14b4d348bc01d617c50d4a8c41632bf0dfbfea4a [file] [log] [blame]
maxwene87cc6d2015-01-01 00:41:57 +01001###########################
2# OmniROM common sepolicy
3#
4
5domain_trans(init, rootfs, vold)
6
7# Allow vold to manage ASEC
8allow vold sdcard_external:file create_file_perms;
maxwen85c37d62016-02-26 03:45:57 +01009allow vold vold_tmpfs:file create_file_perms;
maxwene87cc6d2015-01-01 00:41:57 +010010
11# Allow vold to access fuse for fuse-based fs
12allow vold fuse_device:chr_file rw_file_perms;
13
maxwen61638ae2015-04-15 22:26:56 +020014# NTFS-3g wants to drop permission
15allow vold self:capability { setgid setuid };
maxwen85c37d62016-02-26 03:45:57 +010016
17# External storage
18allow vold storage_stub_file:dir { rw_file_perms search add_name };
19allow vold mnt_media_rw_stub_file:dir r_dir_perms;
20allow vold mkfs_exec:file { execute read open execute_no_trans };
21
22