veriexec: Fix veriexec -i's confusion between loaded and locked states
Calling veriexec -i locked return the state of loaded and vice-versa. Differential revision: https://reviews.freebsd.org/D30952 Reviewed by: sjg,imp Obtained from: Stromshield
This commit is contained in:
parent
d2c233176f
commit
492bf4fdad
@ -91,7 +91,7 @@ main(int argc, char *argv[])
|
||||
ctl = VERIEXEC_STATE_ENFORCE;
|
||||
break;
|
||||
case 'l': /* loaded/locked */
|
||||
ctl = (strncmp(optarg, "lock", 4)) ?
|
||||
ctl = (strncmp(optarg, "lock", 4) == 0) ?
|
||||
VERIEXEC_STATE_LOCKED :
|
||||
VERIEXEC_STATE_LOADED;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user