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 A12EAC433DF for ; Fri, 29 May 2020 22:10:22 +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 mail.kernel.org (Postfix) with ESMTPS id 4FC2720776 for ; Fri, 29 May 2020 22:10:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="LNRiq1us" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4FC2720776 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=schaufler-ca.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=1590790221; 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:autocrypt:autocrypt; bh=JHR6zVURcxE9zo6phl3q5yfbaOUbcTdrjvQLwQFQWRQ=; b=LNRiq1usfNIObhwi8UbkI4oByxts6drE83EA2bRkkZcdjZwXF+IjfnNq2de+4EfkjjxVIX 9/wDOeEWNAxgJbeR2x0DvLem4OS/kPKVe2BnB/7SrRgAHhTGZjhQNGWnLwuIEUvfoNnG9S BWNolRhEno7ya7Y9VUztsItEgXZeMlE= 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-104-oFe1c8rmPVyqwAsv5NpUzw-1; Fri, 29 May 2020 18:10:19 -0400 X-MC-Unique: oFe1c8rmPVyqwAsv5NpUzw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A4F48107ACCA; Fri, 29 May 2020 22:10:15 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7C74F2C2BC; Fri, 29 May 2020 22:10:15 +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 135BC6B4F3; Fri, 29 May 2020 22:10:15 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 04TMACY3024726 for ; Fri, 29 May 2020 18:10:12 -0400 Received: by smtp.corp.redhat.com (Postfix) id 907C520267F2; Fri, 29 May 2020 22:10:12 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast04.extmail.prod.ext.rdu2.redhat.com [10.11.55.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8CBD32026971 for ; Fri, 29 May 2020 22:10:10 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) (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 3AA94101A525 for ; Fri, 29 May 2020 22:10:10 +0000 (UTC) Received: from sonic307-16.consmr.mail.ne1.yahoo.com (sonic307-16.consmr.mail.ne1.yahoo.com [66.163.190.39]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-362-XSdtzx4mPgu7sW1qz79e2g-1; Fri, 29 May 2020 18:10:08 -0400 X-MC-Unique: XSdtzx4mPgu7sW1qz79e2g-1 X-YMail-OSG: OZ5jKQoVM1lIhjABZ4CqPWErzdacGBK3SMUeL5bNMnGp3Dbr3ydEUDDi339KfE0 UDzkAH62aRGPy_.zGjF.bs2stl_mQd5QtuFz5chFvydbO7jwYyd92XVXK3v2_ndpm_q5SPA88bZe ZVucywu8ax2PKF_TC5gUbMGj0WTIHRe6cyjDPIUBNmWQqzB4eplFRINn8aEAV5lhneyasQSVNp7a bXp5uBOp4uOM2bzFpncejtY8NPFs7OtRUQWDvXF4hke9TT9JEcxJjjpXpyPCX2.0EWux0.3nWXHz L_t0aOUv24p5N1QrI_Q9uxvpz9QKlljZhxq2DUASRDW6EiUNk8SZ4Mr8JggTZtGPHM8tKY5.uNN4 IqosSRAn_41leAhk7RzAObwD3Hf93vg2xbXiAPpFNHCjWg2i1I1VL8ujBfvNfh3.ENnN6R9vufMM ZqhJNrkH8iK9supHag32KJnkpP2XonXW9G7Q57OVmtszaeS0jX7qCXhEjCZQm9cgssIy7RKTB0AL MX0eVu2o_aqzNHUvqT2cwtt.RkcG60bTu29p9.eCAZ1ioIGZcq1CNVr6ImctnUEHPhGzyB4mrKYd qDpEn0Zy2PzaAo1fan6TtK6.WH7bNj8Q6yJRGJc5dH4ntylCY95Ww0NIxkz34QrBj6DZHEqQ9H21 iXkeU.O1znozAARAp6r.F38I6d5fnk22Rr6OiBrqo7vq_cohB81qpGE4P0l__ckoVrmrDVLMuJqf ciNkxE7RN_MNtFJuKlnCyKSTiVROwc4jmqB.VuRlmJkMrLLhr0qglDsgFif0i6k7J1gQSlbS2Q.r 5BstMcYtXOH4mp5pPPzU54YnGTTFIxemXi4Gma9BvE78pig47DlEp.YAnlkYG6yxRF1NV2sPvncY CCpF6afNYgOIX.BctI_doEO1ZGdG1mzi5TSgkNLEvL9nWJSc5PVoxP4zrJo535Co9K8_w_c7NFD0 JFlv_F3EhSNMX9qcKoqZxlAxuGDuBOPvipG1iYPmz6yKUbXp4_Hriap8HGfqQeZpr_M0uyza7Fud htoSl41FYvE8W5lJzSnbnCbdBfCwuYUa.b0cLdUa500_0ig5reerB1TfNpln7G22d.SIcAh0c572 JEWjdDrIVqoy6Cq.ZZerlksEZRBO8KMfqQmPLowpQ69Rc8Z3u8sBYlSEiQNB9Cg9H6YYmH33ywPJ XYuSmIS.4BGEILuXXS2uUvSzuqp2HuVfWFCLoQNisCLhRM9KODwhVJC8.Kubcj40KA8FCXxN2_X1 T9nFieWx.g_b_lzmQVhidDt3ybE7CdTrkoe4CRQrfU3it_OpcAHF4W3qe_B9gnwn7JGGntzfES5A OR8T_81qSF.DQIt0ZjCNA5D0S8sh0sFDJ6rQQ2QaIAaTJ5fCeLww4AQrA2h29hXH477QHlsn_gV7 Hkx4urj46Pfv1yqZZyg4c8HzUGsXhM.uSKLypN1ccRWq2 Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Fri, 29 May 2020 22:10:07 +0000 Received: by smtp427.mail.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID f13ed4b4dc37306e22d68829077cc70d; Fri, 29 May 2020 22:10:04 +0000 (UTC) Subject: Re: The audit "context" and when to expect it. To: Paul Moore References: <45ce3357-ca82-8721-22d6-dabe751ad8fa.ref@schaufler-ca.com> <45ce3357-ca82-8721-22d6-dabe751ad8fa@schaufler-ca.com> <29258822-14bb-5ef9-eec9-e5d09f22d70f@schaufler-ca.com> From: Casey Schaufler Autocrypt: addr=casey@sch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ckbSbJKE7Hl6WdW19BXOZ7v3jo1q6lWwcFYth esJfk3ZPPJXuBokrFH8kqnEQ9W2QgrjDX3et2WwZFLOoOCItWxT0/1QO4ikcef/E7HXQf/ij Dxf9HG2o5hOlMIAkJq/uLNMvABEBAAGJAjwEGAEIACYWIQQL720fVjJTAhDNQh44pRV8jEPI EQUCXNX0cAIbDAUJEswDAAAKCRA4pRV8jEPIEWkzEACKFUnpp+wIVHpckMfBqN8BE5dUbWJc GyQ7wXWajLtlPdw1nNw0Wrv+ob2RCT7qQlUo6GRLcvj9Fn5tR4hBvR6D3m8aR0AGHbcC62cq I7LjaSDP5j/em4oVL2SMgNTrXgE2w33JMGjAx9oBzkxmKUqprhJomPwmfDHMJ0t7y39Da724 oLPTkQDpJL1kuraM9TC5NyLe1+MyIxqM/8NujoJbWeQUgGjn9uxQAil7o/xSCjrWCP3kZDID vd5ZaHpdl8e1mTExQoKr4EWgaMjmD/a3hZ/j3KfTVNpM2cLfD/QwTMaC2fkK8ExMsz+rUl1H icmcmpptCwOSgwSpPY1Zfio6HvEJp7gmDwMgozMfwQuT9oxyFTxn1X3rn1IoYQF3P8gsziY5 qtTxy2RrgqQFm/hr8gM78RhP54UPltIE96VywviFzDZehMvuwzW//fxysIoK97Y/KBZZOQs+ /T+Bw80Pwk/dqQ8UmIt2ffHEgwCTbkSm711BejapWCfklxkMZDp16mkxSt2qZovboVjXnfuq wQ1QL4o4t1hviM7LyoflsCLnQFJh6RSBhBpKQinMJl/z0A6NYDkQi6vEGMDBWX/M2vk9Jvwa v0cEBfY3Z5oFgkh7BUORsu1V+Hn0fR/Lqq/Pyq+nTR26WzGDkolLsDr3IH0TiAVH5ZuPxyz6 abzjfg== Message-ID: <8273d350-9d5b-aa0f-1929-adba3a043802@schaufler-ca.com> Date: Fri, 29 May 2020 15:10:04 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-loop: linux-audit@redhat.com Cc: Richard Guy Briggs , Linux-Audit Mailing List 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.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On 5/29/2020 2:49 PM, Paul Moore wrote: > On Fri, May 29, 2020 at 5:42 PM Casey Schaufler wrote: >> On 5/29/2020 12:01 PM, Paul Moore wrote: >>> On Fri, May 29, 2020 at 1:59 PM Casey Schaufler wrote: >>>> What does a NULL audit context (e.g. ab->cxt == NULL) tell >>>> me about the status of the audit buffer? It seems like it should >>>> be telling me that the audit buffer is being created for some >>>> purpose unrelated to the current task. And yet there are places >>>> where information is pulled from the current task even when >>>> the cxt is NULL. >>> The simple answer is that a NULL audit_context indicates a standalone >>> record, meaning a record with a unique timestamp so that it is not >>> associated with any other records into an event. If the audit_context >>> it not NULL then the information in the context is used to group, or >>> associate, all of the records sharing that context into a single >>> event. >> OK, so if I want a add a sub-record with the multiple secctx values > Terminology nit-pick: there are "records" and "events", there is > nothing we would call a sub-record. Thanks. I stand corrected. > In the case you are referring to, > this is a record which would always be part of a larger collection of > records. It's similar to a PATH record in that it doesn't make sense > by itself, but when combined with the other records in an event, it > provides useful information. > >> for the events that include a subject value I need to change those >> events to use an audit_context. Is that going to introduce an >> unacceptable memory or performance burden? > No more so than any additional record. Or rather, it seems like this > is the only way to do what you want to do so I don't see a way around > it. That's what I'll do then. Thanks again. -- Linux-audit mailing list Linux-audit@redhat.com https://www.redhat.com/mailman/listinfo/linux-audit