Lines Matching defs:scx
132 #define ntfs_real_allowed_access(scx, ni, type) ntfs_allowed_access(scx, ni, type)
135 #define ntfs_allowed_access(scx, ni, type) \
136 ((scx)->vol->secure_flags & (1 << SECURITY_DEFAULT) \
137 ? 1 : ntfs_allowed_access(scx, ni, type))
293 static BOOL ntfs_fuse_fill_security_context(struct SECURITY_CONTEXT *scx)
297 scx->vol = ctx->vol;
298 scx->mapping[MAPUSERS] = ctx->security.mapping[MAPUSERS];
299 scx->mapping[MAPGROUPS] = ctx->security.mapping[MAPGROUPS];
300 scx->pseccache = &ctx->seccache;
302 scx->uid = fusecontext->uid;
303 scx->gid = fusecontext->gid;
304 scx->tid = fusecontext->pid;
307 scx->umask = fusecontext->umask;
310 scx->umask = 0;
329 static int ntfs_allowed_dir_access(struct SECURITY_CONTEXT *scx,
342 if (scx->vol->secure_flags & (1 << SECURITY_DEFAULT))
348 allowed = ntfs_real_allowed_access(scx, dir_ni,
358 dir_ni2 = ntfs_pathname_to_inode(scx->vol,
361 allowed = ntfs_real_allowed_access(scx,
378 ni2 = ntfs_pathname_to_inode(scx->vol, NULL,
382 allowed = (ntfs_get_owner_mode(scx,ni2,&stbuf)
384 && (stbuf.st_uid == scx->uid);
408 static int ntfs_allowed_real_dir_access(struct SECURITY_CONTEXT *scx,
418 allowed = ntfs_real_allowed_access(scx, dir_ni, accesstype);
427 dir_ni2 = ntfs_pathname_to_inode(scx->vol, NULL,
430 allowed = ntfs_real_allowed_access(scx,