Re: SECURITY HOLE in namei.c ??

Remy Card (card@excalibur.ibp.fr)
Mon, 2 Sep 1996 02:54:05 +0200 (MET DST)


Harald Hoyer wrote:
> UNLINK(2) Linux Programmer's Manual UNLINK(2)
>
> [...]
>
> EISDIR pathname refers to a directory.

So, the manual page is wrong. Linux returns the EPERM error in
this case. And this conforms to Posix.1.

[ In my copy of Posix.1-1988, section 5.5.1.4 contains:
[EPERM] The file named by path is a directory and either the calling
process does not have appropriate privileges, or the
implementation prohibits using unlink on directories.]

Remy