Skip to content

Commit eb14232

Browse files
cgzonespcmoore
authored andcommitted
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>
1 parent ed99135 commit eb14232

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

security/selinux/include/ibpkey.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#define _SELINUX_IB_PKEY_H
1616

1717
#include <linux/types.h>
18+
#include "flask.h"
1819

1920
#ifdef CONFIG_SECURITY_INFINIBAND
2021
void sel_ib_pkey_flush(void);

security/selinux/include/initial_sid_to_string.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
2+
3+
#include <linux/stddef.h>
4+
25
static const char *const initial_sid_to_string[] = {
36
NULL,
47
"kernel",

0 commit comments

Comments
 (0)