From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755201AbdESOdn (ORCPT ); Fri, 19 May 2017 10:33:43 -0400 Received: from h2.hallyn.com ([78.46.35.8]:54502 "EHLO h2.hallyn.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751481AbdESOdk (ORCPT ); Fri, 19 May 2017 10:33:40 -0400 Date: Fri, 19 May 2017 09:33:44 -0500 From: "Serge E. Hallyn" To: Peter Dolding Cc: Kees Cook , Daniel Micay , Alan Cox , Matt Brown , "Serge E. Hallyn" , Greg KH , Jiri Slaby , Andrew Morton , Jann Horn , James Morris , "kernel-hardening@lists.openwall.com" , linux-security-module , linux-kernel Subject: Re: [kernel-hardening] Re: [PATCH v6 0/2] security: tty: make TIOCSTI ioctl require CAP_SYS_ADMIN Message-ID: <20170519143344.GA15983@mail.hallyn.com> References: <20170515215752.4e9f3826@alans-desktop> <5c5c9b06-d2ec-c2e5-3ea2-463f315428f6@nmatt.com> <1a1730f3-5378-1ce5-77a9-b9bc8cd5c90b@nmatt.com> <20170517174113.69d1cbaa@alans-desktop> <1495045540.1619.1.camel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 19, 2017 at 12:48:17PM +1000, Peter Dolding wrote: > Using cap_sys_admin as fix is like removing car windsheld because > vision is being blocked by a rock hitting it. Nonsense. If the application has cap_sys_admin then it is less contained and more trusted anyway. If I went to the trouble to run an application in a private user namespace (where it can have cap_sys_admin, but not targeted at my tty) then it should be more contained. That's the point of targeted capabilities.