18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Network port table 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * SELinux must keep a mapping of network ports to labels/SIDs. This 68c2ecf20Sopenharmony_ci * mapping is maintained as part of the normal policy but a fast cache is 78c2ecf20Sopenharmony_ci * needed to reduce the lookup overhead. 88c2ecf20Sopenharmony_ci * 98c2ecf20Sopenharmony_ci * Author: Paul Moore <paul@paul-moore.com> 108c2ecf20Sopenharmony_ci */ 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci/* 138c2ecf20Sopenharmony_ci * (c) Copyright Hewlett-Packard Development Company, L.P., 2008 148c2ecf20Sopenharmony_ci */ 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci#ifndef _SELINUX_NETPORT_H 178c2ecf20Sopenharmony_ci#define _SELINUX_NETPORT_H 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_civoid sel_netport_flush(void); 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ciint sel_netport_sid(u8 protocol, u16 pnum, u32 *sid); 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci#endif 24