platform_external_selinux/policycoreutils
Petr Lautrbach ed4813be61 semodule: add -m | --checksum option
Since cil doesn't store module name and module version in module itself,
there's no simple way how to compare that installed module is the same
version as the module which is supposed to be installed. Even though the
version was not used by semodule itself, it was apparently used by some
team.

With `semodule -l --checksum` users get SHA256 hashes of modules and
could compare them with their files which is faster than installing
modules again and again.

E.g.

    # time (
    semodule -l --checksum | grep localmodule
    /usr/libexec/selinux/hll/pp localmodule.pp | sha256sum
    )
    localmodule db002f64ddfa3983257b42b54da7b182c9b2e476f47880ae3494f9099e1a42bd
    db002f64ddfa3983257b42b54da7b182c9b2e476f47880ae3494f9099e1a42bd  -

    real    0m0.876s
    user    0m0.849s
    sys     0m0.028s

vs

    # time semodule -i localmodule.pp

    real    0m6.147s
    user    0m5.800s
    sys     0m0.231s

Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
Acked-by: James Carter <jwcart2@gmail.com>
2021-11-23 10:42:05 +01:00
..
.tx Update Translations 2013-10-24 13:58:39 -04:00
hll Fix many misspellings 2019-09-18 22:47:35 +02:00
load_policy selinux: Remove legacy local boolean and user code 2019-07-29 23:46:24 +02:00
man selinux_config(5): add a note that runtime disable is deprecated 2020-11-12 21:23:59 +01:00
newrole policycoreutils: mark local functions static 2021-11-15 16:00:54 -05:00
po Fix many misspellings 2019-09-18 22:47:35 +02:00
run_init policycoreutils: mark local functions static 2021-11-15 16:00:54 -05:00
scripts fixfiles: do not exclude /dev and /run in -C mode 2021-05-12 09:36:16 +02:00
secon policycoreutils: silence -Wextra-semi-stmt warning 2021-07-06 11:08:11 -04:00
semodule semodule: add -m | --checksum option 2021-11-23 10:42:05 +01:00
sestatus policycoreutils: mark local functions static 2021-11-15 16:00:54 -05:00
setfiles setfiles/restorecon: support parallel relabeling 2021-11-23 10:03:18 +01:00
setsebool setsebool: report errors from commit phase 2020-04-28 09:26:26 +02:00
.gitignore Move policycoreutils/semodule_package to semodule-utils. 2016-11-16 11:19:51 -05:00
COPYING initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
Makefile Move policycoreutils/semodule_package to semodule-utils. 2016-11-16 11:19:51 -05:00
VERSION Update VERSIONs to 3.3 for release. 2021-10-21 16:31:23 +02:00