]> git.decadent.org.uk Git - nfs-utils.git/log
nfs-utils.git
14 years agoImported Debian patch 1.0.10-4 debian/1%1.0.10-4
Steinar H. Gunderson [Tue, 7 Nov 2006 01:57:21 +0000 (02:57 +0100)]
Imported Debian patch 1.0.10-4

14 years agoImported Debian patch 1.0.10-3 debian/1%1.0.10-3
Steinar H. Gunderson [Wed, 25 Oct 2006 09:50:52 +0000 (11:50 +0200)]
Imported Debian patch 1.0.10-3

14 years agoImported Debian patch 1.0.10-2 debian/1%1.0.10-2
Steinar H. Gunderson [Wed, 11 Oct 2006 13:15:49 +0000 (15:15 +0200)]
Imported Debian patch 1.0.10-2

14 years agoImported Debian patch 1.0.10-1 debian/1%1.0.10-1
Steinar H. Gunderson [Tue, 5 Sep 2006 22:30:32 +0000 (00:30 +0200)]
Imported Debian patch 1.0.10-1

14 years agoMerge branch 'upstream'
Ben Hutchings [Wed, 14 Jul 2010 01:38:03 +0000 (02:38 +0100)]
Merge branch 'upstream'

Conflicts:
configure

14 years agoImported Upstream version 1.0.10 upstream/1.0.10
Ben Hutchings [Wed, 14 Jul 2010 01:37:47 +0000 (02:37 +0100)]
Imported Upstream version 1.0.10

14 years agoImported Debian patch 1.0.9-12 debian/1%1.0.9-12
Steinar H. Gunderson [Tue, 5 Sep 2006 11:59:29 +0000 (13:59 +0200)]
Imported Debian patch 1.0.9-12

14 years agoImported Debian patch 1.0.9-11 debian/1%1.0.9-11
Steinar H. Gunderson [Wed, 30 Aug 2006 23:53:45 +0000 (01:53 +0200)]
Imported Debian patch 1.0.9-11

14 years agoImported Debian patch 1.0.9-10 debian/1%1.0.9-10
Steinar H. Gunderson [Sat, 26 Aug 2006 01:29:09 +0000 (03:29 +0200)]
Imported Debian patch 1.0.9-10

14 years agoImported Debian patch 1.0.9-9 debian/1%1.0.9-9
Anibal Monsalve Salazar [Fri, 25 Aug 2006 01:45:07 +0000 (11:45 +1000)]
Imported Debian patch 1.0.9-9

14 years agoImported Debian patch 1.0.9-8 debian/1%1.0.9-8
Steinar H. Gunderson [Thu, 17 Aug 2006 15:24:11 +0000 (17:24 +0200)]
Imported Debian patch 1.0.9-8

14 years agoImported Debian patch 1.0.9-7 debian/1%1.0.9-7
Steinar H. Gunderson [Sat, 12 Aug 2006 17:55:35 +0000 (19:55 +0200)]
Imported Debian patch 1.0.9-7

14 years agoImported Debian patch 1.0.9-6 debian/1%1.0.9-6
Steinar H. Gunderson [Mon, 7 Aug 2006 19:27:37 +0000 (21:27 +0200)]
Imported Debian patch 1.0.9-6

14 years agoImported Debian patch 1.0.9-5 debian/1%1.0.9-5
Steinar H. Gunderson [Wed, 19 Jul 2006 12:06:33 +0000 (14:06 +0200)]
Imported Debian patch 1.0.9-5

14 years agoImported Debian patch 1.0.9-4 debian/1%1.0.9-4
Steinar H. Gunderson [Sat, 15 Jul 2006 23:59:13 +0000 (01:59 +0200)]
Imported Debian patch 1.0.9-4

14 years agoImported Debian patch 1.0.9-3 debian/1%1.0.9-3
Steinar H. Gunderson [Thu, 13 Jul 2006 19:39:08 +0000 (21:39 +0200)]
Imported Debian patch 1.0.9-3

