Re: [PATCH] Re: test12-pre6

From: Tigran Aivazian (tigran@veritas.com)
Date: Wed Dec 06 2000 - 04:29:36 EST


On Wed, 6 Dec 2000, Alexander Viro wrote:
> They are not Linux-specific (check where they came from), so I would rather
> check 4.4BSD and SuSv2[1] be damned. I'll look it up tomorrow, right now I'm
> going down. Sorry.

4.4BSD (FreeBSD 4.2-release) returns EPERM for truncate on immutable (schg
or uchg), in which case current Linux truncate(2) is broken. So if we want
to return the same as FreeBSD then we either need to:

a) change
vfs_permission() (and make sure all other cases returning EPERM for
immutable is ok) or

b) we need to move that explicit check in
do_sys_truncate() above the call to permission().

Regards,
Tigran

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Dec 07 2000 - 21:00:15 EST