Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1034139iob; Fri, 13 May 2022 20:26:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3feaUQlXmrH0ScEYfcj631u0sRllEJM3LEdAh9oivqSa+bNXlfww26IqCb0nxWt/uDYKP X-Received: by 2002:a7b:cf02:0:b0:393:fbb0:7189 with SMTP id l2-20020a7bcf02000000b00393fbb07189mr6859681wmg.197.1652498808071; Fri, 13 May 2022 20:26:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652498808; cv=none; d=google.com; s=arc-20160816; b=bionF/XlVQnz0/3KQDb2INmW9189NMv1+OHh6cdvXFKI79iTrsyI1XRJiB2sDqJbCG us+RwB25DBdpHlRKEs3wwWuddjsOfC4kD6dV0vmPAvxvg/yL+qVJyGYNHMidxlZDLhB8 GTbXTh7OfVaTY6N+74nCemw6vY+1Ab68UQPZVtB3lVUiZUt87bQCoy0eZTjfVhH7byAD fBVYYdDJzV8L9hd46V07ZKwn8jzj7V1GupxxupnwNLLpWyAiku1UlPg2CArpdF6IEERr y9qgaEZzerCLcLGhLHkTflfmItqY1UE3Ij6QJPUebBHTo674E6Dv8XCLDtjKt0WUi5Yp oDiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=VZbIDCul7T2Ww8sJEjj+xsE0H5qsntMAXBtOrgZzbxc=; b=ZggIeh9h0aAYL208OGhUPUmdQ+q6UeoVdHiPnSjsUjTqKen8Ff1tyxaKWcbvZuwfin iJ+O13b4OXuamCKCPVaJlbGWmv/HpWRkQy3VUGCop+ukRDJUuMumTLdKBzfi8uU/rJDe vVN5LoaYPx8WGXOC75bMpAtFEtYYTIXcUBAlikHj1/vHFLWezKXai88qoU3TJQHYfbx7 YaA7iuYOLnCybU64N3CfUjKXnBeK5gjAsA9YJxWBCfGgoHB4vWQjhu6Xgkbjcb9konXE RieNPQcg82zp27IVxB7O/B4E3nWiUVg+qnnI9ceVINwQPjcA+lkmAs6d8H1FSrxP2nwe ODuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="S/CuAKWC"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s6-20020a7bc386000000b00393fd7e1f28si3831392wmj.56.2022.05.13.20.26.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 20:26:48 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="S/CuAKWC"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 53DF8412D02; Fri, 13 May 2022 17:03:40 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353387AbiELLnO (ORCPT + 99 others); Thu, 12 May 2022 07:43:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351802AbiELLnN (ORCPT ); Thu, 12 May 2022 07:43:13 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCCD65BD24; Thu, 12 May 2022 04:43:12 -0700 (PDT) Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24CBPdXq011183; Thu, 12 May 2022 11:43:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=VZbIDCul7T2Ww8sJEjj+xsE0H5qsntMAXBtOrgZzbxc=; b=S/CuAKWCxf4DvZrmjW8ErAmyX+2RgVqP653ujCC+/oz9Yea6zi3WgMM/D78DgB516PPB hSnt3c4PHd9wsojQpPjjI5sEb9dW7JMSnd1gWwcqsLD+yIt5LdLJ8C/klDiU5ma6mBSG d9tgWeCj5pkGCwHRyX3eZarpLl+Jluj0AspN4ERGneGQE046di/R1mzKLeVz194qYGpR IHSUNyuUO3xM9cZRWMQJqYS43Xr+GfjNLxHhMe6Dq/E1+u6XXP199JDN1u5LsrL6xMDN tlocHV5Y7TKZ+N1TX9daCOXiAyHzjVVM2eAl86hq3tCkvPXYpBr6CkQJM8/BlAJidUqm Lw== Received: from ppma02wdc.us.ibm.com (aa.5b.37a9.ip4.static.sl-reverse.com [169.55.91.170]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3g11bug8tc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 12 May 2022 11:43:12 +0000 Received: from pps.filterd (ppma02wdc.us.ibm.com [127.0.0.1]) by ppma02wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 24CBbIb7031987; Thu, 12 May 2022 11:43:11 GMT Received: from b03cxnp08028.gho.boulder.ibm.com (b03cxnp08028.gho.boulder.ibm.com [9.17.130.20]) by ppma02wdc.us.ibm.com with ESMTP id 3fwgda2wna-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 12 May 2022 11:43:11 +0000 Received: from b03ledav003.gho.boulder.ibm.com (b03ledav003.gho.boulder.ibm.com [9.17.130.234]) by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 24CBhARV43516172 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 May 2022 11:43:10 GMT Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0CC496A05D; Thu, 12 May 2022 11:43:10 +0000 (GMT) Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A9D776A054; Thu, 12 May 2022 11:43:09 +0000 (GMT) Received: from sbct-3.pok.ibm.com (unknown [9.47.158.153]) by b03ledav003.gho.boulder.ibm.com (Postfix) with ESMTP; Thu, 12 May 2022 11:43:09 +0000 (GMT) From: Stefan Berger To: zohar@linux.ibm.com, linux-integrity@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Stefan Berger Subject: [PATCH] evm: Return INTEGRITY_PASS for enum integrity_status value '0' Date: Thu, 12 May 2022 07:43:07 -0400 Message-Id: <20220512114307.3669972-1-stefanb@linux.ibm.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: FVgjLTIpGbMgE3v2a1Jhhqrluafzcg5W X-Proofpoint-ORIG-GUID: FVgjLTIpGbMgE3v2a1Jhhqrluafzcg5W X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-12_02,2022-05-12_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=787 phishscore=0 adultscore=0 impostorscore=0 malwarescore=0 lowpriorityscore=0 spamscore=0 clxscore=1015 priorityscore=1501 mlxscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205120052 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return INTEGRITY_PASS for the enum integrity_status rather than 0. Signed-off-by: Stefan Berger --- security/integrity/evm/evm_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/integrity/evm/evm_main.c b/security/integrity/evm/evm_main.c index 7d87772f0ce6..cc88f02c7562 100644 --- a/security/integrity/evm/evm_main.c +++ b/security/integrity/evm/evm_main.c @@ -436,7 +436,7 @@ static enum integrity_status evm_verify_current_integrity(struct dentry *dentry) struct inode *inode = d_backing_inode(dentry); if (!evm_key_loaded() || !S_ISREG(inode->i_mode) || evm_fixmode) - return 0; + return INTEGRITY_PASS; return evm_verify_hmac(dentry, NULL, NULL, 0, NULL); } -- 2.35.1