Home
last modified time | relevance | path

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

/linux-6.12.1/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-6.12.1/include/linux/
Dsecurity.h344 u32 *ctxlen);
521 int security_inode_notifysecctx(struct inode *inode, void *ctx, u32 ctxlen);
522 int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen);
523 int security_inode_getsecctx(struct inode *inode, void **ctx, u32 *ctxlen);
805 u32 *ctxlen) in security_dentry_init_security() argument
1491 static inline int security_inode_notifysecctx(struct inode *inode, void *ctx, u32 ctxlen) in security_inode_notifysecctx() argument
1495 static inline int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen) in security_inode_setsecctx() argument
1499 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)
300 LSM_HOOK(int, 0, inode_notifysecctx, struct inode *inode, void *ctx, u32 ctxlen)
301 LSM_HOOK(int, 0, inode_setsecctx, struct dentry *dentry, void *ctx, u32 ctxlen)
303 u32 *ctxlen)
/linux-6.12.1/fs/fuse/
Ddir.c470 u32 ctxlen, total_len = sizeof(*header); in get_security_context() local
476 &name, &ctx, &ctxlen); in get_security_context()
481 ctxlen = 0; in get_security_context()
485 if (ctxlen) { in get_security_context()
489 if (WARN_ON(namelen > XATTR_NAME_MAX + 1 || ctxlen > S32_MAX)) in get_security_context()
491 total_len += FUSE_REC_ALIGN(sizeof(*fctx) + namelen + ctxlen); in get_security_context()
504 fctx->size = ctxlen; in get_security_context()
510 memcpy(ptr, ctx, ctxlen); in get_security_context()
/linux-6.12.1/security/
Dsecurity.c1751 u32 *ctxlen) in security_dentry_init_security() argument
1754 xattr_name, ctx, ctxlen); in security_dentry_init_security()
4374 int security_inode_notifysecctx(struct inode *inode, void *ctx, u32 ctxlen) in security_inode_notifysecctx() argument
4376 return call_int_hook(inode_notifysecctx, inode, ctx, ctxlen); in security_inode_notifysecctx()
4396 int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen) in security_inode_setsecctx() argument
4398 return call_int_hook(inode_setsecctx, dentry, ctx, ctxlen); in security_inode_setsecctx()
4413 int security_inode_getsecctx(struct inode *inode, void **ctx, u32 *ctxlen) in security_inode_getsecctx() argument
4415 return call_int_hook(inode_getsecctx, inode, ctx, ctxlen); in security_inode_getsecctx()
/linux-6.12.1/security/smack/
Dsmack_lsm.c4856 static int smack_inode_notifysecctx(struct inode *inode, void *ctx, u32 ctxlen) in smack_inode_notifysecctx() argument
4859 ctxlen, 0); in smack_inode_notifysecctx()
4862 static int smack_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen) in smack_inode_setsecctx() argument
4865 ctx, ctxlen, 0, NULL); in smack_inode_setsecctx()
4868 static int smack_inode_getsecctx(struct inode *inode, void **ctx, u32 *ctxlen) in smack_inode_getsecctx() argument
4873 *ctxlen = strlen(skp->smk_known); in smack_inode_getsecctx()
/linux-6.12.1/security/selinux/
Dhooks.c2873 u32 *ctxlen) in selinux_dentry_init_security() argument
2889 ctxlen); in selinux_dentry_init_security()
6631 static int selinux_inode_notifysecctx(struct inode *inode, void *ctx, u32 ctxlen) in selinux_inode_notifysecctx() argument
6634 ctx, ctxlen, 0); in selinux_inode_notifysecctx()
6642 static int selinux_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen) in selinux_inode_setsecctx() argument
6645 ctx, ctxlen, 0, NULL); in selinux_inode_setsecctx()
6648 static int selinux_inode_getsecctx(struct inode *inode, void **ctx, u32 *ctxlen) in selinux_inode_getsecctx() argument
6655 *ctxlen = len; in selinux_inode_getsecctx()