14 years agoImported Debian patch 1.0.9-2 debian/1%1.0.9-2
Steinar H. Gunderson [Sat, 8 Jul 2006 22:16:54 +0000 (00:16 +0200)]
Imported Debian patch 1.0.9-2

14 years agoImported Debian patch 1.0.9-1 debian/1%1.0.9-1
Anibal Monsalve Salazar [Sat, 8 Jul 2006 04:26:40 +0000 (14:26 +1000)]
Imported Debian patch 1.0.9-1

14 years agoMerge branch 'upstream'
Ben Hutchings [Wed, 14 Jul 2010 01:35:24 +0000 (02:35 +0100)]
Merge branch 'upstream'

Conflicts:
Makefile.in
configure
linux-nfs/Makefile.in
support/Makefile.in
support/export/Makefile.in
support/include/Makefile.in
support/include/config.h.in
support/include/nfs/Makefile.in
support/include/rpcsvc/Makefile.in
support/include/sys/Makefile.in
support/include/sys/fs/Makefile.in
support/misc/Makefile.in
support/nfs/Makefile.in
support/nfs/clients.c
tools/Makefile.in
tools/getiversion/Makefile.in
tools/getkversion/Makefile.in
tools/locktest/Makefile.in
tools/nlmtest/Makefile.in
tools/rpcdebug/Makefile.in
tools/rpcgen/Makefile.in
utils/Makefile.in
utils/exportfs/Makefile.in
utils/gssd/Makefile.am
utils/gssd/Makefile.in
utils/gssd/svcgssd_proc.c
utils/idmapd/Makefile.in
utils/lockd/Makefile.in
utils/mount/Makefile.in
utils/mountd/Makefile.in
utils/nfsd/Makefile.in
utils/nfsstat/Makefile.in
utils/nhfsstone/Makefile.in
utils/rquotad/Makefile.in
utils/showmount/Makefile.in
utils/statd/Makefile.in

14 years agoImported Upstream version 1.0.9 upstream/1.0.9
Ben Hutchings [Wed, 14 Jul 2010 01:33:27 +0000 (02:33 +0100)]
Imported Upstream version 1.0.9

14 years agoImported Debian patch 1.0.8+1.0.9pre1-4 debian/1%1.0.8+1.0.9pre1-4
Steinar H. Gunderson [Sat, 8 Jul 2006 14:43:38 +0000 (16:43 +0200)]
Imported Debian patch 1.0.8+1.0.9pre1-4

14 years agoImported Debian patch 1.0.8+1.0.9pre1-3 debian/1%1.0.8+1.0.9pre1-3
Steinar H. Gunderson [Fri, 7 Jul 2006 19:12:06 +0000 (21:12 +0200)]
Imported Debian patch 1.0.8+1.0.9pre1-3

14 years agoImported Debian patch 1.0.8+1.0.9pre1-2 debian/1%1.0.8+1.0.9pre1-2
Steinar H. Gunderson [Thu, 6 Jul 2006 17:37:58 +0000 (19:37 +0200)]
Imported Debian patch 1.0.8+1.0.9pre1-2

14 years agoImported Debian patch 1.0.8+1.0.9pre1-1 debian/1%1.0.8+1.0.9pre1-1
Steinar H. Gunderson [Tue, 4 Jul 2006 16:55:51 +0000 (18:55 +0200)]
Imported Debian patch 1.0.8+1.0.9pre1-1

14 years agoMerge branch 'upstream'
Ben Hutchings [Wed, 14 Jul 2010 01:32:49 +0000 (02:32 +0100)]
Merge branch 'upstream'

