blob: 516bf29f95befb08269a1bd7c8bfc51c5a3b3a01 [file] [log] [blame]
maxtera22a3722014-01-11 22:08:21 -02001###########################
2# OmniROM common sepolicy
3#
4
5# Allow vold to access fuse for fuse-based fs
6allow vold fuse_device:chr_file rw_file_perms;
7
8# NTFS-3g wants to drop permission
9allow vold self:capability { setgid setuid };
10
11# Allow vold to relabel sdcard fs mounts
12allow vold unlabeled:filesystem { relabelfrom };
13allow vold sdcard_external:filesystem { relabelfrom relabelto };
Pawit Pornkitprasan74295672013-11-14 10:46:26 +070014
15# Allow vold to manage ASEC
16allow vold sdcard_external:file create_file_perms;
Pawit Pornkitprasanae10bae2013-11-15 09:54:39 +070017
18# Allow vold to change context for mounted ext4 sdcard
19relabelto_domain(vold)
20allow vold labeledfs:filesystem { relabelfrom };
21allow vold sdcard_external:filesystem { relabelfrom relabelto };