xref: /linux/security/selinux/include/netnode.h (revision 224dfbd81e1ff672eb46e7695469c395bd531083)
1*224dfbd8SPaul Moore /*
2*224dfbd8SPaul Moore  * Network node table
3*224dfbd8SPaul Moore  *
4*224dfbd8SPaul Moore  * SELinux must keep a mapping of network nodes to labels/SIDs.  This
5*224dfbd8SPaul Moore  * mapping is maintained as part of the normal policy but a fast cache is
6*224dfbd8SPaul Moore  * needed to reduce the lookup overhead since most of these queries happen on
7*224dfbd8SPaul Moore  * a per-packet basis.
8*224dfbd8SPaul Moore  *
9*224dfbd8SPaul Moore  * Author: Paul Moore <paul.moore@hp.com>
10*224dfbd8SPaul Moore  *
11*224dfbd8SPaul Moore  */
12*224dfbd8SPaul Moore 
13*224dfbd8SPaul Moore /*
14*224dfbd8SPaul Moore  * (c) Copyright Hewlett-Packard Development Company, L.P., 2007
15*224dfbd8SPaul Moore  *
16*224dfbd8SPaul Moore  * This program is free software: you can redistribute it and/or modify
17*224dfbd8SPaul Moore  * it under the terms of version 2 of the GNU General Public License as
18*224dfbd8SPaul Moore  * published by the Free Software Foundation.
19*224dfbd8SPaul Moore  *
20*224dfbd8SPaul Moore  * This program is distributed in the hope that it will be useful,
21*224dfbd8SPaul Moore  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22*224dfbd8SPaul Moore  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23*224dfbd8SPaul Moore  * GNU General Public License for more details.
24*224dfbd8SPaul Moore  *
25*224dfbd8SPaul Moore  */
26*224dfbd8SPaul Moore 
27*224dfbd8SPaul Moore #ifndef _SELINUX_NETNODE_H
28*224dfbd8SPaul Moore #define _SELINUX_NETNODE_H
29*224dfbd8SPaul Moore 
30*224dfbd8SPaul Moore int sel_netnode_sid(void *addr, u16 family, u32 *sid);
31*224dfbd8SPaul Moore 
32*224dfbd8SPaul Moore #endif
33