1*27cc2a6eSJames Morris /* 2*27cc2a6eSJames Morris * Network port table 3*27cc2a6eSJames Morris * 4*27cc2a6eSJames Morris * SELinux must keep a mapping of network ports to labels/SIDs. This 5*27cc2a6eSJames Morris * mapping is maintained as part of the normal policy but a fast cache is 6*27cc2a6eSJames Morris * needed to reduce the lookup overhead. 7*27cc2a6eSJames Morris * 8*27cc2a6eSJames Morris * Author: Paul Moore <paul.moore@hp.com> 9*27cc2a6eSJames Morris * 10*27cc2a6eSJames Morris */ 11*27cc2a6eSJames Morris 12*27cc2a6eSJames Morris /* 13*27cc2a6eSJames Morris * (c) Copyright Hewlett-Packard Development Company, L.P., 2008 14*27cc2a6eSJames Morris * 15*27cc2a6eSJames Morris * This program is free software: you can redistribute it and/or modify 16*27cc2a6eSJames Morris * it under the terms of version 2 of the GNU General Public License as 17*27cc2a6eSJames Morris * published by the Free Software Foundation. 18*27cc2a6eSJames Morris * 19*27cc2a6eSJames Morris * This program is distributed in the hope that it will be useful, 20*27cc2a6eSJames Morris * but WITHOUT ANY WARRANTY; without even the implied warranty of 21*27cc2a6eSJames Morris * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22*27cc2a6eSJames Morris * GNU General Public License for more details. 23*27cc2a6eSJames Morris * 24*27cc2a6eSJames Morris */ 25*27cc2a6eSJames Morris 26*27cc2a6eSJames Morris #ifndef _SELINUX_NETPORT_H 27*27cc2a6eSJames Morris #define _SELINUX_NETPORT_H 28*27cc2a6eSJames Morris 29*27cc2a6eSJames Morris int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid); 30*27cc2a6eSJames Morris 31*27cc2a6eSJames Morris #endif 32