Lines Matching refs:tunsec
5430 struct tun_security_struct *tunsec; in selinux_tun_dev_alloc_security() local
5432 tunsec = kzalloc(sizeof(*tunsec), GFP_KERNEL); in selinux_tun_dev_alloc_security()
5433 if (!tunsec) in selinux_tun_dev_alloc_security()
5435 tunsec->sid = current_sid(); in selinux_tun_dev_alloc_security()
5437 *security = tunsec; in selinux_tun_dev_alloc_security()
5464 struct tun_security_struct *tunsec = security; in selinux_tun_dev_attach_queue() local
5467 current_sid(), tunsec->sid, SECCLASS_TUN_SOCKET, in selinux_tun_dev_attach_queue()
5473 struct tun_security_struct *tunsec = security; in selinux_tun_dev_attach() local
5483 sksec->sid = tunsec->sid; in selinux_tun_dev_attach()
5491 struct tun_security_struct *tunsec = security; in selinux_tun_dev_open() local
5496 sid, tunsec->sid, SECCLASS_TUN_SOCKET, in selinux_tun_dev_open()
5505 tunsec->sid = sid; in selinux_tun_dev_open()