]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
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 c992f83b0aae00ec467acb2cd87d42b195ab7435..875b055849e1f7013e87272bd09d78d2d9593264 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 60820517aa438652b70bc307f7fe1eecd7d52fd2..ecc6e74fa09bd09e4c2ade578d30bd8b7c144928 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",