Path: blob/master/security/selinux/include/netnode.h
10817 views
/*1* Network node table2*3* SELinux must keep a mapping of network nodes to labels/SIDs. This4* mapping is maintained as part of the normal policy but a fast cache is5* needed to reduce the lookup overhead since most of these queries happen on6* a per-packet basis.7*8* Author: Paul Moore <[email protected]>9*10*/1112/*13* (c) Copyright Hewlett-Packard Development Company, L.P., 200714*15* This program is free software: you can redistribute it and/or modify16* it under the terms of version 2 of the GNU General Public License as17* published by the Free Software Foundation.18*19* This program is distributed in the hope that it will be useful,20* but WITHOUT ANY WARRANTY; without even the implied warranty of21* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the22* GNU General Public License for more details.23*24*/2526#ifndef _SELINUX_NETNODE_H27#define _SELINUX_NETNODE_H2829int sel_netnode_sid(void *addr, u16 family, u32 *sid);3031#endif323334