Messages in this thread |  | | Date | Wed, 6 Dec 2000 09:29:36 +0000 (GMT) | From | Tigran Aivazian <> | Subject | Re: [PATCH] Re: test12-pre6 |
| |
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/
|  |