Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S269390AbUJFTI5 (ORCPT ); Wed, 6 Oct 2004 15:08:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S269392AbUJFTI4 (ORCPT ); Wed, 6 Oct 2004 15:08:56 -0400 Received: from mail.fh-wedel.de ([213.39.232.198]:35500 "EHLO moskovskaya.fh-wedel.de") by vger.kernel.org with ESMTP id S269390AbUJFTIz (ORCPT ); Wed, 6 Oct 2004 15:08:55 -0400 Date: Wed, 6 Oct 2004 21:08:56 +0200 From: =?iso-8859-1?Q?J=F6rn?= Engel To: Gianni Tedesco Cc: Andrew Morton , linux-kernel@vger.kernel.org Message-ID: <20041006190856.GE10153@wohnheim.fh-wedel.de> References: <20041005185214.GA3691@wohnheim.fh-wedel.de> <1097087850.27683.3.camel@sherbert> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <1097087850.27683.3.camel@sherbert> User-Agent: Mutt/1.3.28i Subject: Re: [PATCH] Console: fall back to /dev/null when no console is availlable Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SA-Exim-Rcpt-To: gianni@scaramanga.co.uk, akpm@osdl.org, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: joern@wohnheim.fh-wedel.de X-SA-Exim-Version: 3.1 (built Son Feb 22 10:54:36 CET 2004) X-SA-Exim-Scanned: Yes Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 945 Lines: 25 On Wed, 6 October 2004 19:37:30 +0100, Gianni Tedesco wrote: > > BTW. What happens if /dev/console or /dev/null are regular files? Interesting point. Any readers (init, some/all of it's children) will read until one reaches EOF, all writers will flood it 'til it's full. If there was an IOUAC (international obfuscated unix abuse contest), you could use this for IPC, maybe. > I don't see any check for this. I didn't think Linux imposed any > namespace layout/ownership/permission requirements. Anyone able to turn /dev/console into a regular file can already do much worse things. Don't think it's a security issue. J?rn -- Simplicity is prerequisite for reliability. -- Edsger W. Dijkstra - 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/