• Home
  • Raw
  • Download

Lines Matching refs:mode

339             FileMode &mode = context->fileMode;  in OnFileOpen()  local
341 … WRITE_LOG(LOG_DEBUG, "file mode: %o u_id = %u, g_id = %u", mode.perm, mode.u_id, mode.g_id); in OnFileOpen()
342 uv_fs_chmod(nullptr, &fs, context->localPath.c_str(), mode.perm, nullptr); in OnFileOpen()
343 uv_fs_chown(nullptr, &fs, context->localPath.c_str(), mode.u_id, mode.g_id, nullptr); in OnFileOpen()
347 if (!mode.context.empty()) { in OnFileOpen()
348 WRITE_LOG(LOG_DEBUG, "setfilecon from master = %s", mode.context.c_str()); in OnFileOpen()
349 setfilecon(context->localPath.c_str(), mode.context.c_str()); in OnFileOpen()
430 FileMode mode; in GetSubFilesRecursively() local
431 mode.fullName = currentDirname; in GetSubFilesRecursively()
432 mode.perm = fs.statbuf.st_mode; in GetSubFilesRecursively()
433 mode.u_id = fs.statbuf.st_uid; in GetSubFilesRecursively()
434 mode.g_id = fs.statbuf.st_gid; in GetSubFilesRecursively()
440 mode.context = con; in GetSubFilesRecursively()
444 ctxNow.dirMode.push_back(mode); in GetSubFilesRecursively()
446 mode.perm, mode.u_id, mode.g_id, mode.context.c_str()); in GetSubFilesRecursively()
480 mode_t mode = req.statbuf.st_mode; in CheckLocalPath() local
516 } else if (!(mode & S_IFDIR)) { in CheckLocalPath()
575 auto mode = it->second; in CheckFilename() local
577mode.fullName.c_str(), mode.perm, mode.u_id, mode.g_id, mode.context.c_str()); in CheckFilename()
580 uv_fs_chmod(nullptr, &fs, localPath.c_str(), mode.perm, nullptr); in CheckFilename()
581 uv_fs_chown(nullptr, &fs, localPath.c_str(), mode.u_id, mode.g_id, nullptr); in CheckFilename()
584 if (!mode.context.empty()) { in CheckFilename()
585 WRITE_LOG(LOG_DEBUG, "setfilecon from master = %s", mode.context.c_str()); in CheckFilename()
586 setfilecon(localPath.c_str(), mode.context.c_str()); in CheckFilename()
607 mode_t mode = mode_t(~S_IFMT); in SmartSlavePath() local
608 if (Base::CheckDirectoryOrPath(localPath.c_str(), true, false, errStr, mode)) { in SmartSlavePath()