It's a bit surprising that after many years of use, veriexecgen can't
read a list of files from stdin/input-file and calculate checksums of
those files.
It can be useful, e.g. when recalculating checksums of existing
fingerprintdb entries:
# awk '{print $1}' /etc/signatures | veriexecgen -i
or to read entries from /etc/mtree/set.* files:
# cd /
# awk '/type=dir/{next} {print $1}' /etc/mtree/set.comp | veriexecgen
The latter could probably be done during the build and checksums could
be placed to /etc/veriexec/sha256.{base,comp,...}.
I wrote a patch that adds the -i option to read from stdin but I don't
want to rush things before I hear opinions. Is it a good approach, does
precalculating checksums at build time make sense, etc.