Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4712215imm; Tue, 11 Sep 2018 16:46:36 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb/KOBpOa79AiP7Ec3mIo2VwlmNXX34fJ3ZPoKw2GFq2ADgojZt7sW3dAMUuuEUZ3qrYjQH X-Received: by 2002:a63:a06:: with SMTP id 6-v6mr31485492pgk.318.1536709596635; Tue, 11 Sep 2018 16:46:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536709596; cv=none; d=google.com; s=arc-20160816; b=saX/A2kR1s7nF3Qx8BBZbpzcdGYe7BcMTC13ewzV+I2sSveBCD8tY8S1RbJ62qR2ER 8zE8hwAjffWFa8iit4ulBOpftU+lmLsJqstNsuNcPZLRmalRM/9V4xw9/0TehAWAJgqw zFZAgxlaxMFeZl5YPwqa/bklllLui7gSHUjoJJIIbaGnoVUXfKcYaKqbBmaVGrV12+S+ +4KAgKr1uaaptLLAp//IDKdEYDOmXXdSbH1cUWhJ2HPb0dizeAVGR61ej+yqRmBBXgu9 zFbCVvLQ7ve1hmq73mT0zw4te6nFbHxlAxK8chhp1T6a8lrxszMIg+Kh8DtYQ/2Be9wJ Q3qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LKYsj+fQQbEtJ3OIxqQEY8O2OHq/3jimPkAF5JtqiHs=; b=KJAWesSzSGPXr97IY73KIGEqWwdJnweeBWQRSmGSf2FhQ3GAWnSifHoauCCXzT0OOw 53a9fFDSOZ16YD+SUaBMuyBLi98Kyc2tinA0V2m/i84sI7h+rt2aXBF8E3ojDL+g4nHV q4y7t6KM3P2YLd5HBHbi5pqPOgd3d4e24UgJvD+HOgcJWXvGYAibOmpSRdv7JcSkXngy sVqnjBxcTL09LD/gaxxf+9nEkkKyIzBX7hLhtB0fUHu82Bsk4Um6o5vl9NdIO74O/IMw bDynrIb/U8YKOvZuRz20G3O2Mnj31Jlsamomszf7MZSJUra+yahan3r0fiRl3cJYr54h kg9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="NDX/Y+XY"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d127-v6si21732946pfa.189.2018.09.11.16.46.21; Tue, 11 Sep 2018 16:46:36 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b="NDX/Y+XY"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728360AbeILErU (ORCPT + 99 others); Wed, 12 Sep 2018 00:47:20 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:37810 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725936AbeILErT (ORCPT ); Wed, 12 Sep 2018 00:47:19 -0400 Received: by mail-ed1-f65.google.com with SMTP id a20-v6so315380edd.4; Tue, 11 Sep 2018 16:45:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=LKYsj+fQQbEtJ3OIxqQEY8O2OHq/3jimPkAF5JtqiHs=; b=NDX/Y+XYzG6xS1QGha0vBBuZy/4z3VBCOXNnomi4Jl1aVYiv/XdzZzu82SpqP8BX+V Zk+hN6uIytcL8bnfokvxlu4pB69I066NMJNAEKaPMSW1iosKj2nOKGsxyTXgZXL/TG8b e13dRHKv6vhM8a2LeI0wXwgRtsZPpjhE69p5lyFLhXRqL7yDIa8vSByMPxTI8Ecb56eP wevsIG8xYEWYAD/bq6SZ/13e/EnN6yGRWGAIjBhXpfOvgK2Ev/kuV7qWpi14HB/PvPeh Jqx74ZY7Az1i10Sx1aEYHwXW+gYBZoRvtXshtmde/A8NEJtRMW4ooIl5Xw1EV8LMFlNe yglw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=LKYsj+fQQbEtJ3OIxqQEY8O2OHq/3jimPkAF5JtqiHs=; b=BPjiSWPL9msJmkzCh6t+ynv00cBGMlhWPNQkTNtRunHsyo3g1ZPP7lPbiSqTydHPs7 BgoKqZj2puDrKKFprtlLwN3NQVdZlZbguP+aIGCvKuruObVdUfL367fQuVp8ZSblSpSX S1mzYrlpgEMEmeJ6wzxE/ySlN0g/UOfIpbHMfiHoxKJAxlF3ABa/NY2uVEP8C3vTUlQT avaF6K0zbmboHK9tybbOvx4sYpatKiX91MVWJvmyzCjCdnOi5s+nHoGOhqhgtWm+gEU+ Jg+7x0M8H66h/tSJZsj2/MtQT9eDPz4ds7ZGtb4B0QGqYrFnWNXKnh1rnnXet75c3NIb TBvQ== X-Gm-Message-State: APzg51CGg9BHPvAhjgmG5kiAhFtJqMblmBoOhFp283R+zQdVAXy1O3b8 po15HB9zPQ7g8UzjU1dJ/2Y= X-Received: by 2002:a50:b2c6:: with SMTP id p64-v6mr30433840edd.293.1536709540820; Tue, 11 Sep 2018 16:45:40 -0700 (PDT) Received: from darwi-kernel ([142.93.171.10]) by smtp.gmail.com with ESMTPSA id c50-v6sm10809532edb.67.2018.09.11.16.45.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 11 Sep 2018 16:45:39 -0700 (PDT) Date: Tue, 11 Sep 2018 23:45:38 +0000 From: "Ahmed S. Darwish" To: Casey Schaufler Cc: LSM , James Morris , LKM , SE Linux , John Johansen , Kees Cook , Tetsuo Handa , Paul Moore , Stephen Smalley , "Schaufler, Casey" Subject: Re: [PATCH 01/10] procfs: add smack subdir to attrs Message-ID: <20180911234538.GB12337@darwi-kernel> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 11, 2018 at 09:41:32AM -0700, Casey Schaufler wrote: > Back in 2007 I made what turned out to be a rather serious > mistake in the implementation of the Smack security module. > The SELinux module used an interface in /proc to manipulate > the security context on processes. Rather than use a similar > interface, I used the same interface. The AppArmor team did > likewise. Now /proc/.../attr/current will tell you the > security "context" of the process, but it will be different > depending on the security module you're using. > > This patch provides a subdirectory in /proc/.../attr for > Smack. Smack user space can use the "current" file in > this subdirectory and never have to worry about getting > SELinux attributes by mistake. Programs that use the > old interface will continue to work (or fail, as the case > may be) as before. > Did downstream distributions already merge the stacking patches on their own? Got a little-bit confused after reading the log above; I already see this in in Ubuntu 18.04.1 LTS, v4.15.0-33-generic: $ tree /proc/self/attr/ /proc/self/attr/ ├── apparmor │   ├── current │   ├── exec │   └── prev ├── current ├── display_lsm ├── exec ├── fscreate ├── keycreate ├── prev ├── selinux │   ├── current │   ├── exec │   ├── fscreate │   ├── keycreate │   ├── prev │   └── sockcreate ├── smack │   └── current └── sockcreate Thanks, -- Darwi http://darwish.chasingpointers.com