Thomas Gleixner | 5b497af | 2019-05-29 07:18:09 -0700 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Daniel Jurgens | 409dcf3 | 2017-05-19 15:48:59 +0300 | [diff] [blame] | 2 | /* |
| 3 | * pkey table |
| 4 | * |
| 5 | * SELinux must keep a mapping of pkeys 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. |
Daniel Jurgens | 409dcf3 | 2017-05-19 15:48:59 +0300 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | /* |
| 11 | * (c) Mellanox Technologies, 2016 |
Daniel Jurgens | 409dcf3 | 2017-05-19 15:48:59 +0300 | [diff] [blame] | 12 | */ |
| 13 | |
| 14 | #ifndef _SELINUX_IB_PKEY_H |
| 15 | #define _SELINUX_IB_PKEY_H |
| 16 | |
| 17 | void sel_ib_pkey_flush(void); |
| 18 | |
| 19 | int sel_ib_pkey_sid(u64 subnet_prefix, u16 pkey, u32 *sid); |
| 20 | |
| 21 | #endif |