Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5109201ybl; Tue, 4 Feb 2020 07:54:01 -0800 (PST) X-Google-Smtp-Source: APXvYqzOKY1MrdfOP7DvS6dNrryGFh2xYQD+i4qIFcl8Ft0/kW+/RsBW59roTNMK0Lj2HM55wHpl X-Received: by 2002:a9d:3bc4:: with SMTP id k62mr23392455otc.186.1580831641216; Tue, 04 Feb 2020 07:54:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580831641; cv=none; d=google.com; s=arc-20160816; b=ZkITp/B7fyhbae6zLLYOXBKDtXpP3URuq/hOL3Syj8nB4Xcvo70nyiTzJlN7ZfGlLz /3Knya2G/A/jL90wMxfR+RHVnyeeulGs1Qz1WkTZvjDooa0yqc84X6Q1ZEAJIfNmImL7 a42d2baeHj5FJa/eZLYCtsrG79SHNj5VZdyz3b4Qpy/eYSjBbh1+5C/FuIWJVmXZRNZW uazKXAUFXg2ISt7kDuzerESj2jdg6jtVq7vFCoVO6EUHspG+gsWTOYXdCo/6eT4NIFEE JfLpgEtDMqExU3D0M/M+Ai7LYQIZMrsK6yRN7ydc996wG7LnZdK+dLXLmuQjyOR2tPoc U5uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=0d0fJd2kqJOBxIhDrO5YQ550FVzvPHsXp/LZedW7iYo=; b=pdW16+uimBfaJyUbPXCduzBlBf75RSxGpb+aj6l+qwnRBXsFk5atT1ONpljPZVDzbz l3Jfy1Mj9veNAsNXRWboQY3vxwbGJ19NNTsIX0gs/V5/OYHc0Xndz3TrBAaw8fURd8IR v/Utm8WuvzrutDNLMYT8C9jfes8+RQJdV3bx4+VrKGoOBcd97yXvWI/eI/iyEy24l4OT GVVHQ/7uCOxASgJMFkaxH5cxq4tJsDm1bYyFbHQirxsm/WNy2zVTBH301RlXE0aQPPIM wPx1j/03vr50PzhFY+Gnq37Ph1Kx9kw2fDaqyyXaQ2/0pihTYh7UZXsCIROu+vl9wkHv VVzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=jV+b0Pt2; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z2si10779183oix.100.2020.02.04.07.53.47; Tue, 04 Feb 2020 07:54:01 -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=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=jV+b0Pt2; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727368AbgBDPwv (ORCPT + 99 others); Tue, 4 Feb 2020 10:52:51 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:43456 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727331AbgBDPwv (ORCPT ); Tue, 4 Feb 2020 10:52:51 -0500 Received: by mail-ed1-f67.google.com with SMTP id dc19so20196047edb.10 for ; Tue, 04 Feb 2020 07:52:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0d0fJd2kqJOBxIhDrO5YQ550FVzvPHsXp/LZedW7iYo=; b=jV+b0Pt2SFxKxAS8cj1UQHfhP4u6Is0Ked6engWmcGC4Vi3TiaYTuMDEDShbyo/W7Z 1G3Z0cM0PQWOg38Z+JVqucnhUkVnrOHTg50fin3WAGhZgHIYgSQ19+fPt7zs5oVqfJea pFWTF/n1Y213SSzHRtw5+jlUvJShRGJ7FhRpHhM1nAXcPW2m+/YHt61prqobroLuGOGk Y1CQM8QgSJwCyjxAesY/KCzkHfxFaZvogMV+xmE/W9owG68Y6pOv1plJSjhJiJzmsdiF xLMebzV4Z6XBRCCVQYgqj7kXbOFpljAZJuaOraWTomEviTzwCFj9906EhFb5Yal9kDuO Yt1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0d0fJd2kqJOBxIhDrO5YQ550FVzvPHsXp/LZedW7iYo=; b=B56r/tAo5+8ZzylSg4WWvJ9xZuIacn9Ng9a9jYtdVekp8pBRkgUjMT6/eP0Nq+ilqf HUTU8CO51rguoECzuDIA1Rvch4VfWjzFd2XZ9R416OdMCnkX3tX7yTJOfjz+fFKrACDZ WZvlDLP62uo2cLlc2mDhu8pD17Pq6/uv4mLc4qD98UyX1om6ee/YYMAf8dsIkapbuwI3 axk9jv/9mkdjwSAM8N9fpPjiWCQ2iwPl/hfQh1UrduzsgtOpWlu3g2BZ9YrPJ+mMpOQV 7FQLQBLlE2UkjG/43x5H7OzBMrTd1NMiNb+At9zhwt1zPWX8Q4b53epZS9lo6nv/Rq4/ q/EA== X-Gm-Message-State: APjAAAXsdKOa3s5ouQX+ut3kvcpaImDZ0y6nGFyOMk0mfcCoMs5HcFae 96AiL+4NyG/K6BkX8d5gqLY0DyPz5aIfURPsRj3t X-Received: by 2002:a17:906:22cf:: with SMTP id q15mr26062018eja.77.1580831567900; Tue, 04 Feb 2020 07:52:47 -0800 (PST) MIME-Version: 1.0 References: <5238532.OiMyN8JqPO@x2> <20200204131944.esnzcqvnecfnqgbi@madcap2.tricolour.ca> <3665686.i1MIc9PeWa@x2> In-Reply-To: <3665686.i1MIc9PeWa@x2> From: Paul Moore Date: Tue, 4 Feb 2020 10:52:36 -0500 Message-ID: Subject: Re: [PATCH ghak90 V8 13/16] audit: track container nesting To: Steve Grubb 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- paul moore www.paul-moore.com