Re: [Patch] TIOCCONS security

From: Valdis . Kletnieks
Date: Thu Aug 26 2004 - 16:34:19 EST


On Wed, 25 Aug 2004 14:03:41 PDT, Kees Cook said:

> Confirmed. If you run the following code as a regular user, you can see
> messages. (BTW: don't do a "tail -f /dev/console". For reasons I don't
> understand, it writes endless CRs to which ever tty you happen to have
> open):

It's probably a bananana problem. The tail -f writes something, which ends in
a \n. Then the tail -f reads the last thing written, which was a \n, and
writes it out, and.....

Attachment: pgp00000.pgp
Description: PGP signature