selinux/policycoreutils/semodule
Jason Zaman 06040cdc54 policycoreutils: semodule: Enable CIL logging
semodule -v will turn on semodule's own verbose logging but not logging
from CIL. This change makes the verbose flag also set cil's log level.

By default (ie no -v flag), this will enable CIL_ERR, and each -v will
increase the level from there.

Tested with a duplicated fcontext in the policy.
Before this change:
    # semodule -v -B
    Committing changes:
    Problems processing filecon rules
    Failed post db handling
    semodule:  Failed!

After this change:
    # semodule -v -B
    [ ... snip ... ]
    Found conflicting filecon rules
      at /var/lib/selinux/mcs/tmp/modules/400/mycustom/cil:159
      at /var/lib/selinux/mcs/tmp/modules/400/mycustom/cil:158
    Problems processing filecon rules
    Failed post db handling
    semodule:  Failed!

Closes: https://github.com/SELinuxProject/selinux/issues/176
Signed-off-by: Jason Zaman <jason@perfinion.com>
2019-10-23 10:19:49 -04:00
..
ru Add man pages translation by Olesya Gerasimenko 2019-01-28 12:03:57 +01:00
.gitignore Ignore genhomedircon link. 2013-10-24 15:11:01 -04:00
genhomedircon.8 genhomedircon is no longer a script, but a link to semodule 2013-10-24 13:58:39 -04:00
Makefile Allow installing translated man pages 2019-01-28 12:03:57 +01:00
semodule.8 policycoreutils/semodule: Improve man page and unify it with --help 2018-03-26 10:19:51 -04:00
semodule.c policycoreutils: semodule: Enable CIL logging 2019-10-23 10:19:49 -04:00