提交 659b5e76 编写于 作者: P Paul Mundt 提交者: James Morris

security: Fix nommu build.

The security + nommu configuration presently blows up with an undefined
reference to BDI_CAP_EXEC_MAP:

security/security.c: In function 'mmap_prot':
security/security.c:687:36: error: dereferencing pointer to incomplete type
security/security.c:688:16: error: 'BDI_CAP_EXEC_MAP' undeclared (first use in this function)
security/security.c:688:16: note: each undeclared identifier is reported only once for each function it appears in

include backing-dev.h directly to fix it up.
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
Signed-off-by: NJames Morris <james.l.morris@oracle.com>
上级 8aec836a
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include <linux/mman.h> #include <linux/mman.h>
#include <linux/mount.h> #include <linux/mount.h>
#include <linux/personality.h> #include <linux/personality.h>
#include <linux/backing-dev.h>
#include <net/flow.h> #include <net/flow.h>
#define MAX_LSM_EVM_XATTR 2 #define MAX_LSM_EVM_XATTR 2
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册