selinux: make header files self-including
authorChristian Göttsche <cgzones@googlemail.com>
Fri, 12 May 2023 09:21:55 +0000 (11:21 +0200)
committerPaul Moore <paul@paul-moore.com>
Thu, 18 May 2023 18:12:43 +0000 (14:12 -0400)
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>
security/selinux/include/ibpkey.h
security/selinux/include/initial_sid_to_string.h

index c992f83..875b055 100644 (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);
index 6082051..ecc6e74 100644 (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",