blob: 1a1d1adf1cc186b0d3d1d83d15f075a90055f7ba [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
Marko Man6ca28272016-10-20 01:36:14 +02008allow vold sdcard_type: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# External storage
17allow vold storage_stub_file:dir { rw_file_perms search add_name };
18allow vold mnt_media_rw_stub_file:dir r_dir_perms;
Marko Man6ca28272016-10-20 01:36:14 +020019allow vold mkfs_exec:file { execute read open getattr execute_no_trans };
maxwen85c37d62016-02-26 03:45:57 +010020
Marko Man6ca28272016-10-20 01:36:14 +020021allow vold fuse_device:dir getattr;
22allow vold fuse_device:filesystem unmount;
maxwen85c37d62016-02-26 03:45:57 +010023