Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5244224ybl; Tue, 4 Feb 2020 10:14:22 -0800 (PST) X-Google-Smtp-Source: APXvYqxoyolcz6RlzprW5vFBjrqNsJikRhfRAb5/ettZGaNOxE31k5rMBSYMbnAgZ8h1c/umN1i7 X-Received: by 2002:a05:6808:5d0:: with SMTP id d16mr201137oij.45.1580840062603; Tue, 04 Feb 2020 10:14:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580840062; cv=none; d=google.com; s=arc-20160816; b=09S0pOtUyP+wv1MV16Ul0DsfgXlcPUTxF/H8k+v4Z9bK7zOQ7YSFDVW7g7NdrXJWu/ uJHioFeRZfGIYMVXY5dIYmbJa/jxrkT81TeYceTTyrRTRh4F9P6mJjQQVGBdfWf27mTH QWiqMgwktRLuS4cAnuKNdBlwC4QWM7RMAOJl/eBk2SLrvdpIIL4qkWFA/pf19ZdiREOk uzt9VoOfMDulTRO23daRVm1w2AlcXoDc1InAvm3nDw/Mhq0a9fSjeJEH0c7wJX5N/Hcp SDblejDH8jX652zzjGY4YfJrSof8LaO4DQI3EvYLMmTmSRr1/UFnfGcIE4YWwqesMbdM 2GZQ== 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:dkim-signature; bh=Bzg9bDZQ96CGaLiNh7lVZC6J4F7OP3CKfbn8hB4NuvU=; b=kkKLCZIP5E4ni1O4c4U8YJa04lxXKajQ4F/Tjb3bycV8dVqFisT7whE+GuKM7LON9t K5Pop2M2YrwyuhRiSgEBe+RArqts49Rw2lq3q21envZ0h+BW6SAdpAXGvfI2n4StAgBY AXnB13nVOEL5E3VTQQRys7AGobJJuhh8fXCbP6eId2UhXJxwiRHieYdbEo5jqt3+Cft3 zQtpePGCjgs1MmvolRqK+z24IzNR8+mgO8CpZqD6rnfIIR4TBnxGKzeJ5lMfrpRogwLe aAoTShritT9AyxkInPWsGmfn9eOOaJVNTewknyJEC5nD6sGjMfRkFIN3xWbYE0Hv/xTw R8sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ff+T2yYc; 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=pass (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 x137si10744820oif.42.2020.02.04.10.14.06; Tue, 04 Feb 2020 10:14:22 -0800 (PST) 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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ff+T2yYc; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727454AbgBDSM0 (ORCPT + 99 others); Tue, 4 Feb 2020 13:12:26 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:49503 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727361AbgBDSMW (ORCPT ); Tue, 4 Feb 2020 13:12:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1580839941; h=from:from: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; bh=Bzg9bDZQ96CGaLiNh7lVZC6J4F7OP3CKfbn8hB4NuvU=; b=Ff+T2yYcEYLooq5WKsUxhMua2yWhvki8kryi3e1zL0bRD6mbMPD5vvQ0UUG8JBRBmaiiuP xpxx1LfcPSXtATlkkgft6olZAKeAlNZ3ewJ+wSR0MYDEM0PlJxo6C6cQWiuqokCzymcMM5 Ja78S79NKQH4WBSXfWoOdwIgGqOP050= 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-261-E-q9i6prMwOivKPvmq3UPw-1; Tue, 04 Feb 2020 13:12:17 -0500 X-MC-Unique: E-q9i6prMwOivKPvmq3UPw-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 0B46818A6EC1; Tue, 4 Feb 2020 18:12:15 +0000 (UTC) Received: from x2.localnet (ovpn-116-11.phx2.redhat.com [10.3.116.11]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9117C19C69; Tue, 4 Feb 2020 18:12:03 +0000 (UTC) From: Steve Grubb To: Paul Moore Cc: Richard Guy Briggs , containers@lists.linux-foundation.org, linux-api@vger.kernel.org, Linux-Audit Mailing List , linux-fsdevel@vger.kernel.org, LKML , netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, omosnace@redhat.com, dhowells@redhat.com, simo@redhat.com, Eric Paris , Serge Hallyn , ebiederm@xmission.com, nhorman@tuxdriver.com, Dan Walsh , mpatel@redhat.com Subject: Re: [PATCH ghak90 V8 13/16] audit: track container nesting Date: Tue, 04 Feb 2020 13:12:02 -0500 Message-ID: <35934535.C1y6eIYgqz@x2> Organization: Red Hat In-Reply-To: References: <3665686.i1MIc9PeWa@x2> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, February 4, 2020 10:52:36 AM EST Paul Moore wrote: > On Tue, Feb 4, 2020 at 10:47 AM Steve Grubb wrote: > > On Tuesday, February 4, 2020 8:19:44 AM EST Richard Guy Briggs wrote: > > > > The established pattern is that we print -1 when its unset and "?" > > > > when > > > > its totalling missing. So, how could this be invalid? It should be > > > > set > > > > or not. That is unless its totally missing just like when we do not > > > > run > > > > with selinux enabled and a context just doesn't exist. > > > > > > Ok, so in this case it is clearly unset, so should be -1, which will be > > > a > > > 20-digit number when represented as an unsigned long long int. > > > > > > Thank you for that clarification Steve. > > > > It is literally a -1. ( 2 characters) > > Well, not as Richard has currently written the code, it is a "%llu". > This was why I asked the question I did; if we want the "-1" here we > probably want to special case that as I don't think we want to display > audit container IDs as signed numbers in general. OK, then go with the long number, we'll fix it in the interpretation. I guess we do the same thing for auid. -Steve