do not output type prefix for sig files

sig files do not need type prefix as they are contain only signatures.

Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
This commit is contained in:
Dmitry Kasatkin 2012-08-13 13:43:40 +03:00
parent 203f058903
commit ba07c9d4b1

View File

@ -747,7 +747,7 @@ static int sign_ima(const char *file, const char *key)
} }
if (sigfile) if (sigfile)
bin2file(file, "sig", sig, len); bin2file(file, "sig", sig + 1, len - 1);
if (xattr) { if (xattr) {
err = setxattr(file, "security.ima", sig, len, 0); err = setxattr(file, "security.ima", sig, len, 0);