Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp116056ybt; Thu, 25 Jun 2020 16:53:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMmk25Qyd33ucouZFL9B5I3xzQfbHNkkuEIuh1FX1oTk08tLu822bOR2DmxbZQfHMdwMDi X-Received: by 2002:a05:6402:741:: with SMTP id p1mr714306edy.222.1593129193786; Thu, 25 Jun 2020 16:53:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593129193; cv=none; d=google.com; s=arc-20160816; b=ARYvnmwLIKe6NUvrUVF4fywglXu42VCeSD5SaVM7Hl4kWmDaD/gsSR56F9CAJ1I9PL YNU664Yox59yrpwXS3n1HCTQ1t3PXwRf9ytx35ygijeaFLE2AyjCUDAO+9iBuSRZ8sy8 e9tpYGbgNHEbSMCjMh3tSHr+hiiuZDCSQ8qObtMCeIXHn70mTNqdM/1Rjtc6buvg65uA itamT7bi6pWborjUqmmLb9Nz75+YPxRXf22uxC1rJyMUy3WFAwRJm4AbxDBtJeUfJnLO AEk88NYO7TBua5eNkAah3zNe8ASTEVA+ubHFqEeUkGNtSRb+u1UGXK5nbhIrujGXEXY1 U3tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=WW+b3yTizfoRw8ME/OFZBKepi9+e5lkAcffQPZ4tr/0=; b=QpO+TbphOgmFpgMJLlc6hf/ARNTbVvDxKChCbf3bfLn83k+4IW9MTMpAdwC5M6YriC t+HM/Dyyv11v5+PLbbep+YIH7a/BNRfWuoWfJWzxbU6wn0htcnOpIfzhPhlzq4nxqCgw VATc7tqsQ6VzqJi8wbbKlEL0tu0sRuU6iWyTjPEWuJp8totr7LLhQ/ERnsWZRTCQemIn cspGCbOSG/VAFX3sVYCTLCh3a41E2L7VMQ1YzekP7jxtsCYp3N2XO5pICs1dR2OUem39 xBvyXFMWuUzb7YBEmv3v9F8AtWm2v4jdoNlPJ06p9YAXmNH4v1zGIyc+ca/1DDybKHVk mrHQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g1si9847623ejd.517.2020.06.25.16.52.49; Thu, 25 Jun 2020 16:53:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407397AbgFYWpq (ORCPT + 99 others); Thu, 25 Jun 2020 18:45:46 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:15276 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2403795AbgFYWpp (ORCPT ); Thu, 25 Jun 2020 18:45:45 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 05PMXMks121815; Thu, 25 Jun 2020 18:45:39 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 31vtt3n1dq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jun 2020 18:45:39 -0400 Received: from m0098420.ppops.net (m0098420.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 05PMXqYx123125; Thu, 25 Jun 2020 18:45:39 -0400 Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0b-001b2d01.pphosted.com with ESMTP id 31vtt3n1d6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jun 2020 18:45:39 -0400 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 05PMdumo028439; Thu, 25 Jun 2020 22:45:37 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma05fra.de.ibm.com with ESMTP id 31uusg13w3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jun 2020 22:45:37 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 05PMjZvB3211694 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 25 Jun 2020 22:45:35 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 19EF811C04A; Thu, 25 Jun 2020 22:45:35 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B2B5611C076; Thu, 25 Jun 2020 22:45:33 +0000 (GMT) Received: from localhost.localdomain (unknown [9.85.142.225]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 25 Jun 2020 22:45:33 +0000 (GMT) Message-ID: <1593125133.27152.417.camel@linux.ibm.com> Subject: Re: [PATCH 11/12] ima: Use the common function to detect LSM conditionals in a rule From: Mimi Zohar To: Tyler Hicks , Dmitry Kasatkin Cc: James Morris , "Serge E . Hallyn" , Lakshmi Ramasubramanian , Prakhar Srivastava , linux-kernel@vger.kernel.org, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org Date: Thu, 25 Jun 2020 18:45:33 -0400 In-Reply-To: <20200623003236.830149-12-tyhicks@linux.microsoft.com> References: <20200623003236.830149-1-tyhicks@linux.microsoft.com> <20200623003236.830149-12-tyhicks@linux.microsoft.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.687 definitions=2020-06-25_19:2020-06-25,2020-06-25 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 adultscore=0 phishscore=0 suspectscore=0 mlxscore=0 mlxlogscore=761 lowpriorityscore=0 impostorscore=0 spamscore=0 cotscore=-2147483648 clxscore=1015 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006250129 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2020-06-22 at 19:32 -0500, Tyler Hicks wrote: > Make broader use of ima_rule_contains_lsm_cond() to check if a given > rule contains an LSM conditional. This is a code cleanup and has no > user-facing change. > > Signed-off-by: Tyler Hicks Reviewed-by: Mimi Zohar Mimi