Searched refs:kTmpfsDir (Results 1 – 1 of 1) sorted by relevance
519 const std::string kTmpfsDir = "/dev/selinux/"; variable531 if (stat(kTmpfsDir.c_str(), &stat_data) != 0) { in CreateTmpfsDir()533 return ErrnoError() << "Could not stat " << kTmpfsDir; in CreateTmpfsDir()535 if (mkdir(kTmpfsDir.c_str(), mode) != 0) { in CreateTmpfsDir()536 return ErrnoError() << "Could not mkdir " << kTmpfsDir; in CreateTmpfsDir()540 return Error() << kTmpfsDir << " exists and is not a directory."; in CreateTmpfsDir()542 LOG(WARNING) << "Directory " << kTmpfsDir << " already exists"; in CreateTmpfsDir()547 if (chmod(kTmpfsDir.c_str(), mode) != 0) { in CreateTmpfsDir()548 return ErrnoError() << "Could not chmod " << kTmpfsDir; in CreateTmpfsDir()556 std::string dstPath = kTmpfsDir + fileName; in PutFileInTmpfs()[all …]