Commit 398ed049 authored by Steve Beattie's avatar Steve Beattie

parser - finish prefix refactoring for dbus rules

Signed-off-by: Steve Beattie's avatarSteve Beattie <steve@nxnw.org>
Acked-by: Tyler Hicks's avatarTyler Hicks <tyhicks@canonical.com>
parent 74d72d60
......@@ -665,19 +665,13 @@ rules: rules opt_prefix mnt_rule
$$ = $1;
}
rules: rules opt_audit_flag TOK_DENY dbus_rule
rules: rules opt_prefix dbus_rule
{
$4->deny = $4->mode;
if ($2)
$4->audit = $4->mode;
$4->next = $1->dbus_ents;
$1->dbus_ents = $4;
$$ = $1;
}
rules: rules opt_audit_flag dbus_rule
{
if ($2)
if ($2.owner)
yyerror(_("owner prefix not allow on dbus rules"));
if ($2.deny)
$3->deny = $3->mode;
if ($2.audit)
$3->audit = $3->mode;
$3->next = $1->dbus_ents;
$1->dbus_ents = $3;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment