Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp616509pxa; Fri, 14 Aug 2020 13:00:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhYyQix6GStw7YCJsIy52yOPft7uwuUmSIc45tJWw0ougjwhV8hlWf8vN22qXaVzM2p6v/ X-Received: by 2002:a05:6402:2033:: with SMTP id ay19mr3806286edb.361.1597435236254; Fri, 14 Aug 2020 13:00:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597435236; cv=none; d=google.com; s=arc-20160816; b=jK04OIUaZURw9HTBZaY+MZfdJ7jteFICkcgnFiUfgpcVR2p1Xzl138klqbKPnLulLu t0w0eCpZPnwmuGaALTb322e+T9olp1eRZXiyDfZ/596h5PVerAaIOMoB9BDXMX6wYJY9 CIcRxfdxr+lDBxK6zVlFPlhk0chDm6J4JWUCwQjAcLxEdjBmkcIRSmUejiieH47rcwFy FhqozJ97HgROAeLJNrGdvZ1r9g2PH3tXz0oU4bgR1J6B4yWg2WlHxoRJ1Q+affL3phhp ciZ/SrjnhFNjIXBcR22Za1AxNNxfwLg9VWS6mjwBSTsAsMCosbRHkGSKCOwcEVG0Idce hBWw== 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=RNb38EZcIxd88fCJW4op0A4jSmdJqs1mBVL0xEyZ/tc=; b=QM9oD7izNal1BitSP6BHqWXM5noV9lTH6aeLgM9GFSc4eDh4WGAjlIwSCGQTR4JE/m Kac8cy9VVJY8PK/7ucmkT8Qz3IwIrT+IYkRiM9bNNm8tgnN7O2+gwAbjXf0jXNzSAxqc vFTMod4Iih1OQ3mYcuOkN3VEs5fyfELvWVHUEJKB8h+xO2x5czlgWP3VFhDw/BcxWUZh G3Ge1AtoANCHHjL6gxDsFiR3G0NbQ0OUU+Vv0cYHjcuqUiTGZKBsM+D0qD+bAZkyAwXp 8pQg3BHxCiuy29M1G6wJb/sHvqP0Dy7ieMwcRe1CGh0Wsm+xuay+ZtJhYvgbbE7Cl4yZ AjVA== 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 e17si5494566ejx.78.2020.08.14.13.00.12; Fri, 14 Aug 2020 13:00:36 -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 S1726967AbgHNSuu convert rfc822-to-8bit (ORCPT + 99 others); Fri, 14 Aug 2020 14:50:50 -0400 Received: from seldsegrel01.sonyericsson.com ([37.139.156.29]:5528 "EHLO SELDSEGREL01.sonyericsson.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726651AbgHNSuu (ORCPT ); Fri, 14 Aug 2020 14:50:50 -0400 Subject: Re: [PATCH v2 1/2] selinux: add tracepoint on denials To: Steven Rostedt CC: Stephen Smalley , =?UTF-8?Q?Thi=c3=a9baud_Weksteen?= , Paul Moore , Nick Kralevich , Joel Fernandes , Eric Paris , 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> <3518887d-9083-2836-a8db-c7c27a70c990@sony.com> <20200814134653.0ba7f64e@oasis.local.home> <6e36d3ca-ba2b-d80d-dffd-205521f39573@sony.com> <20200814143050.2bda2830@oasis.local.home> From: peter enderborg Message-ID: <96ee2444-56c9-5e74-7bb6-0a0d5541216b@sony.com> Date: Fri, 14 Aug 2020 20:50:47 +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: <20200814143050.2bda2830@oasis.local.home> 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=z6gsHLkEAAAA:8 a=hWcZFhq7V7ubGIIZ06cA:9 a=QEXdDO2ut3YA:10 a=d-OLMTCWyvARjPbQ-enb:22 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 8:30 PM, Steven Rostedt wrote: > On Fri, 14 Aug 2020 20:06:34 +0200 > peter enderborg wrote: > >> Im find with that, but then you  can not do filtering? I would be >> pretty neat with a filter saying tclass=file permission=write. >> > Well, if the mapping is stable, you could do: > > (tclass == 6) && (audited & 0x4) It does not happen to exist a hook for translate strings to numeric values when inserting filter? > -- Steve