[apparmor] [PATCH 04/14] Fix: link rules to accept a variable
Tyler Hicks
tyhicks at canonical.com
Thu Jun 4 14:16:55 UTC 2015
On 2015-06-04 03:56:33, John Johansen wrote:
> currently
> link @{foo} -> /bar,
> link /bar -> @{foo}
> link @{foo} -> @{bar},
>
> all fail due to illegal TOK_SET_VAR
>
> Signed-off-by: John Johansen <john.johansen at canonical.com>
Acked-by: Tyler Hicks <tyhicks at canonical.com>
> ---
> parser/parser_yacc.y | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/parser/parser_yacc.y b/parser/parser_yacc.y
> index e466023..3ebaed4 100644
> --- a/parser/parser_yacc.y
> +++ b/parser/parser_yacc.y
> @@ -1120,7 +1120,7 @@ file_rule_tail: opt_unsafe id_or_var file_mode id_or_var
> yyerror(_("missing an end of line character? (entry: %s)"), $2);
> };
>
> -link_rule: TOK_LINK opt_subset_flag TOK_ID TOK_ARROW TOK_ID TOK_END_OF_RULE
> +link_rule: TOK_LINK opt_subset_flag id_or_var TOK_ARROW id_or_var TOK_END_OF_RULE
> {
> struct cod_entry *entry;
> PDEBUG("Matched: link tok_id (%s) -> (%s)\n", $3, $5);
> --
> 2.1.4
>
>
> --
> AppArmor mailing list
> AppArmor at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20150604/67de2dd4/attachment.pgp>
More information about the AppArmor
mailing list