Re: tty's use of file_list_lock and file_move

From: Pekka Enberg
Date: Wed Jul 12 2006 - 02:34:44 EST


Hi,

On 7/11/06, Theodore Tso <tytso@xxxxxxx> wrote:
When I wrote the do_SAK code about 12-13 years ago, tty->tty_files
didn't exist. It should be safe to do this, but I'll echo Alan's
comment. We really ought to implement revoke(2) at the VFS layer, and
then utilize to implement SAK and vhangup() functionality.

How is this supposed to work? What's stopping a process from
re-opening the file after revoke(2) has been called? Or am I missing
something here?

Pekka
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/