[apparmor] [PATCH] fix missing long opt arg value

John Johansen john.johansen at canonical.com
Wed Jun 26 18:23:15 UTC 2013


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>




More information about the AppArmor mailing list