Compare commits
20 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
510061c2b8 | ||
![]() |
7b0cbf5e53 | ||
![]() |
776183a642 | ||
![]() |
c3d090abba | ||
![]() |
bb79f7aaf2 | ||
![]() |
a3c7609b80 | ||
![]() |
d70816cbf1 | ||
![]() |
c6c8cccb83 | ||
![]() |
94de24e5ad | ||
![]() |
3f2f98aef8 | ||
![]() |
ae47101134 | ||
![]() |
d98e4a9bed | ||
![]() |
179664d7e9 | ||
![]() |
c440d2d95f | ||
![]() |
fed7fb6933 | ||
![]() |
78494ab370 | ||
![]() |
192f897b8e | ||
![]() |
0799e24820 | ||
![]() |
c94a0b9262 | ||
![]() |
e2da6956c4 |
@ -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>
|
||||
|
||||
version 0.1
|
||||
|
17
Makefile.am
17
Makefile.am
@ -4,3 +4,20 @@ SUBDIRS = src tests
|
||||
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
SRCS = $(HOME)/rpmbuild/SOURCES
|
||||
SPEC = $(PACKAGE_NAME).spec
|
||||
|
||||
pkgname = $(PACKAGE_NAME)-$(PACKAGE_VERSION)
|
||||
tarname = $(pkgname).tar.gz
|
||||
|
||||
$(tarname):
|
||||
git tag -f v$(PACKAGE_VERSION)
|
||||
git archive --format=tar --prefix=$(pkgname)/ v$(PACKAGE_VERSION) $(FILES) | gzip >$@;
|
||||
|
||||
tar: $(tarname)
|
||||
|
||||
rpm: $(tarname)
|
||||
cp $(tarname) $(SRCS)/
|
||||
rpmbuild -ba --nodeps $(SPEC)
|
||||
|
||||
.PHONY: $(tarname)
|
||||
|
12
README
12
README
@ -1,8 +1,17 @@
|
||||
|
||||
1. Generate private key
|
||||
|
||||
# plain key
|
||||
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
|
||||
|
||||
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
|
||||
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...
|
||||
|
||||
ima_fix_dir.sh <dir>
|
||||
|
@ -1,7 +1,7 @@
|
||||
# autoconf script
|
||||
|
||||
AC_PREREQ([2.65])
|
||||
AC_INIT(evm-utils, 0.1, dmitry.kasatkin@intel.com)
|
||||
AC_INIT(ima-evm-utils, 0.1.1, dmitry.kasatkin@intel.com)
|
||||
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
@ -33,7 +33,7 @@ AC_CHECK_HEADERS(openssl/conf.h)
|
||||
#debug support - yes for a while
|
||||
PKG_ARG_ENABLE(debug, "yes", DEBUG, [Enable Debug support])
|
||||
if test $pkg_cv_enable_debug = yes; then
|
||||
CFLAGS="-g -O1 -Wall -Wstrict-prototypes -pipe"
|
||||
CFLAGS="$CFLAGS -g -O1 -Wall -Wstrict-prototypes -pipe"
|
||||
else
|
||||
CFLAGS="$CFLAGS -Wall -Wstrict-prototypes -pipe -fomit-frame-pointer"
|
||||
fi
|
||||
@ -47,7 +47,7 @@ fi
|
||||
AC_CONFIG_FILES([Makefile
|
||||
src/Makefile
|
||||
tests/Makefile
|
||||
evm-utils.spec
|
||||
ima-evm-utils.spec
|
||||
])
|
||||
AC_OUTPUT
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
Name: @PACKAGE_NAME@
|
||||
Version: @PACKAGE_VERSION@
|
||||
Release: 1%{?dist}
|
||||
Summary: evm-utils - IMA/EVM support utilities
|
||||
Summary: @PACKAGE_NAME@ - IMA/EVM control utility
|
||||
Group: System/Libraries
|
||||
License: LGPLv2
|
||||
#URL:
|
||||
@ -12,11 +12,10 @@ BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: libattr-devel
|
||||
BuildRequires: readline-devel
|
||||
BuildRequires: keyutils-libs-devel
|
||||
|
||||
%description
|
||||
This library provides EVM support utilities.
|
||||
This package provide IMA/EVM control utility
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
@ -48,6 +47,6 @@ exit 0
|
||||
%{_libdir}/*
|
||||
|
||||
%changelog
|
||||
* Wed Jul 20 2011 Dmitry Kasatkin <dmitry.kasatkin@intel.com>
|
||||
- Initial package for MeeGo
|
||||
* Thu Apr 05 2012 Dmitry Kasatkin <dmitry.kasatkin@intel.com>
|
||||
- Initial RPM spec file
|
||||
|
592
src/evmctl.c
592
src/evmctl.c
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user