Re: [PATCH 2/2] dismod: print policy version of loaded modules

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

 



On Wed, Apr 17, 2019 at 9:39 AM Gary Tierney <gary.tierney@xxxxxxxxxxxx> wrote:
>
> Signed-off-by: Gary Tierney <gary.tierney@xxxxxxxxxxxx>
> ---
>  checkpolicy/test/dismod.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/checkpolicy/test/dismod.c b/checkpolicy/test/dismod.c
> index d5c7eeab093a..075bd85df4e6 100644
> --- a/checkpolicy/test/dismod.c
> +++ b/checkpolicy/test/dismod.c
> @@ -903,14 +903,14 @@ int main(int argc, char **argv)
>         }
>
>         if (policydb.policy_type == POLICY_BASE) {
> -               printf("Binary base policy file loaded.\n\n");
> +               printf("Binary base policy file loaded.\n");
>         } else {
>                 printf("Binary policy module file loaded.\n");
>                 printf("Module name: %s\n", policydb.name);
>                 printf("Module version: %s\n", policydb.version);
> -               printf("\n");
>         }
>
> +       printf("Policy version: %d\n\n", policydb.policyvers);
>         menu();
>         for (;;) {
>                 printf("\nCommand (\'m\' for menu):  ");
> --
> 2.17.2
>

I don't have a problem with this, does anyone else?



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

  Powered by Linux