Home
last modified time | relevance | path

Searched refs:as_ctx (Results 1 – 5 of 5) sorted by relevance

/linux-5.19.10/fs/ceph/
Dacl.c167 struct ceph_acl_sec_ctx *as_ctx) in ceph_pre_init_acls() argument
242 as_ctx->acl = acl; in ceph_pre_init_acls()
243 as_ctx->default_acl = default_acl; in ceph_pre_init_acls()
244 as_ctx->pagelist = pagelist; in ceph_pre_init_acls()
256 void ceph_init_inode_acls(struct inode *inode, struct ceph_acl_sec_ctx *as_ctx) in ceph_init_inode_acls() argument
260 ceph_set_cached_acl(inode, ACL_TYPE_ACCESS, as_ctx->acl); in ceph_init_inode_acls()
261 ceph_set_cached_acl(inode, ACL_TYPE_DEFAULT, as_ctx->default_acl); in ceph_init_inode_acls()
Dxattr.c1323 struct ceph_acl_sec_ctx *as_ctx) in ceph_security_init_secctx() argument
1325 struct ceph_pagelist *pagelist = as_ctx->pagelist; in ceph_security_init_secctx()
1331 &name, &as_ctx->sec_ctx, in ceph_security_init_secctx()
1332 &as_ctx->sec_ctxlen); in ceph_security_init_secctx()
1357 4 * 2 + name_len + as_ctx->sec_ctxlen); in ceph_security_init_secctx()
1361 if (as_ctx->pagelist) { in ceph_security_init_secctx()
1374 as_ctx->pagelist = pagelist; in ceph_security_init_secctx()
1380 ceph_pagelist_encode_32(pagelist, as_ctx->sec_ctxlen); in ceph_security_init_secctx()
1381 ceph_pagelist_append(pagelist, as_ctx->sec_ctx, as_ctx->sec_ctxlen); in ceph_security_init_secctx()
1385 if (pagelist && !as_ctx->pagelist) in ceph_security_init_secctx()
[all …]
Ddir.c853 struct ceph_acl_sec_ctx as_ctx = {}; in ceph_mknod() local
864 err = ceph_pre_init_acls(dir, &mode, &as_ctx); in ceph_mknod()
867 err = ceph_security_init_secctx(dentry, mode, &as_ctx); in ceph_mknod()
887 if (as_ctx.pagelist) { in ceph_mknod()
888 req->r_pagelist = as_ctx.pagelist; in ceph_mknod()
889 as_ctx.pagelist = NULL; in ceph_mknod()
897 ceph_init_inode_acls(d_inode(dentry), &as_ctx); in ceph_mknod()
900 ceph_release_acl_sec_ctx(&as_ctx); in ceph_mknod()
915 struct ceph_acl_sec_ctx as_ctx = {}; in ceph_symlink() local
926 err = ceph_security_init_secctx(dentry, S_IFLNK | 0777, &as_ctx); in ceph_symlink()
[all …]
Dfile.c607 struct ceph_acl_sec_ctx *as_ctx, in ceph_finish_async_create() argument
697 ceph_init_inode_acls(inode, as_ctx); in ceph_finish_async_create()
731 struct ceph_acl_sec_ctx as_ctx = {}; in ceph_atomic_open() local
746 err = ceph_pre_init_acls(dir, &mode, &as_ctx); in ceph_atomic_open()
749 err = ceph_security_init_secctx(dentry, mode, &as_ctx); in ceph_atomic_open()
753 if (as_ctx.pagelist && in ceph_atomic_open()
754 !list_is_singular(&as_ctx.pagelist->head)) in ceph_atomic_open()
781 if (as_ctx.pagelist) { in ceph_atomic_open()
782 req->r_pagelist = as_ctx.pagelist; in ceph_atomic_open()
783 as_ctx.pagelist = NULL; in ceph_atomic_open()
[all …]
Dsuper.h1100 void ceph_release_acl_sec_ctx(struct ceph_acl_sec_ctx *as_ctx);
1109 struct ceph_acl_sec_ctx *as_ctx);
1111 struct ceph_acl_sec_ctx *as_ctx);
1124 struct ceph_acl_sec_ctx *as_ctx) in ceph_pre_init_acls() argument
1129 struct ceph_acl_sec_ctx *as_ctx) in ceph_init_inode_acls() argument