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 _______________________________________________ Selinux mailing list Selinux@xxxxxxxxxxxxx To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.