mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-23 02:27:12 +00:00
allow bare x in named transitions
This commit is contained in:
parent
7a751a53f6
commit
3efb4ea353
@ -460,8 +460,10 @@ rules: rules opt_audit_flag opt_owner_flag rule
|
|||||||
PDEBUG("rules rule: (%s)\n", $4->name);
|
PDEBUG("rules rule: (%s)\n", $4->name);
|
||||||
if (!$4)
|
if (!$4)
|
||||||
yyerror(_("Assert: `rule' returned NULL."));
|
yyerror(_("Assert: `rule' returned NULL."));
|
||||||
if (($4->mode & AA_EXEC_BITS) && !($4->mode & ALL_AA_EXEC_TYPE))
|
if (($4->mode & AA_EXEC_BITS) &&
|
||||||
yyerror(_("Invalid mode, 'x' must be preceded by exec qualifier 'i', 'p', or 'u'"));
|
!($4->mode & ALL_AA_EXEC_TYPE) &&
|
||||||
|
!($4->nt_name))
|
||||||
|
yyerror(_("Invalid mode, 'x' must be preceded by exec qualifier 'i', 'p', 'c', or 'u'"));
|
||||||
|
|
||||||
if ($3 == 1)
|
if ($3 == 1)
|
||||||
$4->mode &= (AA_USER_PERMS | AA_SHARED_PERMS | AA_USER_PTRACE);
|
$4->mode &= (AA_USER_PERMS | AA_SHARED_PERMS | AA_USER_PTRACE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user