From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E6FFC433DF for ; Tue, 9 Jun 2020 18:41:14 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EBDE120734 for ; Tue, 9 Jun 2020 18:41:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="LtBoNLPL" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EBDE120734 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-audit-bounces@redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1591728072; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=5AXexP0HmKGeBlMg31fb2wx5xBRP+wcHp2tHUfs9c7o=; b=LtBoNLPL5PUMoisNXDYtSPapfCCvfDEiGLhqXPG8phQyge+MaKKy+aaPG8GTaErXKapy6n aOEJnvihoYoCjhyLlt7CiAwMNMibBPGCHDY5+5l/2XxsABhsCCAtS+Hn0yPtYYiuPn+1Q6 FETJ4GEVaUMp+Moq8mmHkAhXVflD8Ik= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-303-r1bpHQgHOjymyBj9SHF6bA-1; Tue, 09 Jun 2020 14:41:07 -0400 X-MC-Unique: r1bpHQgHOjymyBj9SHF6bA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id DF1A391164; Tue, 9 Jun 2020 18:41:03 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BD91C5C1D6; Tue, 9 Jun 2020 18:41:03 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 09E4D1809554; Tue, 9 Jun 2020 18:41:02 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 059I3eS3003684 for ; Tue, 9 Jun 2020 14:03:40 -0400 Received: by smtp.corp.redhat.com (Postfix) id 9AB1FDEEC2; Tue, 9 Jun 2020 18:03:40 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast02.extmail.prod.ext.rdu2.redhat.com [10.11.55.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9659FE38D8 for ; Tue, 9 Jun 2020 18:03:37 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 17A968007A4 for ; Tue, 9 Jun 2020 18:03:37 +0000 (UTC) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by relay.mimecast.com with ESMTP id us-mta-328-fyvZU_xqPoKNqC3Jl-d-tQ-1; Tue, 09 Jun 2020 14:03:30 -0400 X-MC-Unique: fyvZU_xqPoKNqC3Jl-d-tQ-1 Received: from [192.168.0.104] (c-73-42-176-67.hsd1.wa.comcast.net [73.42.176.67]) by linux.microsoft.com (Postfix) with ESMTPSA id 1AE4320B717B; Tue, 9 Jun 2020 11:03:29 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 1AE4320B717B Subject: Re: [PATCH v3] IMA: Add audit log for failure conditions To: Steve Grubb , Richard Guy Briggs References: <20200608215343.4491-1-nramas@linux.microsoft.com> <518a51b7-6c8d-f55f-c73a-b15abae8e0af@linux.microsoft.com> <20200609171555.itbllvtgjdanbbk7@madcap2.tricolour.ca> <2006844.2enhIMKrvE@x2> From: Lakshmi Ramasubramanian Message-ID: <2e3bc793-0d29-5434-1da3-2bcc34ed9012@linux.microsoft.com> Date: Tue, 9 Jun 2020 11:03:28 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <2006844.2enhIMKrvE@x2> Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-loop: linux-audit@redhat.com X-Mailman-Approved-At: Tue, 09 Jun 2020 14:41:00 -0400 Cc: linux-integrity@vger.kernel.org, linux-audit@redhat.com, linux-kernel@vger.kernel.org, zohar@linux.ibm.com X-BeenThere: linux-audit@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Linux Audit Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit On 6/9/20 10:35 AM, Steve Grubb wrote: >> >> If it is added, it should be appended to the end of the record since it >> is an existing record format, then in the case of res=1, errno= should >> still be present (not swing in and out) and just contain zero. (Or >> another value if there is a non-fatal warning?) > > This is not a searchable field, so it can go anywhere. If it is searchable, > ausearch expects ordering of other searchable fields. > Thank you for the clarification Steve. I'll add "errno=" right after "cause=". Also, "errno" will always be present - will be set to 0 if status is "success" (res=1) and a non-zero value for failure (res=0) thanks, -lakshmi -- Linux-audit mailing list Linux-audit@redhat.com https://www.redhat.com/mailman/listinfo/linux-audit