From: Petr Lautrbach <plautrba@redhat.com>
To: selinux@tycho.nsa.gov
Subject: Re: [PATCH 0/2 v2] Warn if module name different than output filename
Date: Fri, 8 Apr 2016 10:25:22 +0200 [thread overview]
Message-ID: <57076AF2.6090507@redhat.com> (raw)
In-Reply-To: <1460041566-7173-1-git-send-email-jwcart2@tycho.nsa.gov>
[-- Attachment #1: Type: text/plain, Size: 1542 bytes --]
On 04/07/2016 05:06 PM, James Carter wrote:
> Since CIL treats files as modules and does not have a separate
> module statement it can cause confusion when a Refpolicy module
> has a name that is not the same as its base filename because older
> SELinux userspaces will refer to the module by its module name while
> a CIL-based userspace will refer to it by its filename.
>
> Because of this, provide a warning message when converting a policy
> package to CIL or compiling a module and the output filename is different
> than the module name.
Would it be feasible to use a module statement name as a new base name
for CIL module instead of the original base pp filename, and warn users
that the new output filename is different from the original?
It would help to have same installed module names in 'semodule -l' list
in older and current userspace.
>
> Changes from v1:
> - Added a "Warning:" prefix
> - Removed checks against the input filename
> - Since there are now only two checks and the base filename is used in the
> warning message, it no longer made sense to create common helper functions
> in libsepol.
>
> James Carter (2):
> policycoreutils/hll/pp: Warn if module name different than output
> filename
> checkpolicy: Warn if module name different than output filename
>
> checkpolicy/checkmodule.c | 15 +++++++++++++++
> policycoreutils/hll/pp/pp.c | 28 ++++++++++++++++++++++++----
> 2 files changed, 39 insertions(+), 4 deletions(-)
>
--
Petr Lautrbach
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
prev parent reply other threads:[~2016-04-08 8:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-07 15:06 [PATCH 0/2 v2] Warn if module name different than output filename James Carter
2016-04-07 15:06 ` [PATCH 1/2 v2] policycoreutils/hll/pp: " James Carter
2016-04-07 16:41 ` Thomas Hurd
2016-04-07 18:04 ` James Carter
2016-04-07 15:06 ` [PATCH 2/2 v2] checkpolicy: " James Carter
2016-04-07 15:28 ` Daniel J Walsh
2016-04-07 19:34 ` James Carter
2016-04-07 19:45 ` Daniel J Walsh
2016-04-08 8:25 ` Petr Lautrbach [this message]
Reply instructions:
You may reply publicly 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=57076AF2.6090507@redhat.com \
--to=plautrba@redhat.com \
--cc=selinux@tycho.nsa.gov \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.