public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] make selinux_parse_opts_str() static
@ 2008-03-17 20:29 Adrian Bunk
  2008-03-17 21:36 ` Eric Paris
  0 siblings, 1 reply; 3+ messages in thread
From: Adrian Bunk @ 2008-03-17 20:29 UTC (permalink / raw)
  To: Eric Paris, Stephen Smalley, Casey Schaufler, James Morris; +Cc: linux-kernel

This patch makes the needlessly global selinux_parse_opts_str() static.

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---
42740a04634e3a4362a688b29ad31ee87c940ff7 diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 4bf4807..41a049f 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -800,7 +800,8 @@ static void selinux_sb_clone_mnt_opts(const struct super_block *oldsb,
 	mutex_unlock(&newsbsec->lock);
 }
 
-int selinux_parse_opts_str(char *options, struct security_mnt_opts *opts)
+static int selinux_parse_opts_str(char *options,
+				  struct security_mnt_opts *opts)
 {
 	char *p;
 	char *context = NULL, *defcontext = NULL;


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [2.6 patch] make selinux_parse_opts_str() static
  2008-03-17 20:29 [2.6 patch] make selinux_parse_opts_str() static Adrian Bunk
@ 2008-03-17 21:36 ` Eric Paris
  2008-03-17 22:32   ` James Morris
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Paris @ 2008-03-17 21:36 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: Stephen Smalley, Casey Schaufler, James Morris, linux-kernel

On Mon, 2008-03-17 at 22:29 +0200, Adrian Bunk wrote:
> This patch makes the needlessly global selinux_parse_opts_str() static.
> 
> Signed-off-by: Adrian Bunk <bunk@kernel.org>

Ack-ed by: Eric Paris <eparis@redhat.com>

whoops, sorry.

> ---
> 42740a04634e3a4362a688b29ad31ee87c940ff7 diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
> index 4bf4807..41a049f 100644
> --- a/security/selinux/hooks.c
> +++ b/security/selinux/hooks.c
> @@ -800,7 +800,8 @@ static void selinux_sb_clone_mnt_opts(const struct super_block *oldsb,
>  	mutex_unlock(&newsbsec->lock);
>  }
>  
> -int selinux_parse_opts_str(char *options, struct security_mnt_opts *opts)
> +static int selinux_parse_opts_str(char *options,
> +				  struct security_mnt_opts *opts)
>  {
>  	char *p;
>  	char *context = NULL, *defcontext = NULL;
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [2.6 patch] make selinux_parse_opts_str() static
  2008-03-17 21:36 ` Eric Paris
@ 2008-03-17 22:32   ` James Morris
  0 siblings, 0 replies; 3+ messages in thread
From: James Morris @ 2008-03-17 22:32 UTC (permalink / raw)
  To: Eric Paris; +Cc: Adrian Bunk, Stephen Smalley, Casey Schaufler, linux-kernel

On Mon, 17 Mar 2008, Eric Paris wrote:

> On Mon, 2008-03-17 at 22:29 +0200, Adrian Bunk wrote:
> > This patch makes the needlessly global selinux_parse_opts_str() static.
> > 
> > Signed-off-by: Adrian Bunk <bunk@kernel.org>
> 
> Ack-ed by: Eric Paris <eparis@redhat.com>

ITYM Acked-by :-)

Applied to for-linus.


> 
> whoops, sorry.
> 
> > ---
> > 42740a04634e3a4362a688b29ad31ee87c940ff7 diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
> > index 4bf4807..41a049f 100644
> > --- a/security/selinux/hooks.c
> > +++ b/security/selinux/hooks.c
> > @@ -800,7 +800,8 @@ static void selinux_sb_clone_mnt_opts(const struct super_block *oldsb,
> >  	mutex_unlock(&newsbsec->lock);
> >  }
> >  
> > -int selinux_parse_opts_str(char *options, struct security_mnt_opts *opts)
> > +static int selinux_parse_opts_str(char *options,
> > +				  struct security_mnt_opts *opts)
> >  {
> >  	char *p;
> >  	char *context = NULL, *defcontext = NULL;
> > 
> 

-- 
James Morris
<jmorris@namei.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-03-17 22:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-17 20:29 [2.6 patch] make selinux_parse_opts_str() static Adrian Bunk
2008-03-17 21:36 ` Eric Paris
2008-03-17 22:32   ` James Morris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox