case NETLINK_KOBJECT_UEVENT: return SECCLASS_NETLINK_KOBJECT_UEVENT_SOCKET; 
static inline u16 socket_type_to_security_class(int family, int type, int protocol){	switch (family) {	case PF_UNIX:		switch (type) {		case SOCK_STREAM:		case SOCK_SEQPACKET:			return SECCLASS_UNIX_STREAM_SOCKET;		case SOCK_DGRAM:			return SECCLASS_UNIX_DGRAM_SOCKET;		}		break;	case PF_INET:	case PF_INET6:		switch (type) {		case SOCK_STREAM:			return SECCLASS_TCP_SOCKET;		case SOCK_DGRAM:			return SECCLASS_UDP_SOCKET;		case SOCK_RAW:			return SECCLASS_RAWIP_SOCKET;		}		break;	case PF_NETLINK:		switch (protocol) {		case NETLINK_ROUTE:			return SECCLASS_NETLINK_ROUTE_SOCKET;		case NETLINK_FIREWALL:			return SECCLASS_NETLINK_FIREWALL_SOCKET;		case NETLINK_TCPDIAG:			return SECCLASS_NETLINK_TCPDIAG_SOCKET;		case NETLINK_NFLOG:			return SECCLASS_NETLINK_NFLOG_SOCKET;		case NETLINK_XFRM:			return SECCLASS_NETLINK_XFRM_SOCKET;		case NETLINK_SELINUX:			return SECCLASS_NETLINK_SELINUX_SOCKET;		case NETLINK_AUDIT:			return SECCLASS_NETLINK_AUDIT_SOCKET;		case NETLINK_IP6_FW:			return SECCLASS_NETLINK_IP6FW_SOCKET;		case NETLINK_DNRTMSG:			return SECCLASS_NETLINK_DNRT_SOCKET;		default:			return SECCLASS_NETLINK_SOCKET;		}	case PF_PACKET:		return SECCLASS_PACKET_SOCKET;	case PF_KEY:		return SECCLASS_KEY_SOCKET;	}	return SECCLASS_SOCKET;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/0c9b79429c83a404a04908be65baa9d97836bbb6/hooks.c/buggy/security/selinux/hooks.c