lkml.org 
[lkml]   [2004]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateWed, 6 Oct 2004 21:08:56 +0200
FromJörn Engel <>
SubjectRe: [PATCH] Console: fall back to /dev/null when no console is availlable
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/

\
 
 \ /
  Last update: 2005-03-22 14:06    [from the cache]
©2003-2010