Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selinux: include necessary headers in headers

Include header files required for struct or typedef declarations in
header files. This is for example helpful when working with an IDE, which
needs to resolve those symbols.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>

authored by

Christian Göttsche and committed by
Paul Moore
4ad37de4 1d4e8036

+12 -1
+3
security/selinux/include/audit.h
··· 12 12 #ifndef _SELINUX_AUDIT_H 13 13 #define _SELINUX_AUDIT_H 14 14 15 + #include <linux/audit.h> 16 + #include <linux/types.h> 17 + 15 18 /** 16 19 * selinux_audit_rule_init - alloc/init an selinux audit rule structure. 17 20 * @field: the field this rule refers to
+1 -1
security/selinux/include/avc_ss.h
··· 7 7 #ifndef _SELINUX_AVC_SS_H_ 8 8 #define _SELINUX_AVC_SS_H_ 9 9 10 - #include "flask.h" 10 + #include <linux/types.h> 11 11 12 12 struct selinux_avc; 13 13 int avc_ss_reset(struct selinux_avc *avc, u32 seqno);
+2
security/selinux/include/ibpkey.h
··· 14 14 #ifndef _SELINUX_IB_PKEY_H 15 15 #define _SELINUX_IB_PKEY_H 16 16 17 + #include <linux/types.h> 18 + 17 19 #ifdef CONFIG_SECURITY_INFINIBAND 18 20 void sel_ib_pkey_flush(void); 19 21 int sel_ib_pkey_sid(u64 subnet_prefix, u16 pkey, u32 *sid);
+2
security/selinux/include/netnode.h
··· 17 17 #ifndef _SELINUX_NETNODE_H 18 18 #define _SELINUX_NETNODE_H 19 19 20 + #include <linux/types.h> 21 + 20 22 void sel_netnode_flush(void); 21 23 22 24 int sel_netnode_sid(void *addr, u16 family, u32 *sid);
+2
security/selinux/include/netport.h
··· 16 16 #ifndef _SELINUX_NETPORT_H 17 17 #define _SELINUX_NETPORT_H 18 18 19 + #include <linux/types.h> 20 + 19 21 void sel_netport_flush(void); 20 22 21 23 int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid);
+2
security/selinux/include/xfrm.h
··· 8 8 #ifndef _SELINUX_XFRM_H_ 9 9 #define _SELINUX_XFRM_H_ 10 10 11 + #include <linux/lsm_audit.h> 11 12 #include <net/flow.h> 13 + #include <net/xfrm.h> 12 14 13 15 int selinux_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp, 14 16 struct xfrm_user_sec_ctx *uctx,