Remove test scripts
Test scripts are not used at all. All needed information is in README. Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
This commit is contained in:
parent
c8b4f34fd4
commit
a58cd9f4af
@ -1,4 +1,4 @@
|
|||||||
SUBDIRS = src tests
|
SUBDIRS = src
|
||||||
|
|
||||||
#EXTRA_DIST = LEGAL acinclude.m4 include
|
#EXTRA_DIST = LEGAL acinclude.m4 include
|
||||||
|
|
||||||
|
@ -46,7 +46,6 @@ fi
|
|||||||
|
|
||||||
AC_CONFIG_FILES([Makefile
|
AC_CONFIG_FILES([Makefile
|
||||||
src/Makefile
|
src/Makefile
|
||||||
tests/Makefile
|
|
||||||
ima-evm-utils.spec
|
ima-evm-utils.spec
|
||||||
])
|
])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
pkglibexec_PROGRAMS = openclose
|
|
||||||
|
|
||||||
openclose_SOURCES = openclose.c
|
|
||||||
|
|
||||||
dist_pkglibexec_SCRIPTS = evm_enable.sh evm_genkey.sh evm_sign_all.sh evm_sign_modules.sh \
|
|
||||||
ima_fix_dir.sh evm_hmac_all.sh evm_hmac_modules.sh
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# import EVM HMAC key
|
|
||||||
keyctl clear @u
|
|
||||||
keyctl add user kmk "testing123" @u
|
|
||||||
keyctl add encrypted evm-key "load `cat /etc/keys/evm-key`" @u
|
|
||||||
|
|
||||||
# import Moule public key
|
|
||||||
mod_id=`keyctl newring _module @u`
|
|
||||||
evmctl import /etc/keys/pubkey_evm.pem $mod_id
|
|
||||||
|
|
||||||
# import IMA public key
|
|
||||||
ima_id=`keyctl newring _ima @u`
|
|
||||||
evmctl import /etc/keys/pubkey_evm.pem $ima_id
|
|
||||||
|
|
||||||
# import EVM public key
|
|
||||||
evm_id=`keyctl newring _evm @u`
|
|
||||||
evmctl import /etc/keys/pubkey_evm.pem $evm_id
|
|
||||||
|
|
||||||
# enable EVM
|
|
||||||
echo "1" > /sys/kernel/security/evm
|
|
||||||
|
|
||||||
# enable module checking
|
|
||||||
echo "1" > /sys/kernel/security/ima/module_check
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
keyctl add user kmk "testing123" @u
|
|
||||||
key=`keyctl add encrypted evm-key "new user:kmk 32" @u`
|
|
||||||
keyctl print $key >/etc/keys/evm-key
|
|
||||||
|
|
||||||
keyctl list @u
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
verbose=""
|
|
||||||
if [ "$1" = "-v" ] ; then
|
|
||||||
verbose="-v"
|
|
||||||
shift 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
dir=${1:-/}
|
|
||||||
|
|
||||||
echo "Label: $dir"
|
|
||||||
|
|
||||||
find $dir \( -fstype rootfs -o -fstype ext3 -o -fstype ext4 \) \( -type f -o -type d \) -exec evmctl hmac --imahash $verbose '{}' \;
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
verbose=""
|
|
||||||
if [ "$1" = "-v" ] ; then
|
|
||||||
verbose="-v"
|
|
||||||
shift 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
dir=${1:-/lib/modules}
|
|
||||||
|
|
||||||
echo "HMAC modules: $dir"
|
|
||||||
|
|
||||||
find $dir -name "*.ko" -type f -exec evmctl hmac --imasig $verbose '{}' \;
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
verbose=""
|
|
||||||
if [ "$1" = "-v" ] ; then
|
|
||||||
verbose="-v"
|
|
||||||
shift 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
dir=${1:-/}
|
|
||||||
|
|
||||||
echo "Label: $dir"
|
|
||||||
|
|
||||||
find $dir \( -fstype rootfs -o -fstype ext3 -o -fstype ext4 \) -type f -exec evmctl sign --imahash $verbose '{}' \;
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
|||||||
#!/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 -exec evmctl sign --imasig $verbose '{}' \;
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
dir=${1:-/}
|
|
||||||
|
|
||||||
echo "Fixing dir: $dir"
|
|
||||||
|
|
||||||
find $dir \( -fstype rootfs -o -fstype ext3 -o -fstype ext4 \) -type f -exec openclose '{}' \;
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
|||||||
#include <unistd.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
|
||||||
{
|
|
||||||
int fd;
|
|
||||||
|
|
||||||
fd = open(argv[1], O_RDONLY);
|
|
||||||
if (fd < 0) {
|
|
||||||
perror("open()");
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
close(fd);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user