Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp347275pxa; Fri, 14 Aug 2020 06:09:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkhTbF1xggswScuKiHuogyGuWuWipPHxAuktA7cds/XD89bUXZfOB9CHfiOnl6/4cNfaop X-Received: by 2002:a17:906:c2c8:: with SMTP id ch8mr2196188ejb.161.1597410546329; Fri, 14 Aug 2020 06:09:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597410546; cv=none; d=google.com; s=arc-20160816; b=CBdiqOjxOOWoAWoE9ftopIE69xK/yNtoopRWN5JR3Wu9XI6hGyg/sEARtJ/jg2/xzK I3JxvDzu9Si1TWXXkcCJyUtsv77Pc4L45AQDG1ONukarpevqTMipAVxThW6gy/53O9gO LUJcwsE61Arl33iWTN2exiOTL2tQymX5UrCVeOLx/sL/2bq0gWOkebSxRHAwOJlKkYY/ uwN8CQR8F4ZRc+DqeKZOWDveSTInerYV46lCtnubbwO/in/m5J6qa+4lUO4sfLeIt8MQ 6nDaXLDY3Vznlgcny00Cqo6hn+DS7pw3B/7d4mWQQw0CGT4SAUj98mLuRz75ogBj/AQE Pz+A== 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=KQ/SjJonqKxF8GqCYSrKygb2G6Do+uwecY0D4M9064g=; b=RFT5a+MKuBdbnF5AcXM51SEI4HaoQJp65cqd7Vt2kyaJLJcDa2pg14GukaETjrw6hC 1PCHhRxXX65y+iME9VIR00fMEB+U3XH01U4Tks6u/LUqj0KJy/Ds6/VzEjzVIhMi7e68 XrO3jw/vZi4HOqEeMJT0Ou+NlOVdSxwOSU6HSGE2pf61NuIWGOXorCB6VmIvXxvglmVS lxL6aUJs31iSNRVtysLZmcnlKWykJ07QAFDHP+X2eCLqlgTQDbMhwhZv9iYx9wtyynot eDqT1eUXjYCtHBuDemBF5J6VzfuAlAKJo4wDcBWbOZvo33mjLBlBr+JV1KpdiNCDbUBy CLYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="A4Pil4/R"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dt2si6333072ejc.67.2020.08.14.06.08.43; Fri, 14 Aug 2020 06:09:06 -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=@google.com header.s=20161025 header.b="A4Pil4/R"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727012AbgHNNFd (ORCPT + 99 others); Fri, 14 Aug 2020 09:05:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726139AbgHNNF1 (ORCPT ); Fri, 14 Aug 2020 09:05:27 -0400 Received: from mail-vs1-xe44.google.com (mail-vs1-xe44.google.com [IPv6:2607:f8b0:4864:20::e44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06C2FC061384 for ; Fri, 14 Aug 2020 06:05:24 -0700 (PDT) Received: by mail-vs1-xe44.google.com with SMTP id q13so4593756vsn.9 for ; Fri, 14 Aug 2020 06:05:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KQ/SjJonqKxF8GqCYSrKygb2G6Do+uwecY0D4M9064g=; b=A4Pil4/RFWeLrHcENNRRVSO0/AZSQdJupDPKS5tlWoCkoMkNw06kCszKvafEQDBNHv Fi9gfNRoPqBXepsGkmqrtOX93y98u7yeKQdR9BptHKzn1iN0qvbKV+XklXCvXIycIDS8 69gZm0mb5KAbQD4Kj+hB6+owUxKSpZY2RdMI87ZprMgIIROq76w/r7Cqr4fhZnoEYfpD fdNIjnj4h8Vb75FwXG+M5U1CDpUvIuw5hb/UqPBU1tmeBQB2eGp+JEDh6C5QrYMDzfRW BQr3Je7R0G+1OXEYD9V4Gr+fL2RnfjE52MNZpkIuFJw6dWKR3dVhWdwAOymjmjgbav3C XGyw== 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=KQ/SjJonqKxF8GqCYSrKygb2G6Do+uwecY0D4M9064g=; b=oXOLZhnAga8v8XH70hg6yAY2eg0OuE2Z7GAaVGqykPdI2h7hXROAM2Y/UVB5dcz97p RJ5MGW/q3u83+24ZDYGLnSD0e72hERJCh+sORWM/pg+0bkUEQTiQQekSk+wcQjT/NMMW VbWwoMnAPeGZUbBJNageeETs1JQjq1i2sg8xuVKHbOMv5rWfp2MDIP85pu92eVkmNPM9 1Dp/Ij/RKFJ3bSBHhdhW7WbUFwD0TnFaH/c2LxMrxBOaN/Tz0lTKqdHJBTTdrsD9frMv MO5lEYdANCABEYX+Ncpty1BuoPaoMy1cAVjSDvterIijcXEqkjzv9okR4xINEubIWmnp nTwA== X-Gm-Message-State: AOAM5329YLvOSNHYYjqi1CXSs8Rtcx4XfMQ7BJn8eo09Y/zt8tfPj9Uq xRybUHN8C6kwnRgaeJqMM/PCrQgSWCcQL7vtZ+gS4g== X-Received: by 2002:a05:6102:1049:: with SMTP id h9mr1108246vsq.183.1597410322798; Fri, 14 Aug 2020 06:05:22 -0700 (PDT) MIME-Version: 1.0 References: <20200813144914.737306-1-tweek@google.com> <15e2e26d-fe4b-679c-b5c0-c96d56e09853@gmail.com> In-Reply-To: <15e2e26d-fe4b-679c-b5c0-c96d56e09853@gmail.com> From: =?UTF-8?Q?Thi=C3=A9baud_Weksteen?= Date: Fri, 14 Aug 2020 15:05:05 +0200 Message-ID: Subject: Re: [PATCH v2 1/2] selinux: add tracepoint on denials To: Stephen Smalley Cc: Paul Moore , Nick Kralevich , Joel Fernandes , Peter Enderborg , Eric Paris , Steven Rostedt , Ingo Molnar , Mauro Carvalho Chehab , "David S. Miller" , Rob Herring , Arnd Bergmann , 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 Thu, Aug 13, 2020 at 5:41 PM Stephen Smalley wrote: > > An explanation here of how one might go about decoding audited and > tclass would be helpful to users (even better would be a script to do it > for them). Again, I know how to do that but not everyone using > perf/ftrace will. What about something along those lines: The tclass value can be mapped to a class by searching security/selinux/flask.h. The audited value is a bit field of the permissions described in security/selinux/av_permissions.h for the corresponding class.