Searched refs:fs_permission (Results 1 – 4 of 4) sorted by relevance
/art/artd/ |
D | file_utils.cc | 61 const FsPermission& fs_permission) { in Create() argument 62 std::unique_ptr<NewFile> output_file(new NewFile(path, fs_permission)); in Create() 262 mode_t FileFsPermissionToMode(const FsPermission& fs_permission) { in FileFsPermissionToMode() argument 263 return S_IRUSR | S_IWUSR | S_IRGRP | (fs_permission.isOtherReadable ? S_IROTH : 0) | in FileFsPermissionToMode() 264 (fs_permission.isOtherExecutable ? S_IXOTH : 0); in FileFsPermissionToMode() 267 mode_t DirFsPermissionToMode(const FsPermission& fs_permission) { in DirFsPermissionToMode() argument 268 return FileFsPermissionToMode(fs_permission) | S_IXUSR | S_IXGRP; in DirFsPermissionToMode() 271 Result<void> Chown(const std::string& path, const FsPermission& fs_permission) { in Chown() argument 272 if (fs_permission.uid < 0 && fs_permission.gid < 0) { in Chown() 274 } else if (fs_permission.uid < 0 || fs_permission.gid < 0) { in Chown() [all …]
|
D | file_utils.h | 44 const std::string& path, const aidl::com::android::server::art::FsPermission& fs_permission); 104 const aidl::com::android::server::art::FsPermission& fs_permission) in NewFile() argument 105 : final_path_(path), fs_permission_(fs_permission) {} in NewFile() 123 mode_t FileFsPermissionToMode(const aidl::com::android::server::art::FsPermission& fs_permission); 126 mode_t DirFsPermissionToMode(const aidl::com::android::server::art::FsPermission& fs_permission); 130 const std::string& path, const aidl::com::android::server::art::FsPermission& fs_permission);
|
D | artd.cc | 240 Result<void> PrepareArtifactsDir(const std::string& path, const FsPermission& fs_permission) { in PrepareArtifactsDir() argument 250 if (chmod(path.c_str(), DirFsPermissionToMode(fs_permission)) != 0) { in PrepareArtifactsDir() 253 OR_RETURN(Chown(path, fs_permission)); in PrepareArtifactsDir() 1038 const FsPermission& fs_permission = in_outputArtifacts.permissionSettings.fileFsPermission; in dexopt() local 1045 if (fs_permission.isOtherReadable) { in dexopt() 1054 if ((fs_permission.uid > 0 && static_cast<uid_t>(fs_permission.uid) != dex_st.st_uid) || in dexopt() 1055 (fs_permission.gid > 0 && static_cast<gid_t>(fs_permission.gid) != dex_st.st_uid && in dexopt() 1056 static_cast<gid_t>(fs_permission.gid) != dex_st.st_gid)) { in dexopt() 1060 fs_permission.uid, in dexopt() 1061 fs_permission.gid, in dexopt() [all …]
|
D | file_utils_test.cc | 64 const FsPermission& fs_permission) { in Create() argument 65 std::unique_ptr<NewFile> new_file = OR_RETURN(NewFile::Create(path, fs_permission)); in Create()
|