Conflicts:
configure
debian/changelog
debian/control
debian/etc.exports
debian/nfs-common.default
debian/nfs-common.dirs
debian/nfs-common.init
debian/nfs-common.install
debian/nfs-common.postinst
debian/nfs-common.postrm
debian/nfs-common.prerm
debian/nfs-kernel-server.default
debian/nfs-kernel-server.dirs
debian/nfs-kernel-server.init
debian/nfs-kernel-server.postinst
debian/nfs-kernel-server.postrm
debian/nfs-kernel-server.prerm
debian/rules
support/nfs/exports.c
utils/mountd/mountd.c
utils/mountd/mountd.man

14 years agoImported Upstream version 1.0.8+1.0.9pre1 upstream/1.0.8+1.0.9pre1
Ben Hutchings [Wed, 14 Jul 2010 01:30:42 +0000 (02:30 +0100)]
Imported Upstream version 1.0.8+1.0.9pre1

14 years agoImported Debian patch 1.0.8-10 debian/1%1.0.8-10
Anibal Monsalve Salazar [Sat, 1 Jul 2006 23:53:16 +0000 (09:53 +1000)]
Imported Debian patch 1.0.8-10

14 years agoImported Debian patch 1.0.8-9 debian/1%1.0.8-9
Anibal Monsalve Salazar [Sat, 1 Jul 2006 12:30:11 +0000 (22:30 +1000)]
Imported Debian patch 1.0.8-9

14 years agoImported Debian patch 1.0.8-8 debian/1%1.0.8-8
Steinar H. Gunderson [Wed, 14 Jun 2006 08:47:23 +0000 (10:47 +0200)]
Imported Debian patch 1.0.8-8

14 years agoImported Debian patch 1.0.8-7 debian/1%1.0.8-7
Steinar H. Gunderson [Thu, 8 Jun 2006 15:31:28 +0000 (17:31 +0200)]
Imported Debian patch 1.0.8-7

14 years agoImported Debian patch 1.0.8-6 debian/1%1.0.8-6
Steinar H. Gunderson [Wed, 7 Jun 2006 21:30:15 +0000 (23:30 +0200)]
Imported Debian patch 1.0.8-6

14 years agoImported Debian patch 1.0.8-5 debian/1%1.0.8-5
Steinar H. Gunderson [Tue, 6 Jun 2006 23:13:28 +0000 (01:13 +0200)]
Imported Debian patch 1.0.8-5

14 years agoImported Debian patch 1.0.8-4 debian/1%1.0.8-4
Steinar H. Gunderson [Tue, 6 Jun 2006 09:59:28 +0000 (11:59 +0200)]
Imported Debian patch 1.0.8-4

14 years agoImported Debian patch 1.0.8-3 debian/1%1.0.8-3
Steinar H. Gunderson [Sat, 3 Jun 2006 09:00:14 +0000 (11:00 +0200)]
Imported Debian patch 1.0.8-3

14 years agoImported Debian patch 1.0.8-2 debian/1%1.0.8-2
Anibal Monsalve Salazar [Fri, 2 Jun 2006 09:08:11 +0000 (19:08 +1000)]
Imported Debian patch 1.0.8-2

14 years agoImported Debian patch 1.0.8-1 debian/1%1.0.8-1
Steinar H. Gunderson [Wed, 31 May 2006 23:59:39 +0000 (01:59 +0200)]
Imported Debian patch 1.0.8-1

14 years agoMerge branch 'upstream'
Ben Hutchings [Wed, 14 Jul 2010 01:29:37 +0000 (02:29 +0100)]
Merge branch 'upstream'

Conflicts:
config.guess
config.sub
configure
debian/changelog
debian/control
debian/etc.exports
debian/nfs-common.default
debian/nfs-common.dirs
debian/nfs-common.init
debian/nfs-common.install
debian/nfs-common.postinst
debian/nfs-common.postrm
debian/nfs-common.prerm
debian/nfs-kernel-server.default
debian/nfs-kernel-server.dirs
debian/nfs-kernel-server.init
debian/nfs-kernel-server.postinst
debian/nfs-kernel-server.postrm
debian/nfs-kernel-server.prerm
debian/rules
utils/gssd/Makefile
utils/svcgssd/Makefile

