Home
last modified time | relevance | path

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

/linux-6.15/fs/ceph/
H A Dacl.c170 struct ceph_acl_sec_ctx *as_ctx) in ceph_pre_init_acls() argument
245 as_ctx->acl = acl; in ceph_pre_init_acls()
246 as_ctx->default_acl = default_acl; in ceph_pre_init_acls()
247 as_ctx->pagelist = pagelist; in ceph_pre_init_acls()
259 void ceph_init_inode_acls(struct inode *inode, struct ceph_acl_sec_ctx *as_ctx) in ceph_init_inode_acls() argument
263 ceph_set_cached_acl(inode, ACL_TYPE_ACCESS, as_ctx->acl); in ceph_init_inode_acls()
264 ceph_set_cached_acl(inode, ACL_TYPE_DEFAULT, as_ctx->default_acl); in ceph_init_inode_acls()
H A Dxattr.c1378 struct ceph_acl_sec_ctx *as_ctx) in ceph_security_init_secctx() argument
1386 &name, &as_ctx->lsmctx); in ceph_security_init_secctx()
1415 if (as_ctx->pagelist) { in ceph_security_init_secctx()
1428 as_ctx->pagelist = pagelist; in ceph_security_init_secctx()
1436 as_ctx->lsmctx.len); in ceph_security_init_secctx()
1440 if (pagelist && !as_ctx->pagelist) in ceph_security_init_secctx()
1450 posix_acl_release(as_ctx->acl); in ceph_release_acl_sec_ctx()
1451 posix_acl_release(as_ctx->default_acl); in ceph_release_acl_sec_ctx()
1454 security_release_secctx(&as_ctx->lsmctx); in ceph_release_acl_sec_ctx()
1457 kfree(as_ctx->fscrypt_auth); in ceph_release_acl_sec_ctx()
[all …]
H A Ddir.c918 struct ceph_acl_sec_ctx as_ctx = {}; in ceph_mknod() local
963 ceph_as_ctx_to_req(req, &as_ctx); in ceph_mknod()
972 ceph_init_inode_acls(d_inode(dentry), &as_ctx); in ceph_mknod()
975 ceph_release_acl_sec_ctx(&as_ctx); in ceph_mknod()
1028 struct ceph_acl_sec_ctx as_ctx = {}; in ceph_symlink() local
1082 ceph_as_ctx_to_req(req, &as_ctx); in ceph_symlink()
1092 ceph_release_acl_sec_ctx(&as_ctx); in ceph_symlink()
1102 struct ceph_acl_sec_ctx as_ctx = {}; in ceph_mkdir() local
1163 ceph_as_ctx_to_req(req, &as_ctx); in ceph_mkdir()
1180 ceph_init_inode_acls(d_inode(dentry), &as_ctx); in ceph_mkdir()
[all …]
H A Dsuper.h1034 umode_t *mode, struct ceph_acl_sec_ctx *as_ctx);
1036 struct ceph_acl_sec_ctx *as_ctx);
1175 void ceph_release_acl_sec_ctx(struct ceph_acl_sec_ctx *as_ctx);
1184 struct ceph_acl_sec_ctx *as_ctx);
1186 struct ceph_acl_sec_ctx *as_ctx);
1199 struct ceph_acl_sec_ctx *as_ctx) in ceph_pre_init_acls() argument
1204 struct ceph_acl_sec_ctx *as_ctx) in ceph_init_inode_acls() argument
H A Dfile.c660 struct ceph_acl_sec_ctx *as_ctx, in ceph_finish_async_create() argument
746 ceph_init_inode_acls(inode, as_ctx); in ceph_finish_async_create()
789 struct ceph_acl_sec_ctx as_ctx = {}; in ceph_atomic_open() local
852 if (as_ctx.pagelist && in ceph_atomic_open()
853 !list_is_singular(&as_ctx.pagelist->head)) in ceph_atomic_open()
890 ceph_as_ctx_to_req(req, &as_ctx); in ceph_atomic_open()
921 &as_ctx, &lo); in ceph_atomic_open()
927 ceph_release_acl_sec_ctx(&as_ctx); in ceph_atomic_open()
928 memset(&as_ctx, 0, sizeof(as_ctx)); in ceph_atomic_open()
983 ceph_init_inode_acls(newino, &as_ctx); in ceph_atomic_open()
[all …]
H A Dcrypto.h193 struct ceph_acl_sec_ctx *as_ctx) in ceph_fscrypt_as_ctx_to_req() argument
H A Dinode.c72 umode_t *mode, struct ceph_acl_sec_ctx *as_ctx) in ceph_new_inode() argument
84 err = ceph_pre_init_acls(dir, mode, as_ctx); in ceph_new_inode()
92 err = ceph_security_init_secctx(dentry, *mode, as_ctx); in ceph_new_inode()
101 err = ceph_fscrypt_prepare_context(dir, inode, as_ctx); in ceph_new_inode()
113 struct ceph_acl_sec_ctx *as_ctx) in ceph_as_ctx_to_req() argument
115 if (as_ctx->pagelist) { in ceph_as_ctx_to_req()
116 req->r_pagelist = as_ctx->pagelist; in ceph_as_ctx_to_req()
117 as_ctx->pagelist = NULL; in ceph_as_ctx_to_req()
119 ceph_fscrypt_as_ctx_to_req(req, as_ctx); in ceph_as_ctx_to_req()