Tom Marshall | 39a4244 | 2014-11-26 13:26:14 -0800 | [diff] [blame] | 1 | domain_trans(init, rootfs, vold) |
| 2 | |
Pawit Pornkitprasan | ef90771 | 2013-11-14 10:46:26 +0700 | [diff] [blame] | 3 | # Allow vold to manage ASEC |
| 4 | allow vold sdcard_external:file create_file_perms; |
Christopher R. Palmer | da48ab8 | 2015-02-19 10:54:30 -0500 | [diff] [blame] | 5 | allow vold vold_tmpfs:file create_file_perms; |
Pawit Pornkitprasan | 9a19f57 | 2013-11-15 09:54:39 +0700 | [diff] [blame] | 6 | |
Pawit Pornkitprasan | 54c91b8 | 2013-12-10 17:10:50 +0700 | [diff] [blame] | 7 | # Allow vold to access fuse for fuse-based fs |
| 8 | allow vold fuse_device:chr_file rw_file_perms; |
| 9 | |
| 10 | # NTFS-3g wants to drop permission |
| 11 | allow vold self:capability { setgid setuid }; |
Matt Mower | 2806bc4 | 2014-12-19 10:45:10 -0600 | [diff] [blame] | 12 | |
| 13 | # Vold can also run as minivold in the rootfs |
| 14 | recovery_only(` |
| 15 | allow vold rootfs:dir { add_name write }; |
| 16 | ') |
codeworkx | 14e765c | 2016-01-01 17:29:10 +0100 | [diff] [blame^] | 17 | |
| 18 | # External storage |
| 19 | allow vold storage_stub_file:dir { rw_file_perms search add_name }; |
| 20 | allow vold mnt_media_rw_stub_file:dir r_dir_perms; |
| 21 | allow vold mkfs_exec:file { execute read open execute_no_trans }; |