• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1typeattribute vold coredomain;
2typeattribute vold domain_deprecated;
3
4init_daemon_domain(vold)
5
6# Switch to more restrictive domains when executing common tools
7domain_auto_trans(vold, sgdisk_exec, sgdisk);
8domain_auto_trans(vold, sdcardd_exec, sdcardd);
9
10# For a handful of probing tools, we choose an even more restrictive
11# domain when working with untrusted block devices
12domain_trans(vold, shell_exec, blkid);
13domain_trans(vold, shell_exec, blkid_untrusted);
14domain_trans(vold, fsck_exec, fsck);
15domain_trans(vold, fsck_exec, fsck_untrusted);
16
17# Newly created storage dirs are always treated as mount stubs to prevent us
18# from accidentally writing when the mount point isn't present.
19type_transition vold storage_file:dir storage_stub_file;
20type_transition vold mnt_media_rw_file:dir mnt_media_rw_stub_file;
21