Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752846Ab3JGVl4 (ORCPT ); Mon, 7 Oct 2013 17:41:56 -0400 Received: from mail-la0-f41.google.com ([209.85.215.41]:48182 "EHLO mail-la0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752564Ab3JGVly (ORCPT ); Mon, 7 Oct 2013 17:41:54 -0400 MIME-Version: 1.0 In-Reply-To: <20131005132337.GA4095@dztty> References: <20131004085911.GA2157@dztty> <20131004182353.GA2600@dztty> <20131004191113.GA3916@dztty> <20131004192712.GA4334@dztty> <20131004194142.GA4524@dztty> <20131005132337.GA4095@dztty> From: Andy Lutomirski Date: Mon, 7 Oct 2013 14:41:33 -0700 Message-ID: Subject: Re: [PATCH v2 2/9] procfs: add proc_allow_access() to check if file's opener may access task To: Djalal Harouni Cc: "Eric W. Biederman" , Kees Cook , Al Viro , Andrew Morton , Linus Torvalds , Ingo Molnar , "Serge E. Hallyn" , Cyrill Gorcunov , David Rientjes , LKML , Linux FS Devel , "kernel-hardening@lists.openwall.com" , Djalal Harouni Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1268 Lines: 47 On Sat, Oct 5, 2013 at 6:23 AM, Djalal Harouni wrote: > On Fri, Oct 04, 2013 at 03:17:08PM -0700, Andy Lutomirski wrote: >> >> Exactly. Hence the NAK. > But Having two LSM Hooks there is really not practical! It'd doable *if* it turns out that it's the right solution. But revoke seems much more likely to be simple, comprehensible, and obviously correct to me. --Andy > > Note to mention some of these redundancy checks... > >> > >> > Is there some mechanism to check what you describe? >> > >> >> No. You could try to add one, but getting it to be compatible with >> YAMA might be really messy. > LSM is limitted in this situation, and it can't work with YAMA, or > perhaps YAMA will just return -EPERM > > So this LSM protections are currently vulnerable too! > > >> Or you could see if destroying and recreating all the inodes on exec >> or some other revoke-like approach would work. >> >> --Andy > > -- > Djalal Harouni > http://opendz.org -- Andy Lutomirski AMA Capital Management, LLC -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/