[apparmor] [PATCH] fix missing long opt arg value
Steve Beattie
steve at nxnw.org
Mon Jul 1 06:56:44 UTC 2013
On Wed, Jun 26, 2013 at 11:23:15AM -0700, John Johansen wrote:
> On 06/26/2013 11:05 AM, Kees Cook wrote:
> > Using --subdomainfs without an argument triggers a segfault. This was due
> > to the long option missing the "has_arg" flag.
> >
> > Signed-off-by: Kees Cook <kees at ubuntu.com>
> >
> >
> > === modified file 'parser/parser_main.c'
> > --- parser/parser_main.c 2013-05-02 18:32:56 +0000
> > +++ parser/parser_main.c 2013-06-26 18:04:16 +0000
> > @@ -91,7 +91,7 @@
> > {"add", 0, 0, 'a'},
> > {"binary", 0, 0, 'B'},
> > {"base", 1, 0, 'b'},
> > - {"subdomainfs", 0, 0, 'f'},
> > + {"subdomainfs", 1, 0, 'f'},
> > {"help", 2, 0, 'h'},
> > {"replace", 0, 0, 'r'},
> > {"reload", 0, 0, 'r'}, /* undocumented reload
> > option == replace */
> >
> >
> Acked-by: John Johansen <john.johansen at canonical.com>
Also for the 2.8 branch, Acked-by: Steve Beattie <sbeattie at ubuntu.com>
--
Steve Beattie
<sbeattie at ubuntu.com>
http://NxNW.org/~steve/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20130630/32ea0e58/attachment.pgp>
More information about the AppArmor
mailing list