Searched refs:tunsec (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/security/selinux/
H A Dhooks.c4679 struct tun_security_struct *tunsec; selinux_tun_dev_alloc_security() local
4681 tunsec = kzalloc(sizeof(*tunsec), GFP_KERNEL); selinux_tun_dev_alloc_security()
4682 if (!tunsec) selinux_tun_dev_alloc_security()
4684 tunsec->sid = current_sid(); selinux_tun_dev_alloc_security()
4686 *security = tunsec; selinux_tun_dev_alloc_security()
4712 struct tun_security_struct *tunsec = security; selinux_tun_dev_attach_queue() local
4714 return avc_has_perm(current_sid(), tunsec->sid, SECCLASS_TUN_SOCKET, selinux_tun_dev_attach_queue()
4720 struct tun_security_struct *tunsec = security; selinux_tun_dev_attach() local
4730 sksec->sid = tunsec->sid; selinux_tun_dev_attach()
4738 struct tun_security_struct *tunsec = security; selinux_tun_dev_open() local
4742 err = avc_has_perm(sid, tunsec->sid, SECCLASS_TUN_SOCKET, selinux_tun_dev_open()
4750 tunsec->sid = sid; selinux_tun_dev_open()

Completed in 224 milliseconds