Path: blob/master/security/selinux/include/netport.h
10817 views
/*1* Network port table2*3* SELinux must keep a mapping of network ports to labels/SIDs. This4* mapping is maintained as part of the normal policy but a fast cache is5* needed to reduce the lookup overhead.6*7* Author: Paul Moore <[email protected]>8*9*/1011/*12* (c) Copyright Hewlett-Packard Development Company, L.P., 200813*14* This program is free software: you can redistribute it and/or modify15* it under the terms of version 2 of the GNU General Public License as16* published by the Free Software Foundation.17*18* This program is distributed in the hope that it will be useful,19* but WITHOUT ANY WARRANTY; without even the implied warranty of20* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the21* GNU General Public License for more details.22*23*/2425#ifndef _SELINUX_NETPORT_H26#define _SELINUX_NETPORT_H2728int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid);2930#endif313233