rpms/nfs-utils/devel nfs-utils.spec,1.131,1.132

Steve Dickson (steved) fedora-extras-commits at redhat.com
Thu May 10 18:57:04 UTC 2007


Author: steved

Update of /cvs/pkgs/rpms/nfs-utils/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3859

Modified Files:
	nfs-utils.spec 
Log Message:
- Make sure statd uses correct uid/gid by chowning
  the /var/lib/nfs/statd with the rpcuser id. (bz 235216)



Index: nfs-utils.spec
===================================================================
RCS file: /cvs/pkgs/rpms/nfs-utils/devel/nfs-utils.spec,v
retrieving revision 1.131
retrieving revision 1.132
diff -u -r1.131 -r1.132
--- nfs-utils.spec	10 May 2007 17:29:15 -0000	1.131
+++ nfs-utils.spec	10 May 2007 18:53:25 -0000	1.132
@@ -223,6 +223,14 @@
 /sbin/chkconfig --add rpcidmapd
 /sbin/chkconfig --add rpcgssd
 /sbin/chkconfig --add rpcsvcgssd
+# Make sure statd used the correct uid/gid.
+if [ -f /var/lock/subsys/nfslock ]; then
+	/etc/rc.d/init.d/nfslock stop > /dev/null
+	chown -R rpcuser:rpcuser /var/lib/nfs/statd
+	/etc/rc.d/init.d/nfslock start > /dev/null
+else
+	chown -R rpcuser:rpcuser /var/lib/nfs/statd
+fi
 
 %preun
 if [ "$1" = "0" ]; then
@@ -247,6 +255,7 @@
     /etc/rc.d/init.d/rpcidmapd condrestart > /dev/null
     /etc/rc.d/init.d/rpcgssd condrestart > /dev/null
     /etc/rc.d/init.d/nfs condrestart > /dev/null
+	/etc/rc.d/init.d/nfslock condrestart > /dev/null
 fi
 
 %triggerpostun -- nfs-server
@@ -303,6 +312,8 @@
 - Updated mountd and showmount reverse lookup flags (bz 220772)
 - Eliminate timeout on nfsd shutdowns (bz 222001)
 - Eliminate memory leak in mountd (bz 239536)
+- Make sure statd uses correct uid/gid by chowning
+  the /var/lib/nfs/statd with the rpcuser id. (bz 235216)
 
 * Tue Apr  3 2007 Steve Dickson <steved at redhat.com> 1.0.12-4
 - Replace portmap dependency with an rpcbind dependency (bz 228894)




More information about the fedora-extras-commits mailing list