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