ed4813be61
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> |
||
---|---|---|
.. | ||
.tx | ||
hll | ||
load_policy | ||
man | ||
newrole | ||
po | ||
run_init | ||
scripts | ||
secon | ||
semodule | ||
sestatus | ||
setfiles | ||
setsebool | ||
.gitignore | ||
COPYING | ||
Makefile | ||
VERSION |