SELinux Archive on lore.kernel.org
 help / color / Atom feed
From: William Roberts <bill.c.roberts@gmail.com>
To: Gary Tierney <gary.tierney@fastmail.com>
Cc: selinux@vger.kernel.org
Subject: Re: [PATCH 2/2] dismod: print policy version of loaded modules
Date: Thu, 18 Apr 2019 08:13:53 -0700
Message-ID: <CAFftDdqcp6eXFTYCr5xJJE76B0ETjAjDh-zNkocbQbJ5EWE3_A@mail.gmail.com> (raw)
In-Reply-To: <20190417163731.3434-3-gary.tierney@fastmail.com>

On Wed, Apr 17, 2019 at 9:39 AM Gary Tierney <gary.tierney@fastmail.com> wrote:
>
> Signed-off-by: Gary Tierney <gary.tierney@fastmail.com>
> ---
>  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?

  reply index

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-17 16:37 [PATCH 0/2] checkmodule: allow building modules of a specific version Gary Tierney
2019-04-17 16:37 ` [PATCH 1/2] checkmodule: add support for specifying module policy version Gary Tierney
2019-04-18 15:11   ` William Roberts
2019-04-17 16:37 ` [PATCH 2/2] dismod: print policy version of loaded modules Gary Tierney
2019-04-18 15:13   ` William Roberts [this message]
2019-04-18 13:17 ` [Non-DoD Source] [PATCH 0/2] checkmodule: allow building modules of a specific version jwcart2
2019-04-18 15:18   ` William Roberts
2019-04-18 17:49     ` jwcart2
2019-04-19 17:21       ` jwcart2

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFftDdqcp6eXFTYCr5xJJE76B0ETjAjDh-zNkocbQbJ5EWE3_A@mail.gmail.com \
    --to=bill.c.roberts@gmail.com \
    --cc=gary.tierney@fastmail.com \
    --cc=selinux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

SELinux Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/selinux/0 selinux/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 selinux selinux/ https://lore.kernel.org/selinux \
		selinux@vger.kernel.org selinux@archiver.kernel.org
	public-inbox-index selinux


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.selinux


AGPL code for this site: git clone https://public-inbox.org/ public-inbox