mirror of
https://git.code.sf.net/p/linux-ima/ima-evm-utils
synced 2025-07-03 22:23:16 +02:00
Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
1e2934d9a3 | |||
c13fce4028 | |||
aa2f6e9b63 | |||
ff071501d0 | |||
f2b486e053 | |||
e3f11d343a | |||
7e89de565e | |||
e91cb01e9a | |||
b0966fd243 | |||
0b197c4d30 |
@ -1,3 +1,8 @@
|
|||||||
|
2012-04-02 Dmitry Kasatkin <dmitry.kasatkin@intel.com>
|
||||||
|
|
||||||
|
version 0.1.0
|
||||||
|
* Fully functional version for lastest 3.x kernels
|
||||||
|
|
||||||
2011-08-24 Dmitry Kasatkin <dmitry.kasatkin@intel.com>
|
2011-08-24 Dmitry Kasatkin <dmitry.kasatkin@intel.com>
|
||||||
|
|
||||||
version 0.1
|
version 0.1
|
||||||
|
12
README
12
README
@ -1,8 +1,17 @@
|
|||||||
|
|
||||||
1. Generate private key
|
1. Generate private key
|
||||||
|
|
||||||
|
# plain key
|
||||||
openssl genrsa -out privkey_evm.pem 1024
|
openssl genrsa -out privkey_evm.pem 1024
|
||||||
|
|
||||||
|
# encrypted key
|
||||||
|
openssl genrsa -des3 -out privkey_evm.pem 1024
|
||||||
|
|
||||||
|
# set password for the key
|
||||||
|
openssl rsa -in /etc/keys/privkey_evm.pem -out privkey_evm_enc.pem -des3
|
||||||
|
or
|
||||||
|
openssl pkcs8 -topk8 -in /etc/keys/privkey_evm.pem -out privkey_evm_enc.pem
|
||||||
|
|
||||||
2. Generate public key
|
2. Generate public key
|
||||||
|
|
||||||
openssl rsa -pubout -in privkey_evm.pem -out pubkey_evm.pem
|
openssl rsa -pubout -in privkey_evm.pem -out pubkey_evm.pem
|
||||||
@ -34,6 +43,9 @@ find /lib/modules ! -name "*.ko" -type f -uid 0 -exec evmctl sign --imahash '{}'
|
|||||||
# security.ima needs to have signature for modules
|
# security.ima needs to have signature for modules
|
||||||
find /lib/modules -name "*.ko" -type f -uid 0 -exec evmctl sign --imasig '{}' \;
|
find /lib/modules -name "*.ko" -type f -uid 0 -exec evmctl sign --imasig '{}' \;
|
||||||
|
|
||||||
|
# generate signatures in .sig files
|
||||||
|
find /lib/modules -name "*.ko" -type f -uid 0 -exec evmctl -n --sigfile ima_sign '{}' \;
|
||||||
|
|
||||||
8. Label filesystem in fix mode...
|
8. Label filesystem in fix mode...
|
||||||
|
|
||||||
ima_fix_dir.sh <dir>
|
ima_fix_dir.sh <dir>
|
||||||
|
@ -33,7 +33,7 @@ AC_CHECK_HEADERS(openssl/conf.h)
|
|||||||
#debug support - yes for a while
|
#debug support - yes for a while
|
||||||
PKG_ARG_ENABLE(debug, "yes", DEBUG, [Enable Debug support])
|
PKG_ARG_ENABLE(debug, "yes", DEBUG, [Enable Debug support])
|
||||||
if test $pkg_cv_enable_debug = yes; then
|
if test $pkg_cv_enable_debug = yes; then
|
||||||
CFLAGS="-g -O1 -Wall -Wstrict-prototypes -pipe"
|
CFLAGS="$CFLAGS -g -O1 -Wall -Wstrict-prototypes -pipe"
|
||||||
else
|
else
|
||||||
CFLAGS="$CFLAGS -Wall -Wstrict-prototypes -pipe -fomit-frame-pointer"
|
CFLAGS="$CFLAGS -Wall -Wstrict-prototypes -pipe -fomit-frame-pointer"
|
||||||
fi
|
fi
|
||||||
|
416
src/evmctl.c
416
src/evmctl.c
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user