14 years agoImported Upstream version 1.0.8 upstream/1.0.8
Ben Hutchings [Wed, 14 Jul 2010 01:28:28 +0000 (02:28 +0100)]
Imported Upstream version 1.0.8

14 years agoImported Debian patch 1.0.7-19 debian/1%1.0.7-19
Steinar H. Gunderson [Sat, 27 May 2006 10:54:50 +0000 (12:54 +0200)]
Imported Debian patch 1.0.7-19

14 years agoImported Debian patch 1.0.7-18 debian/1%1.0.7-18
Steinar H. Gunderson [Sun, 21 May 2006 23:44:33 +0000 (01:44 +0200)]
Imported Debian patch 1.0.7-18

14 years agoImported Debian patch 1.0.7-17 debian/1%1.0.7-17
Steinar H. Gunderson [Sun, 14 May 2006 16:22:19 +0000 (18:22 +0200)]
Imported Debian patch 1.0.7-17

14 years agoImported Debian patch 1.0.7-16 debian/1%1.0.7-16
Steinar H. Gunderson [Sat, 13 May 2006 14:06:08 +0000 (16:06 +0200)]
Imported Debian patch 1.0.7-16

14 years agoImported Debian patch 1.0.7-15 debian/1%1.0.7-15
Steinar H. Gunderson [Thu, 11 May 2006 10:42:13 +0000 (12:42 +0200)]
Imported Debian patch 1.0.7-15

14 years agoImported Debian patch 1.0.7-14 debian/1%1.0.7-14
Steinar H. Gunderson [Wed, 10 May 2006 20:00:59 +0000 (22:00 +0200)]
Imported Debian patch 1.0.7-14

14 years agoImported Debian patch 1.0.7-13 debian/1%1.0.7-13
Steinar H. Gunderson [Fri, 5 May 2006 23:50:10 +0000 (01:50 +0200)]
Imported Debian patch 1.0.7-13

14 years agoImported Debian patch 1.0.7-12 debian/1%1.0.7-12
Steinar H. Gunderson [Wed, 3 May 2006 19:27:18 +0000 (21:27 +0200)]
Imported Debian patch 1.0.7-12

14 years agoImported Debian patch 1.0.7-11 debian/1%1.0.7-11
Steinar H. Gunderson [Wed, 3 May 2006 17:51:17 +0000 (19:51 +0200)]
Imported Debian patch 1.0.7-11

14 years agoImported Debian patch 1.0.7-10 debian/1%1.0.7-10
Steinar H. Gunderson [Wed, 26 Apr 2006 22:32:27 +0000 (00:32 +0200)]
Imported Debian patch 1.0.7-10

14 years agoImported Debian patch 1.0.7-9 debian/1%1.0.7-9
Steinar H. Gunderson [Thu, 6 Apr 2006 11:31:48 +0000 (13:31 +0200)]
Imported Debian patch 1.0.7-9

14 years agoImported Debian patch 1.0.7-8 debian/1%1.0.7-8
Steinar H. Gunderson [Wed, 5 Apr 2006 20:54:09 +0000 (22:54 +0200)]
Imported Debian patch 1.0.7-8

14 years agoImported Debian patch 1.0.7-7 debian/1%1.0.7-7
Steinar H. Gunderson [Wed, 5 Apr 2006 16:15:20 +0000 (18:15 +0200)]
Imported Debian patch 1.0.7-7

14 years agoImported Debian patch 1.0.7-6 debian/1%1.0.7-6
Steinar H. Gunderson [Sat, 1 Apr 2006 00:46:53 +0000 (02:46 +0200)]
Imported Debian patch 1.0.7-6

14 years agoImported Debian patch 1.0.7-5 debian/1%1.0.7-5
Steinar H. Gunderson [Tue, 28 Mar 2006 00:57:23 +0000 (02:57 +0200)]
Imported Debian patch 1.0.7-5

