15b497af4SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */ 2224dfbd8SPaul Moore /* 3224dfbd8SPaul Moore * Network node table 4224dfbd8SPaul Moore * 5224dfbd8SPaul Moore * SELinux must keep a mapping of network nodes to labels/SIDs. This 6224dfbd8SPaul Moore * mapping is maintained as part of the normal policy but a fast cache is 7224dfbd8SPaul Moore * needed to reduce the lookup overhead since most of these queries happen on 8224dfbd8SPaul Moore * a per-packet basis. 9224dfbd8SPaul Moore * 1082c21bfaSPaul Moore * Author: Paul Moore <paul@paul-moore.com> 11224dfbd8SPaul Moore */ 12224dfbd8SPaul Moore 13224dfbd8SPaul Moore /* 14224dfbd8SPaul Moore * (c) Copyright Hewlett-Packard Development Company, L.P., 2007 15224dfbd8SPaul Moore */ 16224dfbd8SPaul Moore 17224dfbd8SPaul Moore #ifndef _SELINUX_NETNODE_H 18224dfbd8SPaul Moore #define _SELINUX_NETNODE_H 19224dfbd8SPaul Moore 20*4ad37de4SChristian Göttsche #include <linux/types.h> 21*4ad37de4SChristian Göttsche 22615e51fdSPaul Moore void sel_netnode_flush(void); 23615e51fdSPaul Moore 24224dfbd8SPaul Moore int sel_netnode_sid(void *addr, u16 family, u32 *sid); 25224dfbd8SPaul Moore 26224dfbd8SPaul Moore #endif 27