/system/sepolicy/ |
D | vold.te | 2 type vold, domain, domain_deprecated; 5 init_daemon_domain(vold) 8 domain_auto_trans(vold, sgdisk_exec, sgdisk); 9 domain_auto_trans(vold, sdcardd_exec, sdcardd); 12 allow vold cache_file:dir r_dir_perms; 13 allow vold cache_file:file { getattr read }; 14 allow vold cache_file:lnk_file r_file_perms; 17 r_dir_file(vold, proc) 18 r_dir_file(vold, proc_net) 19 r_dir_file(vold, sysfs) [all …]
|
D | blkid.te | 1 # blkid called from vold 10 # Allow stdin/out back to vold 11 allow blkid vold:fd use; 12 allow blkid vold:fifo_file { read write getattr }; 17 # Only allow entry from vold 18 neverallow { domain -vold } blkid:process transition;
|
D | sgdisk.te | 1 # sgdisk called from vold 12 # Allow stdin/out back to vold 13 allow sgdisk vold:fd use; 14 allow sgdisk vold:fifo_file { read write getattr }; 19 # Only allow entry from vold 20 neverallow { domain -vold } sgdisk:process transition;
|
D | blkid_untrusted.te | 4 # Allowed read-only access to vold block devices to extract UUID/label 8 # Allow stdin/out back to vold 9 allow blkid_untrusted vold:fd use; 10 allow blkid_untrusted vold:fifo_file { read write getattr }; 33 # Only allow entry from vold via blkid binary 34 neverallow { domain -vold } blkid_untrusted:process transition;
|
D | fsck_untrusted.te | 7 # Allow stdin/out back to vold 8 allow fsck_untrusted vold:fd use; 9 allow fsck_untrusted vold:fifo_file { read write getattr }; 11 # Run fsck on vold block devices 33 # Only allow entry from vold via fsck binaries 34 neverallow { domain -vold } fsck_untrusted:process transition;
|
D | fsck.te | 14 # Allow stdin/out back to vold 15 allow fsck vold:fd use; 16 allow fsck vold:fifo_file { read write getattr }; 44 # Only allow entry from init or vold via fsck binaries 45 neverallow { domain -init -vold } fsck:process transition;
|
D | sdcardd.te | 27 # Allow stdin/out back to vold 28 allow sdcardd vold:fd use; 29 allow sdcardd vold:fifo_file { read write getattr };
|
D | vdc.te | 13 unix_socket_connect(vdc, vold, vold)
|
/system/vold/ |
D | main.cpp | 59 << (android::vold::IsFilesystemSupported("ext4") ? " ext4" : "") in main() 60 << (android::vold::IsFilesystemSupported("f2fs") ? " f2fs" : "") in main() 61 << (android::vold::IsFilesystemSupported("vfat") ? " vfat" : ""); in main() 154 case 'b': android::vold::sBlkidContext = optarg; break; in parse_args() 155 case 'B': android::vold::sBlkidUntrustedContext = optarg; break; in parse_args() 156 case 'f': android::vold::sFsckContext = optarg; break; in parse_args() 157 case 'F': android::vold::sFsckUntrustedContext = optarg; break; in parse_args() 161 CHECK(android::vold::sBlkidContext != nullptr); in parse_args() 162 CHECK(android::vold::sBlkidUntrustedContext != nullptr); in parse_args() 163 CHECK(android::vold::sFsckContext != nullptr); in parse_args() [all …]
|
D | Ext4Crypt.cpp | 56 using android::vold::kEmptyAuthentication; 240 android::vold::destroyKey(other_path); in fixate_user_ce_key() 253 const android::vold::KeyAuthentication& auth, in read_and_fixate_user_ce_key() 259 if (android::vold::retrieveKey(ce_key_path, auth, ce_key)) { in read_and_fixate_user_ce_key() 270 const android::vold::KeyAuthentication& auth) { in read_and_install_user_ce_key() 301 if (android::vold::ReadRandomBytes(EXT4_AES_256_XTS_KEY_SIZE, *key) != 0) { in random_key() 316 const android::vold::KeyAuthentication& auth, const std::string& key) { in store_key() 322 android::vold::destroyKey(tmp_path); // May be partially created so ignore errors in store_key() 324 if (!android::vold::storeKey(tmp_path, auth, key)) return false; in store_key() 415 if (!android::vold::retrieveKey(key_path, kEmptyAuthentication, &key)) return false; in load_all_de_keys() [all …]
|
D | vdc.rc | 4 # vold will set vold.decrypt to trigger_restart_framework (default 11 # vold will set vold.decrypt to trigger_restart_framework (default
|
D | vold.rc | 1 service vold /system/bin/vold \ 5 socket vold stream 0660 root mount
|
D | VolumeManager.h | 118 std::shared_ptr<android::vold::Disk> findDisk(const std::string& id); 119 std::shared_ptr<android::vold::VolumeBase> findVolume(const std::string& id); 121 void listVolumes(android::vold::VolumeBase::Type type, std::list<std::string>& list); 132 int setPrimary(const std::shared_ptr<android::vold::VolumeBase>& vol); 209 std::list<std::shared_ptr<android::vold::Disk>> mDisks; 214 std::shared_ptr<android::vold::VolumeBase> mInternalEmulated; 215 std::shared_ptr<android::vold::VolumeBase> mPrimary;
|
D | Benchmark.cpp | 37 namespace vold { namespace 138 if (android::vold::PrepareDir(benchPath, 01771, AID_SYSTEM, AID_MISC)) { in BenchmarkPrivate() 142 if (android::vold::PrepareDir(benchPath, 0700, AID_ROOT, AID_ROOT)) { in BenchmarkPrivate() 146 if (android::vold::PrepareDir(benchPath, 0700, AID_ROOT, AID_ROOT)) { in BenchmarkPrivate()
|
D | VolumeManager.cpp | 265 mInternalEmulated = std::shared_ptr<android::vold::VolumeBase>( in start() 266 new android::vold::EmulatedVolume("/data/media")); in start() 306 || (android::vold::IsRunningInEmulator() in handleBlockEvent() 309 flags |= android::vold::Disk::Flags::kSd; in handleBlockEvent() 311 flags |= android::vold::Disk::Flags::kUsb; in handleBlockEvent() 314 auto disk = new android::vold::Disk(eventPath, device, in handleBlockEvent() 317 mDisks.push_back(std::shared_ptr<android::vold::Disk>(disk)); in handleBlockEvent() 356 std::shared_ptr<android::vold::Disk> VolumeManager::findDisk(const std::string& id) { in findDisk() 365 std::shared_ptr<android::vold::VolumeBase> VolumeManager::findVolume(const std::string& id) { in findVolume() 378 void VolumeManager::listVolumes(android::vold::VolumeBase::Type type, in listVolumes() [all …]
|
D | CommandListener.cpp | 223 if (mountFlags & android::vold::VolumeBase::MountFlags::kPrimary) { in runCommand() 257 (new android::vold::MoveTask(fromVol, toVol))->start(); in runCommand() 617 flags = android::vold::TrimTask::Flags::kBenchmarkAfter; in runCommand() 619 flags = android::vold::TrimTask::Flags::kDeepTrim; in runCommand() 621 flags = android::vold::TrimTask::Flags::kDeepTrim in runCommand() 622 | android::vold::TrimTask::Flags::kBenchmarkAfter; in runCommand() 625 (new android::vold::TrimTask(flags))->start(); in runCommand() 648 android::vold::ForceUnmount(path); in mountInNamespace() 683 const android::vold::ScopedDir dir(opendir("/proc")); in runCommandInNamespace() 691 const android::vold::ScopedFd pid_fd( in runCommandInNamespace() [all …]
|
D | secontext.cpp | 21 return android::vold::sFsckContext; in secontextFsck()
|
D | Benchmark.h | 26 namespace vold {
|
D | TrimTask.h | 26 namespace vold {
|
D | MoveTask.h | 26 namespace vold {
|
D | TrimTask.cpp | 45 namespace vold { namespace 71 fstab = fs_mgr_read_fstab(android::vold::DefaultFstabPath().c_str()); in addFromFstab()
|
D | Android.mk | 93 LOCAL_MODULE := vold 99 LOCAL_INIT_RC := vold.rc
|
/system/vold/fs/ |
D | F2fs.h | 25 namespace vold {
|
D | Vfat.h | 25 namespace vold {
|
D | Ext4.h | 25 namespace vold {
|