Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp921198imm; Wed, 6 Jun 2018 07:53:25 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKBkSITSxXGSQxE3t4NWD0gp9uW45SgNABjLYJ5do/UGXZZe3ri8ZMZPw4ule4uwWHYpvHZ X-Received: by 2002:a17:902:563:: with SMTP id 90-v6mr3602575plf.327.1528296804964; Wed, 06 Jun 2018 07:53:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528296804; cv=none; d=google.com; s=arc-20160816; b=Bx3xmS1acoQq5TkA8IfnU3UQ89KqvsyO+V19xaTwYE4to/9ZYnqPO4JavPhtdnmIDO WrlmQAs/Wt59pP+18J/cnK98MDo+CvkqY0UwRknIPXgq8TZ5mZZJmvP7OAOfbWNsHii+ nXYCpZhsZMAXa0cTWF0wEi4yG4iMgoSeB8/efx47VKoTLUyk8oDG++mbiJ3wNo80u6jQ xxJN2YUrxtILvij7+kOU3Ufcd+82rKopDFc6XeyGyO5NvUk8a9jv3iKgca4I0VzqbKLh RQLsVZx5+TlH+xEKzBIyjM2U8jBeftmHF9TxeP+KUru6JrDZv7oMgwj3ZdSoTPxl2hiS PbqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:cc:to:from:subject :arc-authentication-results; bh=IdtXc3OhRbO/eH4EMq1sN5RyThPYWBwOrUlAohxmmwI=; b=p9qvrLdLxGKF7VgDRzL9qG9Sk6Y9LsgiC+gAQDKapZhjOoEi6yE3Xev+z8J3pSiBgF cK2AAW5+YYoX6P0t9Z4wFp0z/2XLDrrBiuxu033K/s5XsmofhIlESvm2B6N0CGh1Icb/ jVvfy6Zyq+zCFXrwA0r9WYKz/+a8xPZTyfPNDof8Psge35hlhZaHiJrLpPXDR9oSyGxo bJz942h4/hfAZ2q+BkksQc0vuqi1QojB05MDubA2prkyRZWZAFHvRpf9KZUA3T7N0HLm ITakKIhkWGnDzNZWysVnZcTJhCqkzrAjqeVC1XSQNHOFdGI+zUMHZ+CE6eoeK4NXeYoQ eL4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id z1-v6si10593703pgs.525.2018.06.06.07.53.08; Wed, 06 Jun 2018 07:53:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1752024AbeFFOwn (ORCPT + 99 others); Wed, 6 Jun 2018 10:52:43 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:34246 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751957AbeFFOwl (ORCPT ); Wed, 6 Jun 2018 10:52:41 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w56EnY4m091781 for ; Wed, 6 Jun 2018 10:52:41 -0400 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2jefakytnt-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 06 Jun 2018 10:52:41 -0400 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 6 Jun 2018 15:52:39 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 6 Jun 2018 15:52:36 +0100 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w56Eqai836831448 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 6 Jun 2018 14:52:36 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1D6094204F; Wed, 6 Jun 2018 15:42:57 +0100 (BST) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 35A5C4204C; Wed, 6 Jun 2018 15:42:56 +0100 (BST) Received: from localhost.localdomain (unknown [9.80.110.149]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 6 Jun 2018 15:42:56 +0100 (BST) Subject: Re: [PATCH v3 4/4] ima: Differentiate auditing policy rules from "audit" actions From: Mimi Zohar To: Paul Moore Cc: Stefan Berger , linux-integrity@vger.kernel.org, linux-audit@redhat.com, sgrubb@redhat.com, linux-kernel@vger.kernel.org Date: Wed, 06 Jun 2018 10:52:23 -0400 In-Reply-To: References: <20180604205455.2325754-1-stefanb@linux.vnet.ibm.com> <20180604205455.2325754-5-stefanb@linux.vnet.ibm.com> <1528208105.3237.155.camel@linux.vnet.ibm.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: 8bit X-TM-AS-GCONF: 00 x-cbid: 18060614-0020-0000-0000-00000297CA60 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18060614-0021-0000-0000-000020E3DA3F Message-Id: <1528296743.3255.29.camel@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-06-06_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806060170 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-06-05 at 18:18 -0400, Paul Moore wrote: > On Tue, Jun 5, 2018 at 10:15 AM, Mimi Zohar wrote: > > Hi Paul, > > > > On Mon, 2018-06-04 at 20:21 -0400, Paul Moore wrote: > >> On Mon, Jun 4, 2018 at 4:54 PM, Stefan Berger > >> wrote: > >> > The AUDIT_INTEGRITY_RULE is used for auditing IMA policy rules and > >> > the IMA "audit" policy action. This patch defines > >> > AUDIT_INTEGRITY_POLICY_RULE to reflect the IMA policy rules. > >> > > >> > Since we defined a new message type we can now also pass the > >> > audit_context and get an associated SYSCALL record. This now produces > >> > the following records when parsing IMA policy's rules: > >> > >> Aaand now I see you included the current->audit_context pointer I > >> mentioned in my comments for 3/4 ;) > >> > >> So basically this should be fine, although I should point out that you > >> do not need to define a new message type to associate records > >> together. The fact that we don't associate all connected records is > >> basically a bug. > >> > >> Anyway, patches 3/4 and 4/4 look good to me. Considering this is > >> likely going in during the *next* merge window, I would ask that you > >> convert from "current->audit_context" to "audit_context()" as soon as > >> this merge window closes. > >> > >> Thanks! > > > > Thanks, Paul. I'd like to start queueing patches for the next open > > window now, instead of scrambling later. Can I add your Ack now, and > > remember to make this change when rebasing? > > Sure, go ahead and add my ACK to both 3/4 and 4/4 as long as you > double pinky swear you'll do the audit_context() fix-up during the > merge :) > > Acked-by: Paul Moore Sure, it will be really hard to miss.  The next-integrity-queued branch has: Signed-off-by: Stefan Berger *** Remember replace current->audit_context with call to audit_context() *** Acked-by: Paul Moore Signed-off-by: Mimi Zohar