14 years agoImported Debian patch 1.0.7-4 debian/1%1.0.7-4
Anibal Monsalve Salazar [Mon, 27 Mar 2006 02:22:51 +0000 (13:22 +1100)]
Imported Debian patch 1.0.7-4

14 years agoImported Debian patch 1.0.7-3 debian/1%1.0.7-3
Anibal Monsalve Salazar [Fri, 8 Apr 2005 01:25:17 +0000 (11:25 +1000)]
Imported Debian patch 1.0.7-3

14 years agoMerge commit 'debian/1.0.7-2'
Ben Hutchings [Tue, 13 Jul 2010 03:03:30 +0000 (04:03 +0100)]
Merge commit 'debian/1.0.7-2'

Conflicts:
debian/changelog

14 years agoImported Debian patch 1.0.6-3.1 debian/1%1.0.6-3.1
Joey Hess [Wed, 5 Jan 2005 12:39:41 +0000 (07:39 -0500)]
Imported Debian patch 1.0.6-3.1

14 years agoMerge commit 'debian/1.0.6-3'
Ben Hutchings [Tue, 13 Jul 2010 02:51:44 +0000 (03:51 +0100)]
Merge commit 'debian/1.0.6-3'

14 years agoImported Upstream version 1.0.6
Ben Hutchings [Tue, 13 Jul 2010 02:51:20 +0000 (03:51 +0100)]
Imported Upstream version 1.0.6

18 years agoSet version to 1.0.10 nfs-utils-1-0-10
Neil Brown [Mon, 7 Aug 2006 06:40:50 +0000 (16:40 +1000)]
Set version to 1.0.10

Note: 1.0.10 should be used in preference to
 1.0.9 especially with kernels 2.6.18 and later
 otherwise 'rpc.nfsd N' won't work to change the
 number of threads after nfsd has been started.

18 years ago"rpc.nfsd XX" should not fail if ports are already open.
Neil Brown [Mon, 7 Aug 2006 06:37:13 +0000 (16:37 +1000)]
"rpc.nfsd XX" should not fail if ports are already open.

    support/nfs/nfssvc.c:  if any ports are already open,
   don't try to open any more.
 This means that once nfsd is running
     rpc.nfsd  X
 will just change the number of threads, not the
 ports in use.

18 years agoRemove warning if neither 'sync' or 'async' present.
Neil Brown [Mon, 7 Aug 2006 04:19:32 +0000 (14:19 +1000)]
Remove warning if neither 'sync' or 'async' present.

Add warning of neither 'subtree_check' or 'no_subtree_check' present.

18 years agoFix compilation problem - write_oid not defined
Kevin Coffman [Wed, 12 Jul 2006 03:09:59 +0000 (23:09 -0400)]
Fix compilation problem - write_oid not defined

18 years agoFix off-by-one error in rpcgen
Richard Guenther [Thu, 20 Jul 2006 01:41:08 +0000 (11:41 +1000)]
Fix off-by-one error in rpcgen

We obviously need to allocate space for the terminating nul too.

18 years agoUpdate changelog and set version to 1.0.9 nfs-utils-1-0-9
Neil Brown [Sat, 8 Jul 2006 00:04:32 +0000 (10:04 +1000)]
Update changelog and set version to 1.0.9

18 years agoUse uid/gid of -1 to indicate the export's anonuid/anongid should be used
Kevin Coffman [Sat, 8 Jul 2006 00:01:40 +0000 (10:01 +1000)]
Use uid/gid of -1 to indicate the export's anonuid/anongid should be used

