Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / security / selinux / include / ibpkey.h
blobb17a19e348e658a3a2793bbba7c5fdbe50c75c4b
1 /*
2 * pkey table
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.
8 */
11 * (c) Mellanox Technologies, 2016
13 * This program is free software: you can redistribute it and/or modify
14 * it under the terms of version 2 of the GNU General Public License as
15 * published by the Free Software Foundation.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
24 #ifndef _SELINUX_IB_PKEY_H
25 #define _SELINUX_IB_PKEY_H
27 void sel_ib_pkey_flush(void);
29 int sel_ib_pkey_sid(u64 subnet_prefix, u16 pkey, u32 *sid);
31 #endif