projects
/
platform
/
upstream
/
ima-evm-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
203f058
)
do not output type prefix for sig files
author
Dmitry Kasatkin
<dmitry.kasatkin@intel.com>
Mon, 13 Aug 2012 10:43:40 +0000
(13:43 +0300)
committer
Dmitry Kasatkin
<dmitry.kasatkin@intel.com>
Thu, 6 Sep 2012 11:08:54 +0000
(14:08 +0300)
sig files do not need type prefix as they are contain only signatures.
Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
src/evmctl.c
patch
|
blob
|
history
diff --git
a/src/evmctl.c
b/src/evmctl.c
index
6b47084
..
b4a66ff
100644
(file)
--- a/
src/evmctl.c
+++ b/
src/evmctl.c
@@
-747,7
+747,7
@@
static int sign_ima(const char *file, const char *key)
}
if (sigfile)
- bin2file(file, "sig", sig
, len
);
+ bin2file(file, "sig", sig
+ 1, len - 1
);
if (xattr) {
err = setxattr(file, "security.ima", sig, len, 0);