Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 11 Jan 2002 07:42:44 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 11 Jan 2002 07:42:34 -0500 Received: from lightning.swansea.linux.org.uk ([194.168.151.1]:17668 "EHLO the-village.bc.nu") by vger.kernel.org with ESMTP id ; Fri, 11 Jan 2002 07:42:27 -0500 Subject: Re: [PATCH] suser to capable changes in char driver To: bole@falcon.etf.bg.ac.yu (Bosko Radivojevic) Date: Fri, 11 Jan 2002 12:53:45 +0000 (GMT) Cc: linux-kernel@vger.kernel.org In-Reply-To: from "Bosko Radivojevic" at Jan 11, 2002 06:50:42 AM X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: From: Alan Cox Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > * This tty is already the controlling > * tty for another session group! > */ > - if ((arg == 1) && suser()) { > + if ((arg == 1) && capable(CAP_SYS_TTY_CONFIG)) { > /* > * Steal it away > */ You can't allow stealing of the controlling tty as TTY_CONFIG, it gives you direct access to fake input on that console so really wants to be rather higher. - 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/