Re: [RFC/PATCH] revoke/frevoke system calls V2

From: Pekka J Enberg
Date: Thu Jul 27 2006 - 23:38:54 EST


On Thu, 27 Jul 2006, Horst H. von Brand wrote:
> Doesn't that violate a POSIX guarantee that the lowest unused fd is
> returned? If the leakage lasts "long enough", this gives an opportunity of
> a nice DoS by using up fds...

The fd is not unused, its revoked. To clarify, the potential DoS is
inherit for revoke, but since only root or the file owner can revoke a
file, I don't see that as a big problem in practice. The caller is
expected to ensure that no one can reopen the file anyway.

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/