
For debugging purpose it is nice to have evm hmac calculation for labeling filesystem using hmac. Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
16 lines
297 B
Bash
Executable File
16 lines
297 B
Bash
Executable File
#!/bin/sh
|
|
|
|
verbose=""
|
|
if [ "$1" = "-v" ] ; then
|
|
verbose="-v"
|
|
shift 1
|
|
fi
|
|
|
|
dir=${1:-/lib/modules}
|
|
|
|
echo "Signing modules: $dir"
|
|
|
|
find $dir -name "*.ko" -type f -uid 0 -exec evmctl sign --imasig $verbose '{}' \;
|
|
find $dir ! -name "*.ko" -type f -uid 0 -exec evmctl sign --imahash $verbose '{}' \;
|
|
|