mirror of
https://git.code.sf.net/p/linux-ima/ima-evm-utils
synced 2025-04-28 06:33:36 +02:00
Add 'evmctl --version' version reporting
Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
This commit is contained in:
parent
05d1f74559
commit
f4fe504f98
1
README
1
README
@ -23,6 +23,7 @@ used to import keys into the kernel keyring.
|
||||
COMMANDS
|
||||
--------
|
||||
|
||||
--version
|
||||
help <command>
|
||||
import [--rsa] pubkey keyring
|
||||
sign [-r] [--imahash | --imasig ] [--key key] [--pass password] file
|
||||
|
@ -1482,6 +1482,7 @@ static void usage(void)
|
||||
}
|
||||
|
||||
struct command cmds[] = {
|
||||
{"--version", NULL, 0, ""},
|
||||
{"help", cmd_help, 0, "<command>"},
|
||||
{"import", cmd_import, 0, "[--rsa] pubkey keyring", "Import public key into the keyring.\n"},
|
||||
{"sign", cmd_sign_evm, 0, "[-r] [--imahash | --imasig ] [--key key] [--pass password] file", "Sign file metadata.\n"},
|
||||
@ -1513,6 +1514,7 @@ static struct option opts[] = {
|
||||
{"m32", 0, 0, '3'},
|
||||
{"m64", 0, 0, '6'},
|
||||
{"smack", 0, 0, 256},
|
||||
{"version", 0, 0, 257},
|
||||
{}
|
||||
|
||||
};
|
||||
@ -1586,6 +1588,10 @@ int main(int argc, char *argv[])
|
||||
case 256:
|
||||
evm_config_xattrnames = evm_extra_smack_xattrs;
|
||||
break;
|
||||
case 257:
|
||||
printf("evmctl %s\n", VERSION);
|
||||
exit(0);
|
||||
break;
|
||||
case '?':
|
||||
exit(1);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user