[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20080923155124.GA2123@us.ibm.com>
Date: Tue, 23 Sep 2008 10:51:24 -0500
From: "Serge E. Hallyn" <serue@...ibm.com>
To: Chris Wright <chrisw@...s-sol.org>
Cc: lkml <linux-kernel@...r.kernel.org>,
linux-security-module@...r.kernel.org,
James Morris <jmorris@...hat.com>,
Andrew Morgan <morgan@...nel.org>,
Andreas Gruenbacher <agruen@...e.de>,
Andrew Morton <akpm@...l.org>
Subject: Re: [PATCH 1/2] file capabilities: add no_file_caps switch (v2)
Quoting Chris Wright (chrisw@...s-sol.org):
> * Serge E. Hallyn (serue@...ibm.com) wrote:
> > --- a/kernel/capability.c
> > +++ b/kernel/capability.c
> > @@ -33,6 +33,19 @@ EXPORT_SYMBOL(__cap_empty_set);
> > EXPORT_SYMBOL(__cap_full_set);
> > EXPORT_SYMBOL(__cap_init_eff_set);
> >
> > +#ifdef CONFIG_SECURITY_FILE_CAPABILITIES
> > +int file_caps_enabled = 1;
> > +
> > +static int __init file_caps_disable(char *str)
> > +{
> > + file_caps_enabled = 0;
> > + return 1;
> > +}
> > +__setup("no_file_caps", file_caps_disable);
> > +#else
> > +static const int file_caps_enabled = 0;
> > +#endif
>
> > --- a/security/commoncap.c
> > +++ b/security/commoncap.c
> > @@ -27,6 +27,12 @@
> > #include <linux/prctl.h>
> > #include <linux/securebits.h>
> >
> > +#ifdef CONFIG_SECURITY_FILE_CAPABILITIES
> > +extern int file_caps_enabled;
> > +#else
> > +static const int file_caps_enabled = 0;
> > +#endif
> > +
>
> file_caps_enabled cut 'n paste mistake when !CONFIG_SECURITY_FILE_CAPABILITIES?
Oops, yup, thanks.
> Also, plan to update Documentation/kernel-parameters.txt?
Will do.
thanks,
-serge
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists