[apparmor] [PATCH 2/3] Fix @{profile_name} variable to not be a fqname

Christian Boltz apparmor at cboltz.de
Sat Jun 13 20:32:49 UTC 2015


Hello,

Am Freitag, 12. Juni 2015 schrieb John Johansen:

> --- a/parser/tst/equality.sh
> +++ b/parser/tst/equality.sh
> @@ -464,6 +464,14 @@ verify_binary_equality "change_profile ==
> change_profile -> **" \ "/t { change_profile /**, }" \
>  		       "/t { change_profile /** -> **, }"
> 
> +verify_binary_equality "profile name is hname in rule" \
> +	":ns:/hname { signal peer=/hname, }" \
> +	":ns:/hname { signal peer=@{profile_name}, }"
> +
> +verify_binary_inequality "profile name in NOT fq name in rule" \
> +	":ns:/hname { signal peer=:ns:/hname, }" \
> +	":ns:/hname { signal peer=@{profile_name}, }"

A similar set of tests for subprofiles and/or hats would be nice ;-)


Regards,

Christian Boltz
-- 
If you need to ask stupid questions, there may be two reasons:
a) the documentation (in this case mostly the wiki) is incomplete
b) you're stupid :-)
[Dirk Stoecker inopensuse-buildservice]




More information about the AppArmor mailing list