Home
last modified time | relevance | path

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

/openbmc/linux/security/selinux/
H A Dxfrm.c92 ctx = kmalloc(struct_size(ctx, ctx_str, str_len + 1), gfp); in selinux_xfrm_alloc_user()
99 memcpy(ctx->ctx_str, &uctx[1], str_len); in selinux_xfrm_alloc_user()
100 ctx->ctx_str[str_len] = '\0'; in selinux_xfrm_alloc_user()
101 rc = security_context_to_sid(ctx->ctx_str, str_len, in selinux_xfrm_alloc_user()
346 char *ctx_str = NULL; in selinux_xfrm_state_alloc_acquire() local
355 rc = security_sid_to_context(secid, &ctx_str, in selinux_xfrm_state_alloc_acquire()
360 ctx = kmalloc(struct_size(ctx, ctx_str, str_len), GFP_ATOMIC); in selinux_xfrm_state_alloc_acquire()
370 memcpy(ctx->ctx_str, ctx_str, str_len); in selinux_xfrm_state_alloc_acquire()
375 kfree(ctx_str); in selinux_xfrm_state_alloc_acquire()
/openbmc/u-boot/arch/arm/mach-imx/
H A Dhab.c120 static char *ctx_str[] = { variable
225 printf("%s", ctx_str[get_idx(hab_contexts, rec->contents[2])]); in process_event_record()
/openbmc/linux/include/uapi/linux/
H A Dxfrm.h36 char ctx_str[]; member
/openbmc/linux/net/key/
H A Daf_key.c1036 memcpy(sec_ctx + 1, xfrm_ctx->ctx_str, in __pfkey_xfrm_state2msg()
2204 memcpy(sec_ctx + 1, xfrm_ctx->ctx_str, in pfkey_xfrm_policy2msg()
3257 memcpy(sec_ctx + 1, xfrm_ctx->ctx_str, in pfkey_send_acquire()
/openbmc/linux/net/xfrm/
H A Dxfrm_state.c1704 memcpy(uctx + 1, security->ctx_str, security->ctx_len); in clone_security()
3002 ctx->ctx_alg, ctx->ctx_doi, ctx->ctx_str); in xfrm_audit_helper_sainfo()
H A Dxfrm_user.c946 memcpy(uctx + 1, s->ctx_str, s->ctx_len); in copy_sec_ctx()
H A Dxfrm_policy.c4302 ctx->ctx_alg, ctx->ctx_doi, ctx->ctx_str); in xfrm_audit_common_policyinfo()