Kernel routine nfsd_setuser() in fs/nfsd/auth.c checks for the
value -1 and defaults the credential's fsuid/fsgid to the
correct anonuid/anongid values for the given export.  We should
be passing this value (-1) down when a name mapping cannot be found.
Thanks to J. Bruce Fields <bfields@fieldses.org> for the reference.

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Acked-by: J. Bruce Fields <bfields@fieldses.org>
18 years agoChange svcgssd_LDFLAGS to match gssd_LDFLAGS
Kevin Coffman [Fri, 7 Jul 2006 23:58:03 +0000 (09:58 +1000)]
Change svcgssd_LDFLAGS to match gssd_LDFLAGS

18 years agoDisable building/installing mount.nfs by default.
Neil Brown [Fri, 7 Jul 2006 23:41:58 +0000 (09:41 +1000)]
Disable building/installing mount.nfs by default.

mount.nfs does not yet support 'user' option and some others.
To make it support this we need to make it setuid-root, and
some security isses need to be resolved before that can be done
safely.

18 years agoCall nfssvc_versbits before nfssvc_setfds
Steve Dickson [Fri, 7 Jul 2006 23:35:02 +0000 (09:35 +1000)]
Call nfssvc_versbits before nfssvc_setfds

nfssvc_versbits() has to be called before nfssvc_setfds()
for the version processing to work correctly

18 years agoOnly use -rpath for Kerberos libs when actually needed.
Neil Brown [Thu, 6 Jul 2006 03:05:11 +0000 (13:05 +1000)]
Only use -rpath for Kerberos libs when actually needed.

Avoid usage of -rpath is generally safer, and is required by Debian policy.

18 years agoUse 65534 instead of -2 in svcgssd_proc.c
Neil Brown [Thu, 6 Jul 2006 02:28:33 +0000 (12:28 +1000)]
Use 65534 instead of -2 in svcgssd_proc.c

as this is more consistant across achitectures.

18 years agoThis patch adds code to nfsstat to read /proc/net/rpc/nfsd for nfsv4 server statistic...
Shankar Anand [Tue, 4 Jul 2006 14:50:56 +0000 (08:50 -0600)]
This patch adds code to nfsstat to read /proc/net/rpc/nfsd for nfsv4 server statistics and print them.

Submitted by: Shankar Anand <shanand@novell.com>

18 years agoFix typos in various man pages.
Steinar H. Gunderson [Wed, 5 Jul 2006 05:55:45 +0000 (15:55 +1000)]
Fix typos in various man pages.

18 years agoUse 65534 for anon uid/gid rather than -2
Steinar H. Gunderson [Wed, 5 Jul 2006 05:51:30 +0000 (15:51 +1000)]
Use 65534 for anon uid/gid rather than -2

This is more consistant across platforms.

18 years agoUpdate rpcdebug to know about new 2.6 debug flags. Added
Greg Banks [Wed, 5 Jul 2006 03:37:21 +0000 (13:37 +1000)]
Update rpcdebug to know about new 2.6 debug flags.  Added
a manpage and installed rpcdebug (in sbindir).

18 years agoIgnore new generated files.
Greg Banks [Wed, 5 Jul 2006 02:22:45 +0000 (12:22 +1000)]
Ignore new generated files.

18 years agoAdd rquota.h to BUILT_SOURCES so rquotad builds on the first try.
Greg Banks [Wed, 5 Jul 2006 02:20:20 +0000 (12:20 +1000)]
Add rquota.h to BUILT_SOURCES so rquotad builds on the first try.

18 years agoGenerate rquota_xdr.c and rquota.h from rquota.x
Neil Brown [Wed, 5 Jul 2006 01:06:09 +0000 (11:06 +1000)]
Generate rquota_xdr.c and rquota.h from rquota.x

rquota_svc.c is still by-hand as it contains alot of extras.
These should really be moved to rquota_server.c

18 years agoRemove some files that old, unused, unneeded.
Neil Brown [Wed, 5 Jul 2006 00:41:03 +0000 (10:41 +1000)]
Remove some files that old, unused, unneeded.

