make --imahash or --imasig optional for EVM signing
One might not want to change/set IMA xattr value when performing EVM signing. Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
This commit is contained in:
parent
2406322914
commit
971b286169
12
src/evmctl.c
12
src/evmctl.c
@ -1090,12 +1090,6 @@ static int cmd_sign_evm(struct command *cmd)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (!digsig && !digest) {
|
||||
log_err("Parameters missing\n");
|
||||
print_usage(cmd);
|
||||
return -1;
|
||||
}
|
||||
|
||||
key = keyfile ? : "/etc/keys/privkey_evm.pem";
|
||||
|
||||
if (digsig) {
|
||||
@ -1544,12 +1538,6 @@ static int cmd_hmac_evm(struct command *cmd)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (!digsig && !digest) {
|
||||
log_err("Parameters missing\n");
|
||||
print_usage(cmd);
|
||||
return -1;
|
||||
}
|
||||
|
||||
key = keyfile ? : "/etc/keys/privkey_evm.pem";
|
||||
|
||||
if (digsig) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user