Home
last modified time | relevance | path

Searched refs:rfd (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/core/jni/
Dcom_android_server_security_VerityUtils.cpp43 ::android::base::unique_fd rfd(open(path, O_RDONLY | O_CLOEXEC)); in enableFsverity()
45 if (rfd.get() < 0) { in enableFsverity()
58 if (ioctl(rfd.get(), FS_IOC_ENABLE_VERITY, &arg) < 0) { in enableFsverity()
72 ::android::base::unique_fd rfd(open(path, O_RDONLY | O_CLOEXEC)); in measureFsverity()
74 if (rfd.get() < 0) { in measureFsverity()
77 if (ioctl(rfd.get(), FS_IOC_MEASURE_VERITY, data) < 0) { in measureFsverity()
/frameworks/base/services/core/java/com/android/server/security/
DVerityUtils.java128 FileDescriptor rfd = shm.getFileDescriptor(); in generateApkVeritySetupData() local
129 if (rfd == null || !rfd.valid()) { in generateApkVeritySetupData()
132 return SetupResult.ok(Os.dup(rfd), contentSize); in generateApkVeritySetupData()
/frameworks/native/cmds/installd/
DInstalldNativeService.cpp2852 ::android::base::unique_fd rfd(open(filePath.c_str(), O_RDONLY)); in installApkVerity()
2853 if (ioctl(rfd.get(), FS_IOC_ENABLE_VERITY, nullptr) < 0) { in installApkVerity()