Lines Matching refs:scx
131 #define ntfs_real_allowed_access(scx, ni, type) ntfs_allowed_access(scx, ni, type) argument
134 #define ntfs_allowed_access(scx, ni, type) \ argument
135 ((scx)->vol->secure_flags & (1 << SECURITY_DEFAULT) \
136 ? 1 : ntfs_allowed_access(scx, ni, type))
292 static BOOL ntfs_fuse_fill_security_context(struct SECURITY_CONTEXT *scx) in ntfs_fuse_fill_security_context() argument
296 scx->vol = ctx->vol; in ntfs_fuse_fill_security_context()
297 scx->mapping[MAPUSERS] = ctx->security.mapping[MAPUSERS]; in ntfs_fuse_fill_security_context()
298 scx->mapping[MAPGROUPS] = ctx->security.mapping[MAPGROUPS]; in ntfs_fuse_fill_security_context()
299 scx->pseccache = &ctx->seccache; in ntfs_fuse_fill_security_context()
301 scx->uid = fusecontext->uid; in ntfs_fuse_fill_security_context()
302 scx->gid = fusecontext->gid; in ntfs_fuse_fill_security_context()
303 scx->tid = fusecontext->pid; in ntfs_fuse_fill_security_context()
306 scx->umask = fusecontext->umask; in ntfs_fuse_fill_security_context()
309 scx->umask = 0; in ntfs_fuse_fill_security_context()
328 static int ntfs_allowed_dir_access(struct SECURITY_CONTEXT *scx, in ntfs_allowed_dir_access() argument
341 if (scx->vol->secure_flags & (1 << SECURITY_DEFAULT)) in ntfs_allowed_dir_access()
347 allowed = ntfs_real_allowed_access(scx, dir_ni, in ntfs_allowed_dir_access()
357 dir_ni2 = ntfs_pathname_to_inode(scx->vol, in ntfs_allowed_dir_access()
360 allowed = ntfs_real_allowed_access(scx, in ntfs_allowed_dir_access()
377 ni2 = ntfs_pathname_to_inode(scx->vol, NULL, in ntfs_allowed_dir_access()
381 allowed = (ntfs_get_owner_mode(scx,ni2,&stbuf) in ntfs_allowed_dir_access()
383 && (stbuf.st_uid == scx->uid); in ntfs_allowed_dir_access()
407 static int ntfs_allowed_real_dir_access(struct SECURITY_CONTEXT *scx, in ntfs_allowed_real_dir_access() argument
417 allowed = ntfs_real_allowed_access(scx, dir_ni, accesstype); in ntfs_allowed_real_dir_access()
426 dir_ni2 = ntfs_pathname_to_inode(scx->vol, NULL, in ntfs_allowed_real_dir_access()
429 allowed = ntfs_real_allowed_access(scx, in ntfs_allowed_real_dir_access()