Date: Tue, 24 Dec 2002 16:26:23 +0100 (CET) From: Thomas Quinot <thomas@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/46515: NFSv2 client denies O_APPEND open on existing file Message-ID: <20021224152623.523E2A7@zuydcoote.int.act-europe.fr>
next in thread | raw e-mail | index | archive | help
>Number: 46515 >Category: kern >Synopsis: NFSv2 client denies O_APPEND open on existing file >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Dec 24 07:30:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Thomas Quinot >Release: FreeBSD 5.0-DP2 i386 >Organization: >Environment: System: FreeBSD zuydcoote 5.0-DP2 FreeBSD 5.0-DP2 #1: Sat Nov 16 13:38:33 GMT 2002 root@tomcat.bmah.org:/usr/obj/usr/src/sys/GENERIC i386 >Description: NFS server: Debian GNU/Linux, kernel is 2.2.19. NFS client: 5.0-DP2. >How-To-Repeat: Script started on Tue Dec 24 16:09:54 2002 (quinot@zuydcoote) ~ $ echo x >> foo --> this works and correctly creates the file (quinot@zuydcoote) ~ $ echo x >> foo zsh: permission denied: foo The only network traffic caused by the second command line is: 16:14:37.753138 10.10.0.161.427357544 > 10.10.0.140.2049: 124 getattr fh Unknown/1 16:14:37.753642 10.10.0.140.2049 > 10.10.0.161.427357544: reply ok 96 getattr DIR 40755 ids 529/0 sz 4096 16:14:37.753861 10.10.0.161.427357545 > 10.10.0.140.2049: 124 getattr fh Unknown/1 16:14:37.754307 10.10.0.140.2049 > 10.10.0.161.427357545: reply ok 96 getattr REG 100644 ids 529/101 sz 2 (no traffic if the file's attributes are still in cache, apparently). The 5.0 client seems to work fine with a FreeBSD 4.7-REL NFS server. The Linux server is offering NFSv2 only, the 4.7 server has v2 and v3, both of which work correctly. tcpdump excerpt with the 4.7 server: 16:19:44.485952 10.10.0.161.427357873 > 10.10.0.159.2049: 124 getattr fh 982,166744/2764801 16:19:44.486445 10.10.0.159.2049 > 10.10.0.161.427357873: reply ok 96 getattr DIR 40775 ids 1001/101 sz 8704 16:19:44.486618 10.10.0.161.427357874 > 10.10.0.159.2049: 124 getattr fh 982,166744/2765207 16:19:44.487013 10.10.0.159.2049 > 10.10.0.161.427357874: reply ok 96 getattr REG 100644 ids 529/101 sz 2 Complete capture files will be provided on request. >Fix: None so far. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021224152623.523E2A7>