Home
last modified time | relevance | path

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

/openbmc/linux/fs/ceph/
H A Dacl.c168 struct ceph_acl_sec_ctx *as_ctx) in ceph_pre_init_acls() argument
243 as_ctx->acl = acl; in ceph_pre_init_acls()
244 as_ctx->default_acl = default_acl; in ceph_pre_init_acls()
245 as_ctx->pagelist = pagelist; in ceph_pre_init_acls()
257 void ceph_init_inode_acls(struct inode *inode, struct ceph_acl_sec_ctx *as_ctx) in ceph_init_inode_acls() argument
261 ceph_set_cached_acl(inode, ACL_TYPE_ACCESS, as_ctx->acl); in ceph_init_inode_acls()
262 ceph_set_cached_acl(inode, ACL_TYPE_DEFAULT, as_ctx->default_acl); in ceph_init_inode_acls()
H A Dxattr.c1360 struct ceph_acl_sec_ctx *as_ctx) in ceph_security_init_secctx() argument
1368 &name, &as_ctx->sec_ctx, in ceph_security_init_secctx()
1369 &as_ctx->sec_ctxlen); in ceph_security_init_secctx()
1398 if (as_ctx->pagelist) { in ceph_security_init_secctx()
1411 as_ctx->pagelist = pagelist; in ceph_security_init_secctx()
1418 ceph_pagelist_append(pagelist, as_ctx->sec_ctx, as_ctx->sec_ctxlen); in ceph_security_init_secctx()
1422 if (pagelist && !as_ctx->pagelist) in ceph_security_init_secctx()
1432 posix_acl_release(as_ctx->acl); in ceph_release_acl_sec_ctx()
1436 security_release_secctx(as_ctx->sec_ctx, as_ctx->sec_ctxlen); in ceph_release_acl_sec_ctx()
1439 kfree(as_ctx->fscrypt_auth); in ceph_release_acl_sec_ctx()
[all …]
H A Ddir.c889 struct ceph_acl_sec_ctx as_ctx = {}; in ceph_mknod() local
933 ceph_as_ctx_to_req(req, &as_ctx); in ceph_mknod()
942 ceph_init_inode_acls(d_inode(dentry), &as_ctx); in ceph_mknod()
945 ceph_release_acl_sec_ctx(&as_ctx); in ceph_mknod()
997 struct ceph_acl_sec_ctx as_ctx = {}; in ceph_symlink() local
1049 ceph_as_ctx_to_req(req, &as_ctx); in ceph_symlink()
1059 ceph_release_acl_sec_ctx(&as_ctx); in ceph_symlink()
1068 struct ceph_acl_sec_ctx as_ctx = {}; in ceph_mkdir() local
1125 ceph_as_ctx_to_req(req, &as_ctx); in ceph_mkdir()
1136 ceph_init_inode_acls(d_inode(dentry), &as_ctx); in ceph_mkdir()
[all …]
H A Dsuper.h1027 umode_t *mode, struct ceph_acl_sec_ctx *as_ctx);
1029 struct ceph_acl_sec_ctx *as_ctx);
1171 void ceph_release_acl_sec_ctx(struct ceph_acl_sec_ctx *as_ctx);
1180 struct ceph_acl_sec_ctx *as_ctx);
1182 struct ceph_acl_sec_ctx *as_ctx);
1195 struct ceph_acl_sec_ctx *as_ctx) in ceph_pre_init_acls() argument
1200 struct ceph_acl_sec_ctx *as_ctx) in ceph_init_inode_acls() argument
H A Dfile.c616 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()
738 struct ceph_acl_sec_ctx as_ctx = {}; in ceph_atomic_open() local
770 if (as_ctx.pagelist && in ceph_atomic_open()
771 !list_is_singular(&as_ctx.pagelist->head)) in ceph_atomic_open()
806 ceph_as_ctx_to_req(req, &as_ctx); in ceph_atomic_open()
837 &as_ctx, &lo); in ceph_atomic_open()
843 ceph_release_acl_sec_ctx(&as_ctx); in ceph_atomic_open()
844 memset(&as_ctx, 0, sizeof(as_ctx)); in ceph_atomic_open()
898 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
82 err = ceph_pre_init_acls(dir, mode, as_ctx); in ceph_new_inode()
90 err = ceph_security_init_secctx(dentry, *mode, as_ctx); in ceph_new_inode()
99 err = ceph_fscrypt_prepare_context(dir, inode, as_ctx); in ceph_new_inode()
111 struct ceph_acl_sec_ctx *as_ctx) in ceph_as_ctx_to_req() argument
113 if (as_ctx->pagelist) { in ceph_as_ctx_to_req()
114 req->r_pagelist = as_ctx->pagelist; in ceph_as_ctx_to_req()
115 as_ctx->pagelist = NULL; in ceph_as_ctx_to_req()
117 ceph_fscrypt_as_ctx_to_req(req, as_ctx); in ceph_as_ctx_to_req()