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:
		| @@ -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); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Dmitry Kasatkin
					Dmitry Kasatkin