blob: 63e72d770ee34bf7997004a3f12e5eaebf0843c2 [file] [log] [blame]
Tom Marshall39a42442014-11-26 13:26:14 -08001domain_trans(init, rootfs, vold)
2
Pawit Pornkitprasanef907712013-11-14 10:46:26 +07003# Allow vold to manage ASEC
Steve Kondikaa38b562016-08-26 02:31:15 -07004allow vold sdcard_type:file create_file_perms;
Christopher R. Palmerda48ab82015-02-19 10:54:30 -05005allow vold vold_tmpfs:file create_file_perms;
Pawit Pornkitprasan9a19f572013-11-15 09:54:39 +07006
Pawit Pornkitprasan54c91b82013-12-10 17:10:50 +07007# Allow vold to access fuse for fuse-based fs
Steve Kondikaa38b562016-08-26 02:31:15 -07008allow vold fuseblk:chr_file rw_file_perms;
Pawit Pornkitprasan54c91b82013-12-10 17:10:50 +07009
10# NTFS-3g wants to drop permission
11allow vold self:capability { setgid setuid };
Matt Mower2806bc42014-12-19 10:45:10 -060012
13# Vold can also run as minivold in the rootfs
14recovery_only(`
15 allow vold rootfs:dir { add_name write };
Matt Mower511152c2015-12-27 12:26:23 -060016 allow vold rootfs:file execute_no_trans;
Adrian DC463feb62016-08-02 23:21:35 +020017 allow vold vold_tmpfs:file link;
Matt Mower2806bc42014-12-19 10:45:10 -060018')
codeworkx14e765c2016-01-01 17:29:10 +010019
20# External storage
21allow vold storage_stub_file:dir { rw_file_perms search add_name };
22allow vold mnt_media_rw_stub_file:dir r_dir_perms;
LuK1337314a2bc2016-09-14 20:45:04 +020023allow vold mkfs_exec:file { execute read open getattr execute_no_trans };