Re: Suggested changes to the VFS

Linus Torvalds (torvalds@transmeta.com)
Tue, 24 Mar 1998 10:25:41 -0800 (PST)


On Tue, 24 Mar 1998, Itai Nahshon wrote:
>
> The release function should IMHO also be an inode operation
> and not a file operation.

Both open and release need the "struct file" for flags handling etc.

> Thomas Sailer has shown that it is possible to keep a file
> memory mapped after it has been closed. This causes some
> security problems mainly with the sound driver.

This is no longer true as of 2.1.88 or so..

> There is no safe and easy way to know when is the
> REALLY-LAST munmap on an inode from a device-driver's side.

There is now, in later kernels.

Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu