1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-only */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * Network node table 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * SELinux must keep a mapping of network nodes to labels/SIDs. This 6*4882a593Smuzhiyun * mapping is maintained as part of the normal policy but a fast cache is 7*4882a593Smuzhiyun * needed to reduce the lookup overhead since most of these queries happen on 8*4882a593Smuzhiyun * a per-packet basis. 9*4882a593Smuzhiyun * 10*4882a593Smuzhiyun * Author: Paul Moore <paul@paul-moore.com> 11*4882a593Smuzhiyun */ 12*4882a593Smuzhiyun 13*4882a593Smuzhiyun /* 14*4882a593Smuzhiyun * (c) Copyright Hewlett-Packard Development Company, L.P., 2007 15*4882a593Smuzhiyun */ 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun #ifndef _SELINUX_NETNODE_H 18*4882a593Smuzhiyun #define _SELINUX_NETNODE_H 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun void sel_netnode_flush(void); 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun int sel_netnode_sid(void *addr, u16 family, u32 *sid); 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun #endif 25