selinux: make header files self-including

Include all necessary headers in header files to enable third party
applications, like LSP servers, to resolve all used symbols.

ibpkey.h: include "flask.h" for SECINITSID_UNLABELED
initial_sid_to_string.h: include <linux/stddef.h> for NULL

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
Christian Göttsche 2023-05-12 11:21:55 +02:00 committed by Paul Moore
parent ed99135f76
commit eb14232fb7
2 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,7 @@
#define _SELINUX_IB_PKEY_H
#include <linux/types.h>
#include "flask.h"
#ifdef CONFIG_SECURITY_INFINIBAND
void sel_ib_pkey_flush(void);

View File

@ -1,4 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0 */
#include <linux/stddef.h>
static const char *const initial_sid_to_string[] = {
NULL,
"kernel",