[lkml]   [2006]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC/PATCH] revoke/frevoke system calls V2
On Mon, 7 Aug 2006, Edgar Toernig wrote:

> Your implementation is much cruder - it simply takes the fd
> away from the app; any future use gives EBADF. As a bonus,
> it works for regular files and even goes as far as destroying
> all mappings of the file from all processes (even root processes).
> IMVHO this is a disaster from a security and reliability point
> of view.

I can see the value in these system calls, but I agree that the
implementation is crude. "EBADF" is not something that applications are
taught to expect. Someone correct me if I'm wrong, but I can think of no
situation under which a file descriptor currently gets yanked out from
under your feet -- you should always have to formally abandon it with

This kind of thing only looks proper if it leaves the file descriptor in
place and just returns errors / EOF when you attempt to access it.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2006-08-08 00:27    [W:0.108 / U:2.964 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site