Home
last modified time | relevance | path

Searched refs:lsm_ctx (Results 1 – 12 of 12) sorted by relevance

/linux-6.12.1/tools/testing/selftests/lsm/
Dlsm_set_self_attr_test.c21 sizeof(struct lsm_ctx), 0)); in TEST()
27 struct lsm_ctx *ctx = calloc(page_size, 1); in TEST()
43 struct lsm_ctx *ctx = calloc(page_size, 1); in TEST()
61 struct lsm_ctx *tctx = (struct lsm_ctx *)ctx; in TEST()
Dlsm_get_self_attr_test.c19 static struct lsm_ctx *next_ctx(struct lsm_ctx *ctxp) in next_ctx()
24 return (struct lsm_ctx *)vp; in next_ctx()
30 struct lsm_ctx *ctx = calloc(page_size, 1); in TEST()
59 struct lsm_ctx *ctx = calloc(page_size, 1); in TEST()
78 struct lsm_ctx *ctx = calloc(page_size, 1); in TEST()
119 struct lsm_ctx *ctx = calloc(page_size, 1); in TEST()
144 struct lsm_ctx *ctx = calloc(page_size, 1); in TEST()
145 struct lsm_ctx *tctx = NULL; in TEST()
Dcommon.h9 static inline int lsm_get_self_attr(unsigned int attr, struct lsm_ctx *ctx, in lsm_get_self_attr()
17 static inline int lsm_set_self_attr(unsigned int attr, struct lsm_ctx *ctx, in lsm_set_self_attr()
/linux-6.12.1/security/
Dlsm_syscalls.c55 SYSCALL_DEFINE4(lsm_set_self_attr, unsigned int, attr, struct lsm_ctx __user *, in SYSCALL_DEFINE4()
77 SYSCALL_DEFINE4(lsm_get_self_attr, unsigned int, attr, struct lsm_ctx __user *, in SYSCALL_DEFINE4()
Dsecurity.c883 int lsm_fill_user_ctx(struct lsm_ctx __user *uctx, u32 *uctx_len, in lsm_fill_user_ctx()
887 struct lsm_ctx *nctx = NULL; in lsm_fill_user_ctx()
4087 int security_getselfattr(unsigned int attr, struct lsm_ctx __user *uctx, in security_getselfattr()
4091 struct lsm_ctx lctx = { .id = LSM_ID_UNDEF, }; in security_getselfattr()
4133 uctx = (struct lsm_ctx __user *)(base + total); in security_getselfattr()
4180 int security_setselfattr(unsigned int attr, struct lsm_ctx __user *uctx, in security_setselfattr()
4184 struct lsm_ctx *lctx; in security_setselfattr()
/linux-6.12.1/include/uapi/linux/
Dlsm.h35 struct lsm_ctx { struct
/linux-6.12.1/include/linux/
Dsecurity.h65 struct lsm_ctx;
508 int security_getselfattr(unsigned int attr, struct lsm_ctx __user *ctx,
510 int security_setselfattr(unsigned int attr, struct lsm_ctx __user *ctx,
525 int lsm_fill_user_ctx(struct lsm_ctx __user *uctx, u32 *uctx_len,
1436 struct lsm_ctx __user *ctx, in security_getselfattr()
1443 struct lsm_ctx __user *ctx, in security_setselfattr()
1507 static inline int lsm_fill_user_ctx(struct lsm_ctx __user *uctx, in lsm_fill_user_ctx()
Dlsm_hook_defs.h288 struct lsm_ctx __user *ctx, u32 *size, u32 flags)
290 struct lsm_ctx *ctx, u32 size, u32 flags)
Dsyscalls.h74 struct lsm_ctx;
969 asmlinkage long sys_lsm_get_self_attr(unsigned int attr, struct lsm_ctx __user *ctx,
971 asmlinkage long sys_lsm_set_self_attr(unsigned int attr, struct lsm_ctx __user *ctx,
/linux-6.12.1/security/apparmor/
Dlsm.c782 static int apparmor_getselfattr(unsigned int attr, struct lsm_ctx __user *lx, in apparmor_getselfattr()
927 static int apparmor_setselfattr(unsigned int attr, struct lsm_ctx *ctx, in apparmor_setselfattr()
/linux-6.12.1/security/smack/
Dsmack_lsm.c3674 static int smack_getselfattr(unsigned int attr, struct lsm_ctx __user *ctx, in smack_getselfattr()
3795 static int smack_setselfattr(unsigned int attr, struct lsm_ctx *ctx, in smack_setselfattr()
/linux-6.12.1/security/selinux/
Dhooks.c6547 static int selinux_getselfattr(unsigned int attr, struct lsm_ctx __user *ctx, in selinux_getselfattr()
6562 static int selinux_setselfattr(unsigned int attr, struct lsm_ctx *ctx, in selinux_setselfattr()