Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Sep 1997 22:08:34 -0400 (EDT)
From:      Serge Pashenkov <serge@jbj.org>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/4500: mount_nfs always uses priviledged port
Message-ID:  <199709090208.WAA04715@serge.jbj.org>
Resent-Message-ID: <199709090210.TAA24738@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709090208.WAA04715>