/linux-6.1.9/include/linux/ |
D | security.h | 324 u32 *ctxlen); 477 int security_inode_notifysecctx(struct inode *inode, void *ctx, u32 ctxlen); 478 int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen); 479 int security_inode_getsecctx(struct inode *inode, void **ctx, u32 *ctxlen); 744 u32 *ctxlen) in security_dentry_init_security() argument 1353 static inline int security_inode_notifysecctx(struct inode *inode, void *ctx, u32 ctxlen) in security_inode_notifysecctx() argument 1357 static inline int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen) in security_inode_setsecctx() argument 1361 static inline int security_inode_getsecctx(struct inode *inode, void **ctx, u32 *ctxlen) in security_inode_getsecctx() argument
|
D | lsm_hook_defs.h | 85 void **ctx, u32 *ctxlen) 266 LSM_HOOK(int, 0, inode_notifysecctx, struct inode *inode, void *ctx, u32 ctxlen) 267 LSM_HOOK(int, 0, inode_setsecctx, struct dentry *dentry, void *ctx, u32 ctxlen) 269 u32 *ctxlen)
|
/linux-6.1.9/fs/fuse/ |
D | dir.c | 474 u32 ctxlen, total_len = sizeof(*header); in get_security_context() local 480 &name, &ctx, &ctxlen); in get_security_context() 485 ctxlen = 0; in get_security_context() 489 if (ctxlen) { in get_security_context() 493 if (WARN_ON(namelen > XATTR_NAME_MAX + 1 || ctxlen > S32_MAX)) in get_security_context() 495 total_len += FUSE_REC_ALIGN(sizeof(*fctx) + namelen + ctxlen); in get_security_context() 508 fctx->size = ctxlen; in get_security_context() 514 memcpy(ptr, ctx, ctxlen); in get_security_context()
|
/linux-6.1.9/security/ |
D | security.c | 1065 u32 *ctxlen) in security_dentry_init_security() argument 1075 xattr_name, ctx, ctxlen); in security_dentry_init_security() 2142 int security_inode_notifysecctx(struct inode *inode, void *ctx, u32 ctxlen) in security_inode_notifysecctx() argument 2144 return call_int_hook(inode_notifysecctx, 0, inode, ctx, ctxlen); in security_inode_notifysecctx() 2148 int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen) in security_inode_setsecctx() argument 2150 return call_int_hook(inode_setsecctx, 0, dentry, ctx, ctxlen); in security_inode_setsecctx() 2154 int security_inode_getsecctx(struct inode *inode, void **ctx, u32 *ctxlen) in security_inode_getsecctx() argument 2156 return call_int_hook(inode_getsecctx, -EOPNOTSUPP, inode, ctx, ctxlen); in security_inode_getsecctx()
|
/linux-6.1.9/security/smack/ |
D | smack_lsm.c | 4612 static int smack_inode_notifysecctx(struct inode *inode, void *ctx, u32 ctxlen) in smack_inode_notifysecctx() argument 4615 ctxlen, 0); in smack_inode_notifysecctx() 4618 static int smack_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen) in smack_inode_setsecctx() argument 4621 ctx, ctxlen, 0); in smack_inode_setsecctx() 4624 static int smack_inode_getsecctx(struct inode *inode, void **ctx, u32 *ctxlen) in smack_inode_getsecctx() argument 4629 *ctxlen = strlen(skp->smk_known); in smack_inode_getsecctx()
|
/linux-6.1.9/security/selinux/ |
D | hooks.c | 2829 u32 *ctxlen) in selinux_dentry_init_security() argument 2845 ctxlen); in selinux_dentry_init_security() 6560 static int selinux_inode_notifysecctx(struct inode *inode, void *ctx, u32 ctxlen) in selinux_inode_notifysecctx() argument 6563 ctx, ctxlen, 0); in selinux_inode_notifysecctx() 6571 static int selinux_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen) in selinux_inode_setsecctx() argument 6574 ctx, ctxlen, 0); in selinux_inode_setsecctx() 6577 static int selinux_inode_getsecctx(struct inode *inode, void **ctx, u32 *ctxlen) in selinux_inode_getsecctx() argument 6584 *ctxlen = len; in selinux_inode_getsecctx()
|