Lines Matching defs:secid

2890  * security_cred_getsecid() - Get the secid from a set of credentials
2892 * @secid: secid value
2895 * failure, @secid will be set to zero.
2897 void security_cred_getsecid(const struct cred *c, u32 *secid)
2899 *secid = 0;
2900 call_void_hook(cred_getsecid, c, secid);
2920 * security_kernel_act_as() - Set the kernel credentials to act as secid
2922 * @secid: secid
2925 * The current task must be the one that nominated @secid.
2929 int security_kernel_act_as(struct cred *new, u32 secid)
2931 return call_int_hook(kernel_act_as, new, secid);
3919 * security_secid_to_secctx() - Convert a secid to a secctx
3920 * @secid: secid
3923 * Convert secid to security context. If @cp is NULL the length of the
3930 int security_secid_to_secctx(u32 secid, struct lsm_context *cp)
3932 return call_int_hook(secid_to_secctx, secid, cp);
3969 * security_secctx_to_secid() - Convert a secctx to a secid
3972 * @secid: secid
3974 * Convert security context to secid.
3978 int security_secctx_to_secid(const char *secdata, u32 seclen, u32 *secid)
3980 *secid = 0;
3981 return call_int_hook(secctx_to_secid, secdata, seclen, secid);
4450 * @secid: remote peer label secid
4461 struct sk_buff *skb, u32 *secid)
4463 return call_int_hook(socket_getpeersec_dgram, sock, skb, secid);
4531 * security_sk_classify_flow() - Set a flow's secid based on socket
4535 * Set the target flow's secid to socket's secid.
4544 * security_req_classify_flow() - Set a flow's secid based on request_sock
4548 * Sets @flic's secid to @req's secid.
4562 * Sets @parent's inode secid to @sk's secid and update @sk with any necessary
4617 * @secid: new secmark value
4619 * Check if the process should be allowed to relabel packets to @secid.
4623 int security_secmark_relabel_packet(u32 secid)
4625 return call_int_hook(secmark_relabel_packet, secid);
5012 * @secid: secid from the flow
5016 * correspond to secid.
5021 struct xfrm_sec_ctx *polsec, u32 secid)
5023 return call_int_hook(xfrm_state_alloc_acquire, x, polsec, secid);
5054 * @fl_secid: flow secid used to authorize access
5102 * security_xfrm_decode_session() - Determine the xfrm secid for a packet
5104 * @secid: secid
5106 * Decode the packet in @skb and return the security label in @secid.
5108 * Return: Return 0 if all xfrms used have the same secid.
5110 int security_xfrm_decode_session(struct sk_buff *skb, u32 *secid)
5112 return call_int_hook(xfrm_decode_session, skb, secid, 1);
5270 * Determine if given @secid matches a rule previously approved by
5273 * Return: Returns 1 if secid matches the rule, 0 if it does not, -ERRNO on