2008-03-30 22:56:34

by Adrian Bunk

[permalink] [raw]
Subject: [2.6 patch] selinux/ss/services.c should #include <linux/selinux.h>

Every file should include the headers containing the externs for its
global code.

Signed-off-by: Adrian Bunk <[email protected]>

---

This patch has been sent on:
- 27 Feb 2008

eaeb567e2ce03ef3a7c5ed33e35def212ce2899a foobar
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c
index f374186..29fb216 100644
--- a/security/selinux/ss/services.c
+++ b/security/selinux/ss/services.c
@@ -40,6 +40,7 @@
#include <linux/sched.h>
#include <linux/audit.h>
#include <linux/mutex.h>
+#include <linux/selinux.h>
#include <net/netlabel.h>

#include "flask.h"


2008-03-31 01:27:16

by James Morris

[permalink] [raw]
Subject: Re: [2.6 patch] selinux/ss/services.c should #include <linux/selinux.h>

On Mon, 31 Mar 2008, Adrian Bunk wrote:

> Every file should include the headers containing the externs for its
> global code.
>
> Signed-off-by: Adrian Bunk <[email protected]>
>

Thanks, applied to
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/selinux-2.6.git#for-akpm



> ---
>
> This patch has been sent on:
> - 27 Feb 2008
>
> eaeb567e2ce03ef3a7c5ed33e35def212ce2899a foobar
> diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c
> index f374186..29fb216 100644
> --- a/security/selinux/ss/services.c
> +++ b/security/selinux/ss/services.c
> @@ -40,6 +40,7 @@
> #include <linux/sched.h>
> #include <linux/audit.h>
> #include <linux/mutex.h>
> +#include <linux/selinux.h>
> #include <net/netlabel.h>
>
> #include "flask.h"
>

--
James Morris
<[email protected]>