mirror of
https://git.code.sf.net/p/linux-ima/ima-evm-utils
synced 2025-07-04 22:45:15 +02:00
evmctl - IMA/EVM control tool
evmctl provides signing support for IMA/EVM. Functionality includes signing of file content (IMA), file metadata (EVM), importing public keys into kernel keyring. Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
This commit is contained in:
15
tests/sign_modules_dir.sh
Executable file
15
tests/sign_modules_dir.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/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 '{}' \;
|
||||
find $dir ! -name "*.ko" -type f -uid 0 -exec evmctl sign --imahash '{}' \;
|
||||
|
Reference in New Issue
Block a user