netport.h 903 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Network port table
  3. *
  4. * SELinux must keep a mapping of network ports to labels/SIDs. This
  5. * mapping is maintained as part of the normal policy but a fast cache is
  6. * needed to reduce the lookup overhead.
  7. *
  8. * Author: Paul Moore <paul@paul-moore.com>
  9. *
  10. */
  11. /*
  12. * (c) Copyright Hewlett-Packard Development Company, L.P., 2008
  13. *
  14. * This program is free software: you can redistribute it and/or modify
  15. * it under the terms of version 2 of the GNU General Public License as
  16. * published by the Free Software Foundation.
  17. *
  18. * This program is distributed in the hope that it will be useful,
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. * GNU General Public License for more details.
  22. *
  23. */
  24. #ifndef _SELINUX_NETPORT_H
  25. #define _SELINUX_NETPORT_H
  26. int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid);
  27. #endif