Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Network port table
0004  *
0005  * SELinux must keep a mapping of network ports to labels/SIDs.  This
0006  * mapping is maintained as part of the normal policy but a fast cache is
0007  * needed to reduce the lookup overhead.
0008  *
0009  * Author: Paul Moore <paul@paul-moore.com>
0010  */
0011 
0012 /*
0013  * (c) Copyright Hewlett-Packard Development Company, L.P., 2008
0014  */
0015 
0016 #ifndef _SELINUX_NETPORT_H
0017 #define _SELINUX_NETPORT_H
0018 
0019 #include <linux/types.h>
0020 
0021 void sel_netport_flush(void);
0022 
0023 int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid);
0024 
0025 #endif