From owner-freebsd-bugs Mon Sep 8 19:10:08 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA24747 for bugs-outgoing; Mon, 8 Sep 1997 19:10:08 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA24738; Mon, 8 Sep 1997 19:10:03 -0700 (PDT) Resent-Date: Mon, 8 Sep 1997 19:10:03 -0700 (PDT) Resent-Message-Id: <199709090210.TAA24738@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, serge@jbj.org Received: from serge.jbj.org (serge.JBJ.ORG [198.178.231.60]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA24574 for ; Mon, 8 Sep 1997 19:08:41 -0700 (PDT) Received: (from serge@localhost) by serge.jbj.org (8.8.6/8.6.12) id WAA04715; Mon, 8 Sep 1997 22:08:34 -0400 (EDT) Message-Id: <199709090208.WAA04715@serge.jbj.org> Date: Mon, 8 Sep 1997 22:08:34 -0400 (EDT) From: Serge Pashenkov Reply-To: serge@jbj.org To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/4500: mount_nfs always uses priviledged port Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 4500 >Category: bin >Synopsis: mount_nfs always uses priviledged port >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Sep 8 19:10:01 PDT 1997 >Last-Modified: >Originator: Serge Pashenkov >Organization: >Release: FreeBSD 2.2-STABLE i386 >Environment: 2.2 stable circa Sep 8 >Description: Man page for mount_nfs says -P option fprces prov port to be used, for probably some security reasons, making me believe that no -P options means no priv port, but in fact in always takes priv port anyeyas. It would not be a problem (or rather doc problem), but together with kern/4327 it makes using Solaris 2.5 server impossible. >How-To-Repeat: Just mount any NFS file system on FreeBSD 2.2 stable as client and look at netstat to confirm that indeed the port on the client side is always under 1024 regardless of -P option. >Fix: Following just changes default: RCS file: /spare/ncvs/src/sbin/mount_nfs/mount_nfs.c,v retrieving revision 1.14.2.2 diff -c -r1.14.2.2 mount_nfs.c *** mount_nfs.c 1997/05/14 12:06:34 1.14.2.2 --- mount_nfs.c 1997/08/17 21:51:54 *************** *** 149,155 **** 0, (u_char *)0, 0, ! NFSMNT_RESVPORT, NFS_WSIZE, NFS_RSIZE, NFS_READDIRSIZE, --- 149,155 ---- 0, (u_char *)0, 0, ! 0, NFS_WSIZE, NFS_RSIZE, NFS_READDIRSIZE, >Audit-Trail: >Unformatted: