hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/security/selinux/ibpkey.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Pkey table
34 *
....@@ -11,21 +12,10 @@
1112 * Paul Moore <paul@paul-moore.com>
1213 * (see security/selinux/netif.c and security/selinux/netport.c for more
1314 * information)
14
- *
1515 */
1616
1717 /*
1818 * (c) Mellanox Technologies, 2016
19
- *
20
- * This program is free software: you can redistribute it and/or modify
21
- * it under the terms of version 2 of the GNU General Public License as
22
- * published by the Free Software Foundation.
23
- *
24
- * This program is distributed in the hope that it will be useful,
25
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
26
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27
- * GNU General Public License for more details.
28
- *
2919 */
3020
3121 #include <linux/types.h>
....@@ -234,7 +224,7 @@
234224 {
235225 int iter;
236226
237
- if (!selinux_enabled)
227
+ if (!selinux_enabled_boot)
238228 return 0;
239229
240230 for (iter = 0; iter < SEL_PKEY_HASH_SIZE; iter++) {