1224dfbd8SPaul Moore /* 2224dfbd8SPaul Moore * Network node table 3224dfbd8SPaul Moore * 4224dfbd8SPaul Moore * SELinux must keep a mapping of network nodes to labels/SIDs. This 5224dfbd8SPaul Moore * mapping is maintained as part of the normal policy but a fast cache is 6224dfbd8SPaul Moore * needed to reduce the lookup overhead since most of these queries happen on 7224dfbd8SPaul Moore * a per-packet basis. 8224dfbd8SPaul Moore * 9*82c21bfaSPaul Moore * Author: Paul Moore <paul@paul-moore.com> 10224dfbd8SPaul Moore * 11224dfbd8SPaul Moore */ 12224dfbd8SPaul Moore 13224dfbd8SPaul Moore /* 14224dfbd8SPaul Moore * (c) Copyright Hewlett-Packard Development Company, L.P., 2007 15224dfbd8SPaul Moore * 16224dfbd8SPaul Moore * This program is free software: you can redistribute it and/or modify 17224dfbd8SPaul Moore * it under the terms of version 2 of the GNU General Public License as 18224dfbd8SPaul Moore * published by the Free Software Foundation. 19224dfbd8SPaul Moore * 20224dfbd8SPaul Moore * This program is distributed in the hope that it will be useful, 21224dfbd8SPaul Moore * but WITHOUT ANY WARRANTY; without even the implied warranty of 22224dfbd8SPaul Moore * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23224dfbd8SPaul Moore * GNU General Public License for more details. 24224dfbd8SPaul Moore * 25224dfbd8SPaul Moore */ 26224dfbd8SPaul Moore 27224dfbd8SPaul Moore #ifndef _SELINUX_NETNODE_H 28224dfbd8SPaul Moore #define _SELINUX_NETNODE_H 29224dfbd8SPaul Moore 30224dfbd8SPaul Moore int sel_netnode_sid(void *addr, u16 family, u32 *sid); 31224dfbd8SPaul Moore 32224dfbd8SPaul Moore #endif 33