Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp519090pxa; Fri, 14 Aug 2020 10:09:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytyZdeYDwaBcNwrr5TjpctgVTJCoeTEFu7ecMqWBkD/QkySxpZMJR2k4T/MG9dlDANyuRc X-Received: by 2002:a17:906:84e1:: with SMTP id zp1mr3103159ejb.499.1597424996619; Fri, 14 Aug 2020 10:09:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597424996; cv=none; d=google.com; s=arc-20160816; b=PogsDhL5MGVnfbQvSPg1+AueWejb9y02jzElnJhevxFUbn/1OfUuf2Nvp4Uywrgb4j p/NJYJ6v4D82ip6HZjmpaZ+RJAjdNw9sYU+aNtgn4oZqB07aahDBnDFPbDUwIOt+R5cn TX3cu7ymi8uN2gCJtr4pMYimjQwwjCQivRhdbmSZyiZbVb9UuxFL1BmDL4AM1Gm/5fB1 uq9BOU+yNjObLXvx7yOq2WOtAjJEXq+x31mPmvkaw1UQ0KkbbRCGE1e9KyHiqK/XEUVQ 7wBECYRZzwv0AqgyyN2XayFrcYLaJOqglvZIvTpdvqimbS/g4njFUQEdnddpxs3rVR55 zsqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=FPrVn5Ak4zny1PGQMhxvL5nf465ZXCXMx7mKdkOC0SM=; b=bU99ltZRu+I8mYz0l3p5oBxpHVDkRGgpATzo/UKPtJgiKEY18Ctc/7P3a8W3K7oS70 piIYhmOV8M6Jiwr1RPxWFwCWWGaBIbqbfm0lJQIBDOV6u8vusIeCkp3W76wW0Bb7qG8f h5Dkq36F2lMbVAgKeHLOJOODtyEHxJV7nldJsvEwSRd6adsiQ1Wnqm5+vwjGTam07ZzG lLpL9sBhLfSd51GzN+nHNN/wVvU9HlYjrdF4J7I4/n9fWkonoYuU3g/fXWAAbwuXrpWJ 9/WgBHPJa8g1dZ6krLE9xZGGnPSHvi4cEHeBn3DDV7C3iwXzZ7PIxoboJvCMOjSczZM4 k/Fg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sony.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z70si6044666ede.247.2020.08.14.10.09.32; Fri, 14 Aug 2020 10:09:56 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sony.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728380AbgHNRHT convert rfc822-to-8bit (ORCPT + 99 others); Fri, 14 Aug 2020 13:07:19 -0400 Received: from seldsegrel01.sonyericsson.com ([37.139.156.29]:3767 "EHLO SELDSEGREL01.sonyericsson.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726641AbgHNRHQ (ORCPT ); Fri, 14 Aug 2020 13:07:16 -0400 Subject: Re: [PATCH v2 1/2] selinux: add tracepoint on denials To: Stephen Smalley , =?UTF-8?Q?Thi=c3=a9baud_Weksteen?= CC: Paul Moore , Nick Kralevich , Joel Fernandes , Eric Paris , Steven Rostedt , Ingo Molnar , Mauro Carvalho Chehab , "David S. Miller" , Rob Herring , Arnd Bergmann , linux-kernel , SElinux list References: <20200813144914.737306-1-tweek@google.com> <15e2e26d-fe4b-679c-b5c0-c96d56e09853@gmail.com> From: peter enderborg Message-ID: Date: Fri, 14 Aug 2020 19:07:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8BIT Content-Language: en-GB X-SEG-SpamProfiler-Analysis: v=2.3 cv=frmim2wf c=1 sm=1 tr=0 a=kIrCkORFHx6JeP9rmF/Kww==:117 a=IkcTkHD0fZMA:10 a=y4yBn9ojGxQA:10 a=1XWaLZrsAAAA:8 a=pGLkceISAAAA:8 a=vnrgZUeuQPK-PAqJpb0A:9 a=QEXdDO2ut3YA:10 X-SEG-SpamProfiler-Score: 0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/14/20 6:51 PM, Stephen Smalley wrote: > On Fri, Aug 14, 2020 at 9:05 AM ThiƩbaud Weksteen wrote: >> 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. > Sure, I guess that works. Would be nice if we just included the class > and permission name(s) in the event itself but I guess you viewed that > as too heavyweight? The class name is added in part 2. Im not sure how a proper format for permission would look like in trace terms. It is a list, right?