Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Network node table
0004  *
0005  * SELinux must keep a mapping of network nodes 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 since most of these queries happen on
0008  * a per-packet basis.
0009  *
0010  * Author: Paul Moore <paul@paul-moore.com>
0011  */
0012 
0013 /*
0014  * (c) Copyright Hewlett-Packard Development Company, L.P., 2007
0015  */
0016 
0017 #ifndef _SELINUX_NETNODE_H
0018 #define _SELINUX_NETNODE_H
0019 
0020 #include <linux/types.h>
0021 
0022 void sel_netnode_flush(void);
0023 
0024 int sel_netnode_sid(void *addr, u16 family, u32 *sid);
0025 
0026 #endif