From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756229AbdDROYo (ORCPT ); Tue, 18 Apr 2017 10:24:44 -0400 Received: from www.llwyncelyn.cymru ([82.70.14.225]:39826 "EHLO fuzix.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753917AbdDROYn (ORCPT ); Tue, 18 Apr 2017 10:24:43 -0400 X-Greylist: delayed 2900 seconds by postgrey-1.27 at vger.kernel.org; Tue, 18 Apr 2017 10:24:42 EDT Date: Tue, 18 Apr 2017 14:40:57 +0100 From: Alan Cox To: Greg KH Cc: Matt Brown , jmorris@namei.org, akpm@linux-foundation.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com Subject: Re: [PATCH 1/4] added SECURITY_TIOCSTI_RESTRICT kernel config Message-ID: <20170418144057.1e9c2103@lxorguk.ukuu.org.uk> In-Reply-To: <20170417065055.GA21022@kroah.com> References: <20170417060706.28674-1-matt@nmatt.com> <20170417060706.28674-2-matt@nmatt.com> <20170417065055.GA21022@kroah.com> Organization: Intel Corporation X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Since tty sessions are usually separated by different users, how would > they have the same one and yet need something like this? > > Also, why not put this in the tty config section? The normal attack use case people argue about is a rogue process on the users machine sitting there waiting until the user has logged in to a remote machine and is idle and then doing stuff. Attackers of course don't bother doing that because it's easier to get the user to run a different ssh client instead. Alan