Lines Matching full:sid
30 * selinux_netlbl_sidlookup_cached - Cache a SID lookup
34 * @sid: the SID
37 * Query the SELinux security server to lookup the correct SID for the given
45 u32 *sid) in selinux_netlbl_sidlookup_cached() argument
49 rc = security_netlbl_secattr_to_sid(&selinux_state, secattr, sid); in selinux_netlbl_sidlookup_cached()
80 rc = security_netlbl_sid_to_secattr(&selinux_state, sksec->sid, in selinux_netlbl_sock_genattr()
94 * @sid: the SID
96 * Query the socket's cached secattr and if the SID matches the cached value
102 u32 sid) in selinux_netlbl_sock_getattr() argument
111 (secattr->attr.secid == sid)) in selinux_netlbl_sock_getattr()
177 * selinux_netlbl_skbuff_getsid - Get the sid of a packet using NetLabel
181 * @sid: the SID
185 * packet and use those attributes to determine the correct context/SID to
192 u32 *sid) in selinux_netlbl_skbuff_getsid() argument
198 *sid = SECSID_NULL; in selinux_netlbl_skbuff_getsid()
206 &secattr, sid); in selinux_netlbl_skbuff_getsid()
208 *sid = SECSID_NULL; in selinux_netlbl_skbuff_getsid()
216 * selinux_netlbl_skbuff_setsid - Set the NetLabel on a packet given a sid
219 * @sid: the SID
222 * Call the NetLabel mechanism to set the label of a packet using @sid.
228 u32 sid) in selinux_netlbl_skbuff_setsid() argument
243 secattr = selinux_netlbl_sock_getattr(sk, sid); in selinux_netlbl_skbuff_setsid()
248 rc = security_netlbl_sid_to_secattr(&selinux_state, sid, in selinux_netlbl_skbuff_setsid()
389 * SID. Returns zero values on success, negative values on failure.
467 sksec->sid, nlbl_sid, sksec->sclass, perm, ad); in selinux_netlbl_sock_rcv_skb()