Searched refs:as_ctx (Results 1 – 5 of 5) sorted by relevance
/kernel/linux/linux-5.10/fs/ceph/ |
D | acl.c | 162 struct ceph_acl_sec_ctx *as_ctx) in ceph_pre_init_acls() argument 237 as_ctx->acl = acl; in ceph_pre_init_acls() 238 as_ctx->default_acl = default_acl; in ceph_pre_init_acls() 239 as_ctx->pagelist = pagelist; in ceph_pre_init_acls() 251 void ceph_init_inode_acls(struct inode *inode, struct ceph_acl_sec_ctx *as_ctx) in ceph_init_inode_acls() argument 255 ceph_set_cached_acl(inode, ACL_TYPE_ACCESS, as_ctx->acl); in ceph_init_inode_acls() 256 ceph_set_cached_acl(inode, ACL_TYPE_DEFAULT, as_ctx->default_acl); in ceph_init_inode_acls()
|
D | xattr.c | 1212 struct ceph_acl_sec_ctx *as_ctx) in ceph_security_init_secctx() argument 1214 struct ceph_pagelist *pagelist = as_ctx->pagelist; in ceph_security_init_secctx() 1220 &as_ctx->sec_ctx, in ceph_security_init_secctx() 1221 &as_ctx->sec_ctxlen); in ceph_security_init_secctx() 1247 4 * 2 + name_len + as_ctx->sec_ctxlen); in ceph_security_init_secctx() 1251 if (as_ctx->pagelist) { in ceph_security_init_secctx() 1264 as_ctx->pagelist = pagelist; in ceph_security_init_secctx() 1270 ceph_pagelist_encode_32(pagelist, as_ctx->sec_ctxlen); in ceph_security_init_secctx() 1271 ceph_pagelist_append(pagelist, as_ctx->sec_ctx, as_ctx->sec_ctxlen); in ceph_security_init_secctx() 1275 if (pagelist && !as_ctx->pagelist) in ceph_security_init_secctx() [all …]
|
D | dir.c | 840 struct ceph_acl_sec_ctx as_ctx = {}; in ceph_mknod() local 851 err = ceph_pre_init_acls(dir, &mode, &as_ctx); in ceph_mknod() 854 err = ceph_security_init_secctx(dentry, mode, &as_ctx); in ceph_mknod() 873 if (as_ctx.pagelist) { in ceph_mknod() 874 req->r_pagelist = as_ctx.pagelist; in ceph_mknod() 875 as_ctx.pagelist = NULL; in ceph_mknod() 883 ceph_init_inode_acls(d_inode(dentry), &as_ctx); in ceph_mknod() 886 ceph_release_acl_sec_ctx(&as_ctx); in ceph_mknod() 901 struct ceph_acl_sec_ctx as_ctx = {}; in ceph_symlink() local 912 err = ceph_security_init_secctx(dentry, S_IFLNK | 0777, &as_ctx); in ceph_symlink() [all …]
|
D | file.c | 570 struct ceph_acl_sec_ctx *as_ctx, in ceph_finish_async_create() argument 660 ceph_init_inode_acls(inode, as_ctx); in ceph_finish_async_create() 694 struct ceph_acl_sec_ctx as_ctx = {}; in ceph_atomic_open() local 715 err = ceph_pre_init_acls(dir, &mode, &as_ctx); in ceph_atomic_open() 718 err = ceph_security_init_secctx(dentry, mode, &as_ctx); in ceph_atomic_open() 722 if (as_ctx.pagelist && in ceph_atomic_open() 723 !list_is_singular(&as_ctx.pagelist->head)) in ceph_atomic_open() 749 if (as_ctx.pagelist) { in ceph_atomic_open() 750 req->r_pagelist = as_ctx.pagelist; in ceph_atomic_open() 751 as_ctx.pagelist = NULL; in ceph_atomic_open() [all …]
|
D | super.h | 1055 void ceph_release_acl_sec_ctx(struct ceph_acl_sec_ctx *as_ctx); 1063 struct ceph_acl_sec_ctx *as_ctx); 1065 struct ceph_acl_sec_ctx *as_ctx); 1078 struct ceph_acl_sec_ctx *as_ctx) in ceph_pre_init_acls() argument 1083 struct ceph_acl_sec_ctx *as_ctx) in ceph_init_inode_acls() argument
|