| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Pkey table |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 11 | 12 | * Paul Moore <paul@paul-moore.com> |
|---|
| 12 | 13 | * (see security/selinux/netif.c and security/selinux/netport.c for more |
|---|
| 13 | 14 | * information) |
|---|
| 14 | | - * |
|---|
| 15 | 15 | */ |
|---|
| 16 | 16 | |
|---|
| 17 | 17 | /* |
|---|
| 18 | 18 | * (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 | | - * |
|---|
| 29 | 19 | */ |
|---|
| 30 | 20 | |
|---|
| 31 | 21 | #include <linux/types.h> |
|---|
| .. | .. |
|---|
| 234 | 224 | { |
|---|
| 235 | 225 | int iter; |
|---|
| 236 | 226 | |
|---|
| 237 | | - if (!selinux_enabled) |
|---|
| 227 | + if (!selinux_enabled_boot) |
|---|
| 238 | 228 | return 0; |
|---|
| 239 | 229 | |
|---|
| 240 | 230 | for (iter = 0; iter < SEL_PKEY_HASH_SIZE; iter++) { |
|---|