Re: [PATCH 1/2] checkpolicy: Improve error message for type bounds

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 24, 2022 at 11:40 AM Vit Mojzis <vmojzis@xxxxxxxxxx> wrote:
>
> Make the error message consistent with other occurrences of the
> same issue:
> https://github.com/SELinuxProject/selinux/blob/master/checkpolicy/module_compiler.c#L243
> https://github.com/SELinuxProject/selinux/blob/master/checkpolicy/module_compiler.c#L488
>
> Signed-off-by: Vit Mojzis <vmojzis@xxxxxxxxxx>

For these two patches:
Acked-by: James Carter <jwcart2@xxxxxxxxx>

> ---
>  checkpolicy/policy_define.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/checkpolicy/policy_define.c b/checkpolicy/policy_define.c
> index 41e44631..86d57017 100644
> --- a/checkpolicy/policy_define.c
> +++ b/checkpolicy/policy_define.c
> @@ -1416,7 +1416,7 @@ static int define_typebounds_helper(char *bounds_id, char *type_id)
>         if (!type->bounds)
>                 type->bounds = bounds->s.value;
>         else if (type->bounds != bounds->s.value) {
> -               yyerror2("type %s has inconsistent master {%s,%s}",
> +               yyerror2("type %s has inconsistent bounds %s/%s",
>                          type_id,
>                          policydbp->p_type_val_to_name[type->bounds - 1],
>                          policydbp->p_type_val_to_name[bounds->s.value - 1]);
> --
> 2.37.3
>



[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux