Skip to content

Commit

Permalink
[NetLabel]: add some missing #includes to various header files
Browse files Browse the repository at this point in the history
Add some missing include files to the NetLabel related header files.

Signed-off-by: Paul Moore <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
pcmoore authored and David S. Miller committed Sep 22, 2006
1 parent e448e93 commit 7a0e1d6
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
2 changes: 2 additions & 0 deletions include/net/cipso_ipv4.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
#include <linux/types.h>
#include <linux/rcupdate.h>
#include <linux/list.h>
#include <linux/net.h>
#include <linux/skbuff.h>
#include <net/netlabel.h>

/* known doi values */
Expand Down
1 change: 1 addition & 0 deletions include/net/netlabel.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#define _NETLABEL_H

#include <linux/types.h>
#include <linux/net.h>
#include <linux/skbuff.h>
#include <net/netlink.h>

Expand Down
4 changes: 4 additions & 0 deletions net/netlabel/netlabel_domainhash.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
#ifndef _NETLABEL_DOMAINHASH_H
#define _NETLABEL_DOMAINHASH_H

#include <linux/types.h>
#include <linux/rcupdate.h>
#include <linux/list.h>

/* Domain hash table size */
/* XXX - currently this number is an uneducated guess */
#define NETLBL_DOMHSH_BITSIZE 7
Expand Down
5 changes: 3 additions & 2 deletions net/netlabel/netlabel_user.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@
#ifndef _NETLABEL_USER_H
#define _NETLABEL_USER_H

#include <linux/types.h>
#include <linux/skbuff.h>
#include <linux/capability.h>
#include <linux/genetlink.h>
#include <net/netlabel.h>
#include <net/netlink.h>
#include <net/genetlink.h>
#include <net/netlabel.h>

/* NetLabel NETLINK helper functions */

Expand Down
9 changes: 9 additions & 0 deletions security/selinux/include/selinux_netlabel.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@
#ifndef _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
void selinux_netlbl_cache_invalidate(void);
int selinux_netlbl_socket_post_create(struct socket *sock,
Expand Down

0 comments on commit 7a0e1d6

Please sign in to comment.