ibpkey.h 847 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * pkey table
  3. *
  4. * SELinux must keep a mapping of pkeys 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. */
  9. /*
  10. * (c) Mellanox Technologies, 2016
  11. *
  12. * This program is free software: you can redistribute it and/or modify
  13. * it under the terms of version 2 of the GNU General Public License as
  14. * published by the Free Software Foundation.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. */
  22. #ifndef _SELINUX_IB_PKEY_H
  23. #define _SELINUX_IB_PKEY_H
  24. void sel_ib_pkey_flush(void);
  25. int sel_ib_pkey_sid(u64 subnet_prefix, u16 pkey, u32 *sid);
  26. #endif