mirror of
https://git.code.sf.net/p/linux-ima/ima-evm-utils
synced 2025-04-27 22:32:31 +02:00
Use in-place built fsverity binary instead of installing it
Instead of making changes to the system, use in-place built fsverity binary by adding ../fsverity-utils to the PATH variable, so that the binary can be found with the 'command -v' command. Don't delete the fsverity-utils directory, so that the built binary is available. Not deleting should not be a problem, as the script is meant to be executed in a CI environment, where cleanup is done by the CI infrastructure itself. Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com> Reviewed-by: Stefan Berger <stefanb@linux.ibm.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
This commit is contained in:
parent
0bccb5412c
commit
452f4b2eac
@ -30,7 +30,7 @@
|
|||||||
# custom policy rules might take precedence.
|
# custom policy rules might take precedence.
|
||||||
|
|
||||||
cd "$(dirname "$0")" || exit 1
|
cd "$(dirname "$0")" || exit 1
|
||||||
PATH=../src:$PATH
|
PATH=../src:../fsverity-utils:$PATH
|
||||||
source ./functions.sh
|
source ./functions.sh
|
||||||
|
|
||||||
# Base VERBOSE on the environment variable, if set.
|
# Base VERBOSE on the environment variable, if set.
|
||||||
|
@ -2,6 +2,5 @@
|
|||||||
|
|
||||||
git clone https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/fsverity-utils.git
|
git clone https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/fsverity-utils.git
|
||||||
cd fsverity-utils
|
cd fsverity-utils
|
||||||
CC=gcc make -j$(nproc) && sudo make install
|
CC=gcc make -j$(nproc)
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf fsverity-utils
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user