Home
last modified time | relevance | path

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

/Linux-v6.6/fs/ceph/
Dcrypto.c75 u32 ctxlen; in ceph_crypt_get_context() local
85 ctxlen = le32_to_cpu(cfa->cfa_blob_len); in ceph_crypt_get_context()
86 if (len < ctxlen) in ceph_crypt_get_context()
89 memcpy(ctx, cfa->cfa_blob, ctxlen); in ceph_crypt_get_context()
90 return ctxlen; in ceph_crypt_get_context()
/Linux-v6.6/include/linux/
Dsecurity.h326 u32 *ctxlen);
483 int security_inode_notifysecctx(struct inode *inode, void *ctx, u32 ctxlen);
484 int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen);
485 int security_inode_getsecctx(struct inode *inode, void **ctx, u32 *ctxlen);
755 u32 *ctxlen) in security_dentry_init_security() argument
1382 static inline int security_inode_notifysecctx(struct inode *inode, void *ctx, u32 ctxlen) in security_inode_notifysecctx() argument
1386 static inline int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen) in security_inode_setsecctx() argument
1390 static inline int security_inode_getsecctx(struct inode *inode, void **ctx, u32 *ctxlen) in security_inode_getsecctx() argument
Dlsm_hook_defs.h86 void **ctx, u32 *ctxlen)
274 LSM_HOOK(int, 0, inode_notifysecctx, struct inode *inode, void *ctx, u32 ctxlen)
275 LSM_HOOK(int, 0, inode_setsecctx, struct dentry *dentry, void *ctx, u32 ctxlen)
277 u32 *ctxlen)
/Linux-v6.6/security/
Dsecurity.c1554 u32 *ctxlen) in security_dentry_init_security() argument
1565 xattr_name, ctx, ctxlen); in security_dentry_init_security()
3974 int security_inode_notifysecctx(struct inode *inode, void *ctx, u32 ctxlen) in security_inode_notifysecctx() argument
3976 return call_int_hook(inode_notifysecctx, 0, inode, ctx, ctxlen); in security_inode_notifysecctx()
3996 int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen) in security_inode_setsecctx() argument
3998 return call_int_hook(inode_setsecctx, 0, dentry, ctx, ctxlen); in security_inode_setsecctx()
4013 int security_inode_getsecctx(struct inode *inode, void **ctx, u32 *ctxlen) in security_inode_getsecctx() argument
4015 return call_int_hook(inode_getsecctx, -EOPNOTSUPP, inode, ctx, ctxlen); in security_inode_getsecctx()
/Linux-v6.6/fs/fuse/
Ddir.c466 u32 ctxlen, total_len = sizeof(*header); in get_security_context() local
472 &name, &ctx, &ctxlen); in get_security_context()
477 ctxlen = 0; in get_security_context()
481 if (ctxlen) { in get_security_context()
485 if (WARN_ON(namelen > XATTR_NAME_MAX + 1 || ctxlen > S32_MAX)) in get_security_context()
487 total_len += FUSE_REC_ALIGN(sizeof(*fctx) + namelen + ctxlen); in get_security_context()
500 fctx->size = ctxlen; in get_security_context()
506 memcpy(ptr, ctx, ctxlen); in get_security_context()
/Linux-v6.6/security/smack/
Dsmack_lsm.c4755 static int smack_inode_notifysecctx(struct inode *inode, void *ctx, u32 ctxlen) in smack_inode_notifysecctx() argument
4758 ctxlen, 0); in smack_inode_notifysecctx()
4761 static int smack_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen) in smack_inode_setsecctx() argument
4764 ctx, ctxlen, 0); in smack_inode_setsecctx()
4767 static int smack_inode_getsecctx(struct inode *inode, void **ctx, u32 *ctxlen) in smack_inode_getsecctx() argument
4772 *ctxlen = strlen(skp->smk_known); in smack_inode_getsecctx()
/Linux-v6.6/security/selinux/
Dhooks.c2862 u32 *ctxlen) in selinux_dentry_init_security() argument
2878 ctxlen); in selinux_dentry_init_security()
6505 static int selinux_inode_notifysecctx(struct inode *inode, void *ctx, u32 ctxlen) in selinux_inode_notifysecctx() argument
6508 ctx, ctxlen, 0); in selinux_inode_notifysecctx()
6516 static int selinux_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen) in selinux_inode_setsecctx() argument
6519 ctx, ctxlen, 0); in selinux_inode_setsecctx()
6522 static int selinux_inode_getsecctx(struct inode *inode, void **ctx, u32 *ctxlen) in selinux_inode_getsecctx() argument
6529 *ctxlen = len; in selinux_inode_getsecctx()