Test scripts are not used at all.
All needed information is in README.
Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
-SUBDIRS = src tests
+SUBDIRS = src
#EXTRA_DIST = LEGAL acinclude.m4 include
AC_CONFIG_FILES([Makefile
src/Makefile
- tests/Makefile
ima-evm-utils.spec
])
AC_OUTPUT
+++ /dev/null
-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
-
+++ /dev/null
-#!/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
-
+++ /dev/null
-#!/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
-
+++ /dev/null
-#!/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 '{}' \;
-
+++ /dev/null
-#!/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 '{}' \;
-
+++ /dev/null
-#!/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 '{}' \;
-
+++ /dev/null
-#!/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 '{}' \;
-
+++ /dev/null
-#!/bin/sh
-
-dir=${1:-/}
-
-echo "Fixing dir: $dir"
-
-find $dir \( -fstype rootfs -o -fstype ext3 -o -fstype ext4 \) -type f -exec openclose '{}' \;
-
+++ /dev/null
-#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;
-}
-