Lines Matching refs:mode
336 FileMode &mode = context->fileMode; in OnFileOpen() local
338 uv_fs_chmod(nullptr, &fs, context->localPath.c_str(), mode.perm, nullptr); in OnFileOpen()
339 uv_fs_chown(nullptr, &fs, context->localPath.c_str(), mode.uId, mode.gId, nullptr); in OnFileOpen()
343 if (!mode.context.empty()) { in OnFileOpen()
344 WRITE_LOG(LOG_DEBUG, "setfilecon from master = %s", mode.context.c_str()); in OnFileOpen()
345 setfilecon(context->localPath.c_str(), mode.context.c_str()); in OnFileOpen()
426 FileMode mode; in GetSubFilesRecursively() local
427 mode.fullName = currentDirname; in GetSubFilesRecursively()
428 mode.perm = fs.statbuf.st_mode; in GetSubFilesRecursively()
429 mode.uId = fs.statbuf.st_uid; in GetSubFilesRecursively()
430 mode.gId = fs.statbuf.st_gid; in GetSubFilesRecursively()
436 mode.context = con; in GetSubFilesRecursively()
440 ctxNow.dirMode.push_back(mode); in GetSubFilesRecursively()
474 mode_t mode = req.statbuf.st_mode; in CheckLocalPath() local
510 } else if (!(mode & S_IFDIR)) { in CheckLocalPath()
564 auto mode = it->second; in CheckFilename() local
566 uv_fs_chmod(nullptr, &fs, localPath.c_str(), mode.perm, nullptr); in CheckFilename()
567 uv_fs_chown(nullptr, &fs, localPath.c_str(), mode.uId, mode.gId, nullptr); in CheckFilename()
570 if (!mode.context.empty()) { in CheckFilename()
571 WRITE_LOG(LOG_DEBUG, "setfilecon from master = %s", mode.context.c_str()); in CheckFilename()
572 setfilecon(localPath.c_str(), mode.context.c_str()); in CheckFilename()
593 mode_t mode = mode_t(~S_IFMT); in SmartSlavePath() local
594 if (Base::CheckDirectoryOrPath(localPath.c_str(), true, false, errStr, mode)) { in SmartSlavePath()