Commit 7a0e1d60 authored by Paul Moore's avatar Paul Moore Committed by David S. Miller

[NetLabel]: add some missing #includes to various header files

Add some missing include files to the NetLabel related header files.
Signed-off-by: default avatarPaul Moore <paul.moore@hp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e448e931
...@@ -37,6 +37,8 @@ ...@@ -37,6 +37,8 @@
#include <linux/types.h> #include <linux/types.h>
#include <linux/rcupdate.h> #include <linux/rcupdate.h>
#include <linux/list.h> #include <linux/list.h>
#include <linux/net.h>
#include <linux/skbuff.h>
#include <net/netlabel.h> #include <net/netlabel.h>
/* known doi values */ /* known doi values */
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#define _NETLABEL_H #define _NETLABEL_H
#include <linux/types.h> #include <linux/types.h>
#include <linux/net.h>
#include <linux/skbuff.h> #include <linux/skbuff.h>
#include <net/netlink.h> #include <net/netlink.h>
......
...@@ -32,6 +32,10 @@ ...@@ -32,6 +32,10 @@
#ifndef _NETLABEL_DOMAINHASH_H #ifndef _NETLABEL_DOMAINHASH_H
#define _NETLABEL_DOMAINHASH_H #define _NETLABEL_DOMAINHASH_H
#include <linux/types.h>
#include <linux/rcupdate.h>
#include <linux/list.h>
/* Domain hash table size */ /* Domain hash table size */
/* XXX - currently this number is an uneducated guess */ /* XXX - currently this number is an uneducated guess */
#define NETLBL_DOMHSH_BITSIZE 7 #define NETLBL_DOMHSH_BITSIZE 7
......
...@@ -31,11 +31,12 @@ ...@@ -31,11 +31,12 @@
#ifndef _NETLABEL_USER_H #ifndef _NETLABEL_USER_H
#define _NETLABEL_USER_H #define _NETLABEL_USER_H
#include <linux/types.h>
#include <linux/skbuff.h> #include <linux/skbuff.h>
#include <linux/capability.h> #include <linux/capability.h>
#include <linux/genetlink.h> #include <net/netlink.h>
#include <net/netlabel.h>
#include <net/genetlink.h> #include <net/genetlink.h>
#include <net/netlabel.h>
/* NetLabel NETLINK helper functions */ /* NetLabel NETLINK helper functions */
......
...@@ -27,6 +27,15 @@ ...@@ -27,6 +27,15 @@
#ifndef _SELINUX_NETLABEL_H_ #ifndef _SELINUX_NETLABEL_H_
#define _SELINUX_NETLABEL_H_ #define _SELINUX_NETLABEL_H_
#include <linux/types.h>
#include <linux/fs.h>
#include <linux/net.h>
#include <linux/skbuff.h>
#include <net/sock.h>
#include "avc.h"
#include "objsec.h"
#ifdef CONFIG_NETLABEL #ifdef CONFIG_NETLABEL
void selinux_netlbl_cache_invalidate(void); void selinux_netlbl_cache_invalidate(void);
int selinux_netlbl_socket_post_create(struct socket *sock, int selinux_netlbl_socket_post_create(struct socket *sock,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment