All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Add warnings if module name different from filename
@ 2016-03-25 18:04 James Carter
  2016-03-25 18:04 ` [PATCH 1/3] libsepol: Add function to check if module name matches filename James Carter
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: James Carter @ 2016-03-25 18:04 UTC (permalink / raw)
  To: selinux

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, but CIL will refer to the module by its filename.

Warn when the module name is different from the filename when converting
a policy package to CIL or when compiling a module.

James Carter (3):
  libsepol: Add function to check if module name matches filename
  policycoreutils/hll/pp: Warn if module name different from filenames
  checkpolicy: Warn if module name different than filenames

 checkpolicy/checkmodule.c       | 13 +++++++++++++
 libsepol/include/sepol/module.h |  3 +++
 libsepol/src/libsepol.map.in    |  2 ++
 libsepol/src/module.c           | 36 ++++++++++++++++++++++++++++++++++++
 policycoreutils/hll/pp/pp.c     | 29 +++++++++++++++++++++++++----
 5 files changed, 79 insertions(+), 4 deletions(-)

-- 
2.5.5

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-04-07 15:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-25 18:04 [PATCH 0/3] Add warnings if module name different from filename James Carter
2016-03-25 18:04 ` [PATCH 1/3] libsepol: Add function to check if module name matches filename James Carter
2016-03-25 18:04 ` [PATCH 2/3] policycoreutils/hll/pp: Warn if module name different from filenames James Carter
2016-03-25 18:45   ` Stephen Smalley
2016-03-25 18:57     ` James Carter
2016-03-26 20:07       ` Daniel J Walsh
2016-04-07 15:11         ` James Carter
2016-03-25 18:04 ` [PATCH 3/3] checkpolicy: Warn if module name different than filenames James Carter
2016-03-25 18:48   ` Stephen Smalley
2016-03-25 18:58     ` James Carter

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.