From 8e68cd0135d1a58f521472b7982d3b9b17d12cfe Mon Sep 17 00:00:00 2001 From: Dmitry Kasatkin Date: Fri, 2 Dec 2011 14:15:19 +0200 Subject: [PATCH] Scripts for searching not only root owned files -uid 0 removed. Signed-off-by: Dmitry Kasatkin --- tests/evm_hmac_all.sh | 2 +- tests/evm_hmac_modules.sh | 3 +-- tests/evm_sign_all.sh | 2 +- tests/evm_sign_modules.sh | 3 +-- tests/ima_fix_dir.sh | 2 +- 5 files changed, 5 insertions(+), 7 deletions(-) diff --git a/tests/evm_hmac_all.sh b/tests/evm_hmac_all.sh index de269f5..fc5b9e9 100755 --- a/tests/evm_hmac_all.sh +++ b/tests/evm_hmac_all.sh @@ -10,5 +10,5 @@ dir=${1:-/} echo "Label: $dir" -find $dir \( -fstype rootfs -o -fstype ext3 -o -fstype ext4 \) \( -type f -o -type d \) -uid 0 -exec evmctl hmac --imahash $verbose '{}' \; +find $dir \( -fstype rootfs -o -fstype ext3 -o -fstype ext4 \) \( -type f -o -type d \) -exec evmctl hmac --imahash $verbose '{}' \; diff --git a/tests/evm_hmac_modules.sh b/tests/evm_hmac_modules.sh index 006da5b..edcc388 100755 --- a/tests/evm_hmac_modules.sh +++ b/tests/evm_hmac_modules.sh @@ -10,6 +10,5 @@ dir=${1:-/lib/modules} echo "HMAC modules: $dir" -find $dir -name "*.ko" -type f -uid 0 -exec evmctl hmac --imasig $verbose '{}' \; -find $dir ! -name "*.ko" -type f -uid 0 -exec evmctl hmac --imahash $verbose '{}' \; +find $dir -name "*.ko" -type f -exec evmctl hmac --imasig $verbose '{}' \; diff --git a/tests/evm_sign_all.sh b/tests/evm_sign_all.sh index 0aa8b9c..72268cd 100755 --- a/tests/evm_sign_all.sh +++ b/tests/evm_sign_all.sh @@ -10,5 +10,5 @@ dir=${1:-/} echo "Label: $dir" -find $dir \( -fstype rootfs -o -fstype ext3 -o -fstype ext4 \) -type f -uid 0 -exec evmctl sign --imahash $verbose '{}' \; +find $dir \( -fstype rootfs -o -fstype ext3 -o -fstype ext4 \) -type f -exec evmctl sign --imahash $verbose '{}' \; diff --git a/tests/evm_sign_modules.sh b/tests/evm_sign_modules.sh index 60609ee..97da501 100755 --- a/tests/evm_sign_modules.sh +++ b/tests/evm_sign_modules.sh @@ -10,6 +10,5 @@ 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 '{}' \; +find $dir -name "*.ko" -type f -exec evmctl sign --imasig $verbose '{}' \; diff --git a/tests/ima_fix_dir.sh b/tests/ima_fix_dir.sh index c1a1e88..96f478d 100755 --- a/tests/ima_fix_dir.sh +++ b/tests/ima_fix_dir.sh @@ -4,5 +4,5 @@ dir=${1:-/} echo "Fixing dir: $dir" -find $dir \( -fstype rootfs -o -fstype ext3 -o -fstype ext4 \) -type f -uid 0 -exec openclose '{}' \; +find $dir \( -fstype rootfs -o -fstype ext3 -o -fstype ext4 \) -type f -exec openclose '{}' \;