127cc2a6eSJames Morris /* 227cc2a6eSJames Morris * Network port table 327cc2a6eSJames Morris * 427cc2a6eSJames Morris * SELinux must keep a mapping of network ports to labels/SIDs. This 527cc2a6eSJames Morris * mapping is maintained as part of the normal policy but a fast cache is 627cc2a6eSJames Morris * needed to reduce the lookup overhead. 727cc2a6eSJames Morris * 8*82c21bfaSPaul Moore * Author: Paul Moore <paul@paul-moore.com> 927cc2a6eSJames Morris * 1027cc2a6eSJames Morris */ 1127cc2a6eSJames Morris 1227cc2a6eSJames Morris /* 1327cc2a6eSJames Morris * (c) Copyright Hewlett-Packard Development Company, L.P., 2008 1427cc2a6eSJames Morris * 1527cc2a6eSJames Morris * This program is free software: you can redistribute it and/or modify 1627cc2a6eSJames Morris * it under the terms of version 2 of the GNU General Public License as 1727cc2a6eSJames Morris * published by the Free Software Foundation. 1827cc2a6eSJames Morris * 1927cc2a6eSJames Morris * This program is distributed in the hope that it will be useful, 2027cc2a6eSJames Morris * but WITHOUT ANY WARRANTY; without even the implied warranty of 2127cc2a6eSJames Morris * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 2227cc2a6eSJames Morris * GNU General Public License for more details. 2327cc2a6eSJames Morris * 2427cc2a6eSJames Morris */ 2527cc2a6eSJames Morris 2627cc2a6eSJames Morris #ifndef _SELINUX_NETPORT_H 2727cc2a6eSJames Morris #define _SELINUX_NETPORT_H 2827cc2a6eSJames Morris 2927cc2a6eSJames Morris int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid); 3027cc2a6eSJames Morris 3127cc2a6eSJames Morris #endif 32