netport.h 556 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Network port table
  4. *
  5. * SELinux must keep a mapping of network ports to labels/SIDs. This
  6. * mapping is maintained as part of the normal policy but a fast cache is
  7. * needed to reduce the lookup overhead.
  8. *
  9. * Author: Paul Moore <[email protected]>
  10. */
  11. /*
  12. * (c) Copyright Hewlett-Packard Development Company, L.P., 2008
  13. */
  14. #ifndef _SELINUX_NETPORT_H
  15. #define _SELINUX_NETPORT_H
  16. #include <linux/types.h>
  17. void sel_netport_flush(void);
  18. int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid);
  19. #endif