Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1708837pxa; Thu, 20 Aug 2020 19:25:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOW8pkwntvzCtWc5p5lQ8xYcKEt28dlnbno+z38FHiVR/YQFPfSzij+O8LmFwK/b//DmhM X-Received: by 2002:aa7:db50:: with SMTP id n16mr739073edt.292.1597976720951; Thu, 20 Aug 2020 19:25:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597976720; cv=none; d=google.com; s=arc-20160816; b=Nr6MxFUhqnEXpa38cTO+lwXu/nnGGLToMRFtHlK/HoiHswdECm0blqYPkzNVExDQB5 j7MXW3iAugjuTezR1eFqNLoeEENKx1Zz8ME0ldxdjuOnApnt1TfwKFQuGz9oxGE+WyEZ uD16zIBPKKri99ItxQWXZPkUDEVDkbcNC9JEOiV3L+YCwVWCGuTVfmCi/bYGt//hOxbS 9EsWoDOeUhpXDYunKaPqduvpSMLyuw2sGmzsLHoq8xGmToqtgQ9Ay3IgLVfxboppwIgz vlKgKw+8FGZJ0+oheeGOmTJsnLKaWA1fDa6yQOAgPgayeZfe0uZPLHL6wz51cbeNsRgc F0zg== 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=b1QCc14GPT5F3fBeMa9aJ6/+QjqukYcGYpP98XcieAM=; b=G/whN/sjLFMy2eGGB24onNM1L1ToZgdwjv8akr6XkPdVKplgbcg9z+kRtE9kFHxYh0 6h6mg+/x/2pmbC9+cA8tMINkBTrBDtSULp0rN1nlFssi565NfZ49vLcS0NHaX69HOV6f v5uW0Keb0c8pqs+HpGb+0Pah0mofzltSL5FD2x+xOdg96wy1JVC4X3yznp8L2JIQGPTB GNaakebjhO7eH/3NFKsB2PEZYNCshM+Xk9zTIMyzVsTgePnoR1bhZ7khq8Ya3XY33qMv 7okP/xkJyoyWsArKWOFEkDWq0KruWhKNIpjWArfkOJMc2wdJRtqB14HXAaJa1n1qlQhY CKjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b="rkZem/xP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f6si295995edu.604.2020.08.20.19.24.56; Thu, 20 Aug 2020 19:25:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b="rkZem/xP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727881AbgHUCWt (ORCPT + 99 others); Thu, 20 Aug 2020 22:22:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727106AbgHUCWo (ORCPT ); Thu, 20 Aug 2020 22:22:44 -0400 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9E55C061386 for ; Thu, 20 Aug 2020 19:22:43 -0700 (PDT) Received: by mail-ej1-x641.google.com with SMTP id f24so560661ejx.6 for ; Thu, 20 Aug 2020 19:22:43 -0700 (PDT) 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=b1QCc14GPT5F3fBeMa9aJ6/+QjqukYcGYpP98XcieAM=; b=rkZem/xP//Yw5RcfZCb8d0EXj6/DVgghiIYX4ouKUYXL4ERL6uT3z9/PYcwXrBpuLc eWLEEvEkCH2oNtkT+d6wgthUF8PW9ENjWXnmCj01NAX5IdAF6ZBYl4JEMcjb0dXAHve8 +E4+9H1EXNQLcmcuqoHYIUvx+Z1pxM8IM7Ugrw7HMSd3fjEhW6UWVQzb0a3ye4G/QoBR ncjW0WD4h1qyLnCNayIlH6/adY3RT1mR9iGVUiFyPjsx/TZSavmNgZol65w8ZJxjcK8y fd7t3uiZBtGH0ySTH6qg5DBbQqCxHTpBJ/x5WUsf3tdcBh+u7NUGh+RQLkIoemQotdyX Yvbw== 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=b1QCc14GPT5F3fBeMa9aJ6/+QjqukYcGYpP98XcieAM=; b=UJCgzveW8uixmhth37KmQBDHOA1GVLJSflmyHlR/x0C7QGjG+2rZ+1fZNgRya2v4u0 J+fp8jLwy+KbsHfbOHkjLpsEOIDARr6RDbfevmexbywVBUWyecdMKqwdMwbxHlKjuupx pX/RywoRqMmmM4KITxQRpXhc5onMz+t6fKZb84RLfDCJCuiqZ8uzMhVg0ly0MDrb7EL/ OVVU4eB/fdilwSraG6xB9vxI5DQxcs9DT1pbCt2uTtoEQhNplKSb7NJ9/UVw0Exn7fPi jTAVAuE5U36o+ZWSMP898dK35JuOYoPexElMYAk9IARCj68ik3WKwhacVkz4c0CvkUms nEVw== X-Gm-Message-State: AOAM533ksG73t7rXzYBBtYwocZNORbE1F8DkFM4CQX6qXe9tcD8a2MJV v+Cm6rxTHl0wsBwki2ok6mYlq57RKeFetb6ZHuwd X-Received: by 2002:a17:906:1911:: with SMTP id a17mr623897eje.431.1597976562364; Thu, 20 Aug 2020 19:22:42 -0700 (PDT) MIME-Version: 1.0 References: <20200817170729.2605279-1-tweek@google.com> <20200817170729.2605279-4-tweek@google.com> <6730ec4a-d11b-5c05-b64f-380104a86dab@sony.com> In-Reply-To: From: Paul Moore Date: Thu, 20 Aug 2020 22:22:30 -0400 Message-ID: Subject: Re: [PATCH v3 3/3] selinux: add permission names to trace event To: Stephen Smalley Cc: peter enderborg , =?UTF-8?Q?Thi=C3=A9baud_Weksteen?= , Nick Kralevich , Steven Rostedt , Eric Paris , Ingo Molnar , Mauro Carvalho Chehab , "David S. Miller" , Rob Herring , linux-kernel , SElinux list 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, Aug 18, 2020 at 8:14 AM Stephen Smalley wrote: > On Tue, Aug 18, 2020 at 4:11 AM peter enderborg wrote: ... > > Is there any other things we need to fix? A part 1&2 now OK? > > They looked ok to me, but Paul should review them. Patches 1 and 2 look fine to me with the small nits that Stephen pointed out corrected. I'm glad to see the information in string form now, I think that will be a big help for people making use of this. Unfortunately, I'm a little concerned about patch 3 for the reason Stephen already mentioned. While changes to the class mapping are infrequent, they do happen, and I'm not very excited about adding it to the userspace kAPI via a header. Considering that the tracing tools are going to be running on the same system that is being inspected, perhaps the tracing tools could inspect /sys/fs/selinux/class at runtime to query the permission mappings? Stephen, is there a libselinux API which does this already? -- paul moore www.paul-moore.com