Searched refs:tunsec (Results 1 – 1 of 1) sorted by relevance
4696 struct tun_security_struct *tunsec; in selinux_tun_dev_alloc_security() local4698 tunsec = kzalloc(sizeof(*tunsec), GFP_KERNEL); in selinux_tun_dev_alloc_security()4699 if (!tunsec) in selinux_tun_dev_alloc_security()4701 tunsec->sid = current_sid(); in selinux_tun_dev_alloc_security()4703 *security = tunsec; in selinux_tun_dev_alloc_security()4729 struct tun_security_struct *tunsec = security; in selinux_tun_dev_attach_queue() local4731 return avc_has_perm(current_sid(), tunsec->sid, SECCLASS_TUN_SOCKET, in selinux_tun_dev_attach_queue()4737 struct tun_security_struct *tunsec = security; in selinux_tun_dev_attach() local4747 sksec->sid = tunsec->sid; in selinux_tun_dev_attach()4755 struct tun_security_struct *tunsec = security; in selinux_tun_dev_open() local[all …]