deleted:  support/export/keys.c
deleted:  support/include/rpcdispatch.h
deleted:  support/include/rpcsec.h
deleted:  support/include/version.h
deleted:  support/include/ypupdate.h
deleted:  support/nfs/clients.c
deleted:  support/nfs/keytab.c
deleted:  support/nfs/ypupdate_xdr.c
deleted:  support/rpc/include/Makefile.am
deleted:  tools/rpcdebug/neat_idea.c
deleted:  utils/mountd/mount_xdr.c
deleted:  utils/rquotad/pathnames.h

18 years agoAvoid error creating an existing symlink
Neil Brown [Wed, 5 Jul 2006 00:30:51 +0000 (10:30 +1000)]
Avoid error creating an existing symlink

Just remove the link first.

18 years agoDon't depend on Kerberos headers when checking librpcsecgss in configure
kwc@citi.umich.edu [Mon, 3 Jul 2006 22:33:54 +0000 (18:33 -0400)]
Don't depend on Kerberos headers when checking librpcsecgss in configure

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Older versions of MIT Kerberos are missing an OID definition, causing
the configure checks for librpcsecgss to fail.  We shouldn't be depending
on their libraries during the configure.

18 years agoEliminate warnings from code generated by rpcgen
Greg Banks [Tue, 4 Jul 2006 08:33:56 +0000 (18:33 +1000)]
Eliminate warnings from code generated by rpcgen

 - unused variable 'buf'
    - emit a declaration for `buf' on demand.
 - unused variable 'i'
    - declare i immediately before use
 - unused value from IXDR_PUT_
    - cast to (void)
 - type-punned pointer reference
    - cast to (void*) first :-(

18 years agoHandle mapping failure from get_ids.
kwc@citi.umich.edu [Mon, 3 Jul 2006 22:34:43 +0000 (18:34 -0400)]
Handle mapping failure from get_ids.

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Temporary patch to do default mapping if we get an error while trying to
map a gss principal to the appropriate uid/gid.  This currently returns
hardcoded values.  This may be correct, or we may need to try and figure
out the correct values to match the anonuid/anongid for the export.

18 years agoProperly report errors in readline() function
kwc@citi.umich.edu [Mon, 3 Jul 2006 22:34:38 +0000 (18:34 -0400)]
Properly report errors in readline() function

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Change message priorities for errors and debug messages.

18 years agoChange default buffer size increment for readline()
kwc@citi.umich.edu [Mon, 3 Jul 2006 22:34:33 +0000 (18:34 -0400)]
Change default buffer size increment for readline()

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
The readline routine expects much smaller messages than we are passing.
Change the default initial allocation and increment value from 128
to 2048.  This saves many calls to realloc().

18 years agoClean up the printerr() logging function.
kwc@citi.umich.edu [Mon, 3 Jul 2006 22:34:27 +0000 (18:34 -0400)]
Clean up the printerr() logging function.

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Update the printerr() function to:

1) Determine whether we'll print the message before going to all the
   work of formatting it.
2) Don't just toss away messages that are too long for the buffer.
   Print what we can and give an indication of the truncation with
   "..." at the end.
3) Use a single buffer rather than two.
4) Messages either go to syslog (with level ERR) or stderr.  Don't
   send some messages to syslog level DEBUG.

18 years agoUse setfsuid() rather than seteuid() while creating contexts
kwc@citi.umich.edu [Mon, 3 Jul 2006 22:34:21 +0000 (18:34 -0400)]
Use setfsuid() rather than seteuid() while creating contexts

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
As suggested by Olaf Kirch <okir@suse.de>, use setfsuid() rather than
seteuid() when creating a gss context.  This prevents users from using
credentials that do not belong to them, while also preventing them from
doing things like killing, renicing, or changing the priority of the
gssd process while it is processing the context creation.

18 years agoLimit acquire_cred call to to Kerberos only
kwc@citi.umich.edu [Mon, 3 Jul 2006 22:34:16 +0000 (18:34 -0400)]
Limit acquire_cred call to to Kerberos only

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Specify that the acquire_cred call should only be concerned with returning
Kerberos credentials since this is Kerberos-only functionality.

18 years agoCheck that the gssapi library is usable early on.
kwc@citi.umich.edu [Mon, 3 Jul 2006 22:34:10 +0000 (18:34 -0400)]
Check that the gssapi library is usable early on.

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Do a call to determine mechanisms supported by the gssapi library early.
This allows us to discover early in case the gssapi library is somehow
misconfigured.  We can bail out early and give a meaningful message
rather than getting errors on each attempt at a context negotiation.

18 years agoFix problems with 64-bit big-endian machines
kwc@citi.umich.edu [Mon, 3 Jul 2006 22:34:05 +0000 (18:34 -0400)]
Fix problems with 64-bit big-endian machines

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Correct the definition of mech_used in the gss context to use gss_OID_desc.
This fixes problems on 64-bit machines when referencing the OID.

Also updates write_buffer function to use u_int rather than size_t when
doing calculations.

18 years agoDefine CFLAGS for gss_clnt_send_err compile
kwc@citi.umich.edu [Mon, 3 Jul 2006 22:33:59 +0000 (18:33 -0400)]
Define CFLAGS for gss_clnt_send_err compile

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Add CFLAGS to make sure we find and use the correct gssapi.h when
building gss_clnt_send_err

18 years agoUse socklen_t some more to avoid warnings.
Greg Banks [Mon, 3 Jul 2006 05:59:54 +0000 (15:59 +1000)]
Use socklen_t some more to avoid warnings.

18 years agoFix warning about pointer signedness differing.
Greg Banks [Mon, 3 Jul 2006 05:39:41 +0000 (15:39 +1000)]
Fix warning about pointer signedness differing.

18 years agoInclude the right header to get xmalloc() declaration.
Greg Banks [Mon, 3 Jul 2006 05:17:34 +0000 (15:17 +1000)]
Include the right header to get xmalloc() declaration.

18 years agoMerge branch 'master' of git://linux-nfs.org/nfs-utils
Greg Banks [Mon, 3 Jul 2006 04:21:48 +0000 (14:21 +1000)]
Merge branch 'master' of git://linux-nfs.org/nfs-utils

18 years agonfs-utils 1.0.9-pre1 nfs-utils-1-0-9-pre1
Neil Brown [Mon, 3 Jul 2006 00:02:03 +0000 (10:02 +1000)]
nfs-utils 1.0.9-pre1

Update change log and change version number

18 years agoAllow rpc.nfsd to suppress tcp or udp, and listen on a specific address.
Steve Dickson [Sun, 2 Jul 2006 23:52:00 +0000 (09:52 +1000)]
Allow rpc.nfsd to suppress tcp or udp, and listen on a specific address.

 -T       - will suppressing listening for TCP connection.
 -U       - will suppress UDP
 -H host  - will only listen on that local address
 -p port  - will listen on that port.

This requires kernel patches which will hopefully be in 2.6.19 and possibly some
earlier test and vendor kernels.

18 years agoComment out unused variable.
Greg Banks [Tue, 27 Jun 2006 11:30:18 +0000 (21:30 +1000)]
Comment out unused variable.

18 years agoComment out the decades-old SCCS id strings from the original Sun
Greg Banks [Tue, 27 Jun 2006 11:22:59 +0000 (21:22 +1000)]
Comment out the decades-old SCCS id strings from the original Sun
distribution.  They cause compile warnings, there is no longer any
reason to try to build them into the binaries, and gcc seems to be
eliding some of them anyway.

18 years agoDetect if glibc provides socklen_t and use that instead
Greg Banks [Tue, 27 Jun 2006 10:55:07 +0000 (20:55 +1000)]
Detect if glibc provides socklen_t and use that instead
of int in those cases which generate compile warnings,
e.g. the last argument of recvfrom().