Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762595Ab2FVPar (ORCPT ); Fri, 22 Jun 2012 11:30:47 -0400 Received: from mail-bk0-f46.google.com ([209.85.214.46]:45927 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762367Ab2FVPan convert rfc822-to-8bit (ORCPT ); Fri, 22 Jun 2012 11:30:43 -0400 MIME-Version: 1.0 In-Reply-To: <87ipejo2am.fsf@xmission.com> References: <20120622000049.GA7877@www.outflux.net> <87ipejo2am.fsf@xmission.com> Date: Fri, 22 Jun 2012 08:30:41 -0700 X-Google-Sender-Auth: OJHhwWFrIUINx3yHxh6a3-b0OwM Message-ID: Subject: Re: [PATCH v2] fs: introduce pipe-only dump mode suid_dumpable=3 From: Kees Cook To: "Eric W. Biederman" Cc: linux-kernel@vger.kernel.org, Rob Landley , Alexander Viro , Alan Cox , Marcel Holtmann , Doug Ledford , Andrew Morton , Serge Hallyn , Joe Korty , David Howells , James Morris , linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-System-Of-Record: true Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1061 Lines: 28 On Fri, Jun 22, 2012 at 7:21 AM, Eric W. Biederman wrote: > Kees Cook writes: > >> This patch introduces suid_dumpable=3 to allow privilege-changed processes >> to be dumped only to a pipe handler (and not directly to disk). The value >> of suid_dumpable=2 is now deprecated, and attempting to set this sysctl >> value returns -EINVAL. > > Your patch descriptoin is wrong. ?Deprecate means something is encouraged > not to be used not that the functionality is removed. ?I think what > you are trying to say is that the value suid_dumpable=2 is now historic. > > Your implementation is absolutely gross. ?Reading the value from > twice from user space?? ? ?Is an if statement that hard to code? I will rework this and resend. -Kees -- Kees Cook Chrome OS Security -- 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/