diff for duplicates of <20191114031202.18012-2-nramas@linux.microsoft.com> diff --git a/a/1.txt b/N1/1.txt index fecd7bb..33fcd84 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -53,16 +53,16 @@ index f19a895ad7cd..1525a28fd705 100644 { int i; -- if (func = KEXEC_CMDLINE) { -+ if ((func = KEXEC_CMDLINE) || (func = KEY_CHECK)) { - if ((rule->flags & IMA_FUNC) && (rule->func = func)) +- if (func == KEXEC_CMDLINE) { ++ if ((func == KEXEC_CMDLINE) || (func == KEY_CHECK)) { + if ((rule->flags & IMA_FUNC) && (rule->func == func)) return true; return false; @@ -997,6 +997,8 @@ static int ima_parse_rule(char *rule, struct ima_rule_entry *entry) entry->func = POLICY_CHECK; - else if (strcmp(args[0].from, "KEXEC_CMDLINE") = 0) + else if (strcmp(args[0].from, "KEXEC_CMDLINE") == 0) entry->func = KEXEC_CMDLINE; -+ else if (strcmp(args[0].from, "KEY_CHECK") = 0) ++ else if (strcmp(args[0].from, "KEY_CHECK") == 0) + entry->func = KEY_CHECK; else result = -EINVAL; diff --git a/a/content_digest b/N1/content_digest index 98c7491..56af805 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\020191114031202.18012-1-nramas@linux.microsoft.com\0" "From\0Lakshmi Ramasubramanian <nramas@linux.microsoft.com>\0" "Subject\0[PATCH v7 1/5] IMA: Add KEY_CHECK func to measure keys\0" - "Date\0Thu, 14 Nov 2019 03:11:58 +0000\0" + "Date\0Wed, 13 Nov 2019 19:11:58 -0800\0" "To\0zohar@linux.ibm.com" dhowells@redhat.com matthewgarrett@google.com @@ -68,16 +68,16 @@ " {\n" " \tint i;\n" " \n" - "-\tif (func = KEXEC_CMDLINE) {\n" - "+\tif ((func = KEXEC_CMDLINE) || (func = KEY_CHECK)) {\n" - " \t\tif ((rule->flags & IMA_FUNC) && (rule->func = func))\n" + "-\tif (func == KEXEC_CMDLINE) {\n" + "+\tif ((func == KEXEC_CMDLINE) || (func == KEY_CHECK)) {\n" + " \t\tif ((rule->flags & IMA_FUNC) && (rule->func == func))\n" " \t\t\treturn true;\n" " \t\treturn false;\n" "@@ -997,6 +997,8 @@ static int ima_parse_rule(char *rule, struct ima_rule_entry *entry)\n" " \t\t\t\tentry->func = POLICY_CHECK;\n" - " \t\t\telse if (strcmp(args[0].from, \"KEXEC_CMDLINE\") = 0)\n" + " \t\t\telse if (strcmp(args[0].from, \"KEXEC_CMDLINE\") == 0)\n" " \t\t\t\tentry->func = KEXEC_CMDLINE;\n" - "+\t\t\telse if (strcmp(args[0].from, \"KEY_CHECK\") = 0)\n" + "+\t\t\telse if (strcmp(args[0].from, \"KEY_CHECK\") == 0)\n" "+\t\t\t\tentry->func = KEY_CHECK;\n" " \t\t\telse\n" " \t\t\t\tresult = -EINVAL;\n" @@ -85,4 +85,4 @@ "-- \n" 2.17.1 -0f1d61c4e1e5124f4a7cce0c7f6db270144703b4308ac19e7d358426f26693c4 +afc6f445ba4c545798a09631cee8b12c3b79b62fc914ac2331120e35ab02b97f
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.