[apparmor] [PATCH 07/11] tests: Support change_profile exec modes in mkprofile.pl
John Johansen
john.johansen at canonical.com
Fri May 27 12:21:32 UTC 2016
On 05/25/2016 01:59 PM, Tyler Hicks wrote:
> The gen_change_profile() function must be changed to allow the extra
> condition in change_profiles rules.
>
> Signed-off-by: Tyler Hicks <tyhicks at canonical.com>
Acked-by: John Johansen <john.johansen at canonical.com>
> ---
> tests/regression/apparmor/mkprofile.pl | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tests/regression/apparmor/mkprofile.pl b/tests/regression/apparmor/mkprofile.pl
> index 35d8fd6..7ca5ef1 100755
> --- a/tests/regression/apparmor/mkprofile.pl
> +++ b/tests/regression/apparmor/mkprofile.pl
> @@ -345,6 +345,8 @@ sub gen_change_profile($) {
> }
> } elsif (@rules == 3) {
> push (@{$output_rules{$hat}}, " change_profile $rules[1] -> $rules[2],\n",);
> + } elsif (@rules == 4) {
> + push (@{$output_rules{$hat}}, " change_profile $rules[1] $rules[2] -> $rules[3],\n",);
> } else {
> (!$nowarn) && print STDERR "Warning: invalid change_profile description '$rule', ignored\n";
> }
>
More information about the AppArmor
mailing list