Home
last modified time | relevance | path

Searched refs:uctx (Results 1 – 3 of 3) sorted by relevance

/security/selinux/
A Dxfrm.c75 struct xfrm_user_sec_ctx *uctx, in selinux_xfrm_alloc_user() argument
82 if (ctxp == NULL || uctx == NULL || in selinux_xfrm_alloc_user()
83 uctx->ctx_doi != XFRM_SC_DOI_LSM || in selinux_xfrm_alloc_user()
84 uctx->ctx_alg != XFRM_SC_ALG_SELINUX) in selinux_xfrm_alloc_user()
87 str_len = uctx->ctx_len; in selinux_xfrm_alloc_user()
98 memcpy(ctx->ctx_str, &uctx[1], str_len); in selinux_xfrm_alloc_user()
280 struct xfrm_user_sec_ctx *uctx, in selinux_xfrm_policy_alloc() argument
283 return selinux_xfrm_alloc_user(ctxp, uctx, gfp); in selinux_xfrm_policy_alloc()
329 struct xfrm_user_sec_ctx *uctx) in selinux_xfrm_state_alloc() argument
331 return selinux_xfrm_alloc_user(&x->security, uctx, GFP_KERNEL); in selinux_xfrm_state_alloc()
/security/selinux/include/
A Dxfrm.h17 struct xfrm_user_sec_ctx *uctx, gfp_t gfp);
23 struct xfrm_user_sec_ctx *uctx);
/security/
A Dsecurity.c882 int lsm_fill_user_ctx(struct lsm_ctx __user *uctx, u32 *uctx_len, in lsm_fill_user_ctx() argument
897 if (!uctx) in lsm_fill_user_ctx()
911 if (copy_to_user(uctx, nctx, nctx_len)) in lsm_fill_user_ctx()
4133 int security_getselfattr(unsigned int attr, struct lsm_ctx __user *uctx, in security_getselfattr() argument
4138 u8 __user *base = (u8 __user *)uctx; in security_getselfattr()
4158 if (flags != LSM_FLAG_SINGLE || !uctx) in security_getselfattr()
4160 if (copy_from_user(&lctx, uctx, sizeof(lctx))) in security_getselfattr()
4179 uctx = (struct lsm_ctx __user *)(base + total); in security_getselfattr()
4180 rc = scall->hl->hook.getselfattr(attr, uctx, &entrysize, flags); in security_getselfattr()
4224 int security_setselfattr(unsigned int attr, struct lsm_ctx __user *uctx, in security_setselfattr() argument
[all …]

Completed in 22 milliseconds