From 879a9b1b2bdd1160571896023d06291a611c4315 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Sat, 18 Apr 2009 09:44:56 -0400 Subject: [PATCH] umount.nfs: Use a privileged port when sending UMNT requests Turns out we do actually need to use a privileged port for UMNT. The Linux rpc.mountd complains if an ephemeral source port is used: Apr 17 15:52:19 ingres mountd[2061]: refused unmount request from 192.168.0.59 for /export (/export): illegal port 60932 Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson --- utils/mount/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/mount/network.c b/utils/mount/network.c index bcd0c0f..234e7f3 100644 --- a/utils/mount/network.c +++ b/utils/mount/network.c @@ -869,7 +869,7 @@ int nfs_advise_umount(const struct sockaddr *sap, const socklen_t salen, memcpy(saddr, sap, salen); nfs_set_port(saddr, mnt_pmap.pm_port); - client = nfs_get_rpcclient(saddr, salen, mnt_pmap.pm_prot, + client = nfs_get_priv_rpcclient(saddr, salen, mnt_pmap.pm_prot, mnt_pmap.pm_prog, mnt_pmap.pm_vers, &timeout); if (client == NULL) -- 2.39.5