Received: by 10.192.165.156 with SMTP id m28csp555844imm; Tue, 17 Apr 2018 15:11:50 -0700 (PDT) X-Google-Smtp-Source: AIpwx49Z+vfHHyP2Xy82GpVU28OeaK9pltZgQhrsBJGDxPvcKaR3Q+YqhJzRUXeL4wKzVBO+Hsop X-Received: by 10.101.87.138 with SMTP id b10mr3138999pgr.241.1524003110531; Tue, 17 Apr 2018 15:11:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524003110; cv=none; d=google.com; s=arc-20160816; b=DqMoxc2JvSO2kCZJBWHUkU2oPt0HQ5XViKwiGiLlsjuidi8Ms1RlP1kD6DB7w05r53 wJ/w30OE/HUrapxOexJPHJ5YTFf3V8Q+uJhNHt8fXb8dnU2LwhokK0reeVbU7YMsqJST dy+1FsxhIJmUc0h0tQ25nLLFw2YyK+FwtsAKcFQmXYWUK/wTiVl5hSSoqi8cZbZknuAG CKmX77dcF3BRHkLhK+5YqRjqYgK9CdPOUvuplO64EFoX51N3gGgYx2UJUDjfZLdhv2S9 GZGnkLEH76LM7iqfo3RwA5YlAWTBsl+UpT2LNO1JdjXcKBfVFQyr5fq5gLuytUyYOCBW z3MA== 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:organization:message-id:date:subject:cc:to :from:arc-authentication-results; bh=9aR50Ajeph47Z+VW/6MXV6/NLHGk2E+h83gddyOKXfM=; b=RikB6gDpeoZtZWviLcmyDa5ubc/ki5/yF6COdvGjk3fV5fs/GOdwJ77ydXwZ4d0qq3 lXUUbh1QnC/2jTSQT80LyIcNXabEC9DRiq/2Deoe1YmDdWENBgICXwVLuLYw0tRn577D 2qHMyK4fjjO8w6JfLZ0NMnmquKV+0f/lj8x8gBCG66VV6E6oxZsS/pF0ogw62+g9cHLD 8oBmO7QIFJPw2RVip89m87PED5LhnYSsqQp2nvZ4OBYgqy/Mpla01heKT+s6lH+Dd4tL fzCRWlM40NFBCtawT1mvT5dNzhAKY6cnvA7Gy+0NZ7qJBEfWQKJaqnM3qtECc/RC8XTG dxrg== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d92-v6si15080962pld.195.2018.04.17.15.11.36; Tue, 17 Apr 2018 15:11:50 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752580AbeDQWKb (ORCPT + 99 others); Tue, 17 Apr 2018 18:10:31 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:47088 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750989AbeDQWKa (ORCPT ); Tue, 17 Apr 2018 18:10:30 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 735404023112; Tue, 17 Apr 2018 22:10:30 +0000 (UTC) Received: from x2.localnet (ovpn-121-123.rdu2.redhat.com [10.10.121.123]) by smtp.corp.redhat.com (Postfix) with ESMTP id 21DBB2026E0E; Tue, 17 Apr 2018 22:10:30 +0000 (UTC) From: Steve Grubb To: Paul Moore Cc: Richard Guy Briggs , Linux-Audit Mailing List , LKML , Eric Paris Subject: Re: [PATCH ghak80 V1] audit: add syscall information to FEATURE_CHANGE records Date: Tue, 17 Apr 2018 18:10:30 -0400 Message-ID: <2312860.Cha4zeddVm@x2> Organization: Red Hat In-Reply-To: References: <08bd08ee9bc70f6e98b9e298ba6a2c0f4dcadb4b.1523372093.git.rgb@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Tue, 17 Apr 2018 22:10:30 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Tue, 17 Apr 2018 22:10:30 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'sgrubb@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, April 17, 2018 6:06:24 PM EDT Paul Moore wrote: > On Wed, Apr 11, 2018 at 8:46 AM, Richard Guy Briggs wrote: > > Tie syscall information to FEATURE_CHANGE calls since it is a result of > > user action. > > > > See: https://github.com/linux-audit/audit-kernel/issues/80 > > > > Signed-off-by: Richard Guy Briggs > > --- > > > > kernel/audit.c | 5 ++--- > > 1 file changed, 2 insertions(+), 3 deletions(-) > > > > diff --git a/kernel/audit.c b/kernel/audit.c > > index 8da24ef..23f125b 100644 > > --- a/kernel/audit.c > > +++ b/kernel/audit.c > > @@ -1103,10 +1103,9 @@ static void audit_log_feature_change(int which, > > u32 old_feature, u32 new_feature> > > { > > > > struct audit_buffer *ab; > > > > - if (audit_enabled == AUDIT_OFF) > > + if (!audit_enabled) > > Sooo, this is an unrelated style change, why? Looking at the rest of > kernel/audit.c we seem to use a mix of "(!x)" and "(x == 0/CONST)" so > why are you adding noise to this patch? > > > return; > > > > - > > - ab = audit_log_start(NULL, GFP_KERNEL, AUDIT_FEATURE_CHANGE); > > + ab = audit_log_start(current->audit_context, GFP_KERNEL, > > AUDIT_FEATURE_CHANGE); > This is the important part, and the Right Thing To Do. This is an unexpected change. I have asked questions on the github issue tracker but have not gotten a satisfactory answer. Please do not merge this until there's agreement on this. Thanks, -Steve > > if (!ab) > > > > return; > > > > audit_log_task_info(ab, current); > > > > -- > > 1.8.3.1