ima: Fix bool initialization/comparison
Bool initializations should use true and false. Bool tests don't need comparisons. Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
This commit is contained in:
parent
7c9bc0983f
commit
39adb92598
|
@ -32,7 +32,7 @@ bool ima_canonical_fmt;
|
||||||
static int __init default_canonical_fmt_setup(char *str)
|
static int __init default_canonical_fmt_setup(char *str)
|
||||||
{
|
{
|
||||||
#ifdef __BIG_ENDIAN
|
#ifdef __BIG_ENDIAN
|
||||||
ima_canonical_fmt = 1;
|
ima_canonical_fmt = true;
|
||||||
#endif
|
#endif
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -196,9 +196,9 @@ static int __init policy_setup(char *str)
|
||||||
if ((strcmp(p, "tcb") == 0) && !ima_policy)
|
if ((strcmp(p, "tcb") == 0) && !ima_policy)
|
||||||
ima_policy = DEFAULT_TCB;
|
ima_policy = DEFAULT_TCB;
|
||||||
else if (strcmp(p, "appraise_tcb") == 0)
|
else if (strcmp(p, "appraise_tcb") == 0)
|
||||||
ima_use_appraise_tcb = 1;
|
ima_use_appraise_tcb = true;
|
||||||
else if (strcmp(p, "secure_boot") == 0)
|
else if (strcmp(p, "secure_boot") == 0)
|
||||||
ima_use_secure_boot = 1;
|
ima_use_secure_boot = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -207,7 +207,7 @@ __setup("ima_policy=", policy_setup);
|
||||||
|
|
||||||
static int __init default_appraise_policy_setup(char *str)
|
static int __init default_appraise_policy_setup(char *str)
|
||||||
{
|
{
|
||||||
ima_use_appraise_tcb = 1;
|
ima_use_appraise_tcb = true;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
__setup("ima_appraise_tcb", default_appraise_policy_setup);
|
__setup("ima_appraise_tcb", default_appraise_policy_setup);
|
||||||
|
|
Loading…
Reference in New Issue