Lines Matching refs:tunsec
5542 struct tun_security_struct *tunsec; in selinux_tun_dev_alloc_security() local
5544 tunsec = kzalloc(sizeof(*tunsec), GFP_KERNEL); in selinux_tun_dev_alloc_security()
5545 if (!tunsec) in selinux_tun_dev_alloc_security()
5547 tunsec->sid = current_sid(); in selinux_tun_dev_alloc_security()
5549 *security = tunsec; in selinux_tun_dev_alloc_security()
5576 struct tun_security_struct *tunsec = security; in selinux_tun_dev_attach_queue() local
5579 current_sid(), tunsec->sid, SECCLASS_TUN_SOCKET, in selinux_tun_dev_attach_queue()
5585 struct tun_security_struct *tunsec = security; in selinux_tun_dev_attach() local
5595 sksec->sid = tunsec->sid; in selinux_tun_dev_attach()
5603 struct tun_security_struct *tunsec = security; in selinux_tun_dev_open() local
5608 sid, tunsec->sid, SECCLASS_TUN_SOCKET, in selinux_tun_dev_open()
5617 tunsec->sid = sid; in selinux_tun_dev_open()