diff for duplicates of <20191127015654.3744-3-nramas@linux.microsoft.com> diff --git a/a/1.txt b/N1/1.txt index ad33295..12c1ff8 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -52,16 +52,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 853ea00..cfa73e5 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\020191127015654.3744-1-nramas@linux.microsoft.com\0" "From\0Lakshmi Ramasubramanian <nramas@linux.microsoft.com>\0" "Subject\0[PATCH v9 2/6] IMA: Add KEY_CHECK func to measure keys\0" - "Date\0Wed, 27 Nov 2019 01:56:50 +0000\0" + "Date\0Tue, 26 Nov 2019 17:56:50 -0800\0" "To\0zohar@linux.ibm.com" " linux-integrity@vger.kernel.org\0" "Cc\0eric.snowberg@oracle.com" @@ -67,16 +67,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" @@ -84,4 +84,4 @@ "-- \n" 2.17.1 -2e7fdd474db5650aa5206ba20e5f12648e045a4a3850f7de70bbe0dbcbc2195e +a3a4ae2a22b1eafe7442475d7d2b2d0d8e762902f18e5607d86efb499b63d120
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.