Skip to content

Commit 778aae8

Browse files
committed
SELinux: selinux/xfrm.h needs net/flow.h
selinux/xfrm.h needs to #include net/flow.h or else suffer: In file included from security/selinux/ss/services.c:69:0: security/selinux/include/xfrm.h: In function 'selinux_xfrm_notify_policyload': security/selinux/include/xfrm.h:53:14: error: 'flow_cache_genid' undeclared (first use in this function) security/selinux/include/xfrm.h:53:14: note: each undeclared identifier is reported only once for each function it appears in Signed-off-by: David Howells <[email protected]>
1 parent 15e9b9b commit 778aae8

File tree

1 file changed

+2
-0
lines changed
  • security/selinux/include

1 file changed

+2
-0
lines changed

security/selinux/include/xfrm.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#ifndef _SELINUX_XFRM_H_
88
#define _SELINUX_XFRM_H_
99

10+
#include <net/flow.h>
11+
1012
int selinux_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp,
1113
struct xfrm_user_sec_ctx *sec_ctx);
1214
int selinux_xfrm_policy_clone(struct xfrm_sec_ctx *old_ctx,

0 commit comments

Comments
 (0)