1 Author: Steinar H. Gunderson <sgunderson@bigfoot.com>
2 Date: Wed Sep 13 22:19:39 CEST 2006
4 Document sensitive gids
6 The exports(8) man page already mentions that some non-root users,
7 such as bin, might be just as sensitive as root, and that root_squash
8 thus might not be as effective as one could hope for. Update the
9 documentation to also mention that this could be the case for non-root
10 groups, such as staff.
12 Author: NeilBrown <neilb@cse.unsw.edu.au>
13 Date: Mon Aug 7 16:35:03 AEST 2006
16 Note: 1.0.10 should be used in preference to
17 1.0.9 especially with kernels 2.6.18 and later
18 otherwise 'rpc.nfsd N' won't work to change the
19 number of threads after nfsd has been started.
21 Author: NeilBrown <neilb@cse.unsw.edu.au>
22 Date: Mon Aug 7 16:35:03 AEST 2006
24 support/nfs/nfssvc.c: if any ports are already open,
25 don't try to open any more.
26 This means that once nfsd is running
28 will just change the number of threads, not the
31 Author: NeilBrown <neilb@cse.unsw.edu.au>
32 Date: Mon Aug 7 14:01:35 AEST 2006
34 Remove warning if neither 'sync' or 'async' present.
35 Add warning of neither 'subtree_check' or 'no_subtree_check' present.
37 commit 7194d7d6320736c14f40d31c3738d40f3119ead5
38 Author: Kevin Coffman <kwc@citi.umich.edu>
39 Date: Sat Jul 8 10:01:40 2006 +1000
41 Use uid/gid of -1 to indicate the export's anonuid/anongid should be used
43 Kernel routine nfsd_setuser() in fs/nfsd/auth.c checks for the
44 value -1 and defaults the credential's fsuid/fsgid to the
45 correct anonuid/anongid values for the given export. We should
46 be passing this value (-1) down when a name mapping cannot be found.
47 Thanks to J. Bruce Fields <bfields@fieldses.org> for the reference.
49 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
50 Acked-by: J. Bruce Fields <bfields@fieldses.org>
52 commit b0604c623f7a98c6061dff19988722d3ae848bd7
53 Author: Kevin Coffman <kwc@citi.umich.edu>
54 Date: Sat Jul 8 09:58:03 2006 +1000
56 Change svcgssd_LDFLAGS to match gssd_LDFLAGS
58 commit 99414bd3eecf93f23c378d3bb3d45bc98f364abc
59 Author: Neil Brown <neilb@suse.de>
60 Date: Sat Jul 8 09:41:58 2006 +1000
62 Disable building/installing mount.nfs by default.
64 mount.nfs does not yet support 'user' option and some others.
65 To make it support this we need to make it setuid-root, and
66 some security isses need to be resolved before that can be done
69 commit b0c3cbfee702c019dab0a22557bbf38e24dfcee1
70 Author: Steve Dickson <steved@redhat.com>
71 Date: Sat Jul 8 09:35:02 2006 +1000
73 Call nfssvc_versbits before nfssvc_setfds
75 nfssvc_versbits() has to be called before nfssvc_setfds()
76 for the version processing to work correctly
78 commit 26fff911b21943f20e3937ae3f2d29a1572d2309
79 Author: Neil Brown <neilb@suse.de>
80 Date: Thu Jul 6 13:05:11 2006 +1000
82 Only use -rpath for Kerberos libs when actually needed.
84 Avoid usage of -rpath is generally safer, and is required by Debian policy.
86 commit 28a7603b719f8d35bf22fd3018b610b489fec78f
87 Author: Neil Brown <neilb@suse.de>
88 Date: Thu Jul 6 12:28:33 2006 +1000
90 Use 65534 instead of -2 in svcgssd_proc.c
92 as this is more consistant across achitectures.
94 commit 904de920ea4da3ad5604c417f0d784fcda83ed2a
95 Author: Shankar Anand <shanand@novell.com>
96 Date: Tue Jul 4 08:50:56 2006 -0600
98 This patch adds code to nfsstat to read /proc/net/rpc/nfsd for nfsv4 server statistics and print them.
100 Submitted by: Shankar Anand <shanand@novell.com>
102 commit 2179c112b9a386ca3d51d0e19390ddfadd745030
103 Author: Steinar H. Gunderson <sesse@debian.org>
104 Date: Wed Jul 5 15:55:45 2006 +1000
106 Fix typos in various man pages.
108 commit 3419e37500dfd19cb2c246260dbd2bc0ee4704d4
109 Author: Steinar H. Gunderson <sesse@debian.org>
110 Date: Wed Jul 5 15:51:30 2006 +1000
112 Use 65534 for anon uid/gid rather than -2
114 This is more consistant across platforms.
116 commit 65735eef8a9441901245f6047edafc50f2d97c97
117 Author: Greg Banks <gnb@chook.melbourne.sgi.com>
118 Date: Wed Jul 5 13:37:21 2006 +1000
120 Update rpcdebug to know about new 2.6 debug flags. Added
121 a manpage and installed rpcdebug (in sbindir).
123 commit 23b3a9d0284d78cb6bf96b8cd44e9a4662ff60ae
124 Author: Greg Banks <gnb@chook.melbourne.sgi.com>
125 Date: Wed Jul 5 12:22:45 2006 +1000
127 Ignore new generated files.
129 commit 89053f3f440b629911cb994a293d5be73bb79bf9
130 Author: Greg Banks <gnb@chook.melbourne.sgi.com>
131 Date: Wed Jul 5 12:20:20 2006 +1000
133 Add rquota.h to BUILT_SOURCES so rquotad builds on the first try.
135 commit 66f9d8251c92124e46a209c47e5c0f7d3a0c4e6e
136 Author: Neil Brown <neilb@suse.de>
137 Date: Wed Jul 5 11:06:09 2006 +1000
139 Generate rquota_xdr.c and rquota.h from rquota.x
141 rquota_svc.c is still by-hand as it contains alot of extras.
142 These should really be moved to rquota_server.c
144 commit 9f5b40b7a68fe0a2648565ecbd4b08bf60287130
145 Author: Neil Brown <neilb@suse.de>
146 Date: Wed Jul 5 10:41:03 2006 +1000
148 Remove some files that old, unused, unneeded.
150 deleted: support/export/keys.c
151 deleted: support/include/rpcdispatch.h
152 deleted: support/include/rpcsec.h
153 deleted: support/include/version.h
154 deleted: support/include/ypupdate.h
155 deleted: support/nfs/clients.c
156 deleted: support/nfs/keytab.c
157 deleted: support/nfs/ypupdate_xdr.c
158 deleted: support/rpc/include/Makefile.am
159 deleted: tools/rpcdebug/neat_idea.c
160 deleted: utils/mountd/mount_xdr.c
161 deleted: utils/rquotad/pathnames.h
163 commit fbb1602bbd34cbe89dd55ca6eaaa19432237db1d
164 Author: Neil Brown <neilb@suse.de>
165 Date: Wed Jul 5 10:30:51 2006 +1000
167 Avoid error creating an existing symlink
169 Just remove the link first.
171 commit 0bc710a5a2b695039613a917e009dba3552ab1cc
172 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
173 Date: Mon Jul 3 18:33:54 2006 -0400
175 Don't depend on Kerberos headers when checking librpcsecgss in configure
177 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
179 Older versions of MIT Kerberos are missing an OID definition, causing
180 the configure checks for librpcsecgss to fail. We shouldn't be depending
181 on their libraries during the configure.
183 commit 5bfa10c94c44f082dc211a5fb431e2202ea9bb35
184 Author: Greg Banks <gnb@melbourne.sgi.com>
185 Date: Tue Jul 4 18:33:56 2006 +1000
187 Eliminate warnings from code generated by rpcgen
189 - unused variable 'buf'
190 - emit a declaration for `buf' on demand.
191 - unused variable 'i'
192 - declare i immediately before use
193 - unused value from IXDR_PUT_
195 - type-punned pointer reference
196 - cast to (void*) first :-(
198 commit acae444246635ec2ca8990d53e685c9062d73091
199 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
200 Date: Mon Jul 3 18:34:43 2006 -0400
202 Handle mapping failure from get_ids.
204 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
206 Temporary patch to do default mapping if we get an error while trying to
207 map a gss principal to the appropriate uid/gid. This currently returns
208 hardcoded values. This may be correct, or we may need to try and figure
209 out the correct values to match the anonuid/anongid for the export.
211 commit 1f1b05a65ef3dc6597c7bc1e2a38f38ae95bf230
212 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
213 Date: Mon Jul 3 18:34:38 2006 -0400
215 Properly report errors in readline() function
217 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
219 Change message priorities for errors and debug messages.
221 commit ee664fd246d77010af13fb557407c612752a5ea8
222 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
223 Date: Mon Jul 3 18:34:33 2006 -0400
225 Change default buffer size increment for readline()
227 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
229 The readline routine expects much smaller messages than we are passing.
230 Change the default initial allocation and increment value from 128
231 to 2048. This saves many calls to realloc().
233 commit 3da69ce5c4fac5677e91aa20e60750ab8de2ab97
234 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
235 Date: Mon Jul 3 18:34:27 2006 -0400
237 Clean up the printerr() logging function.
239 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
241 Update the printerr() function to:
243 1) Determine whether we'll print the message before going to all the
244 work of formatting it.
245 2) Don't just toss away messages that are too long for the buffer.
246 Print what we can and give an indication of the truncation with
248 3) Use a single buffer rather than two.
249 4) Messages either go to syslog (with level ERR) or stderr. Don't
250 send some messages to syslog level DEBUG.
252 commit 0b2a5b574c7ffd99aa3226d36e1d261826405625
253 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
254 Date: Mon Jul 3 18:34:21 2006 -0400
256 Use setfsuid() rather than seteuid() while creating contexts
258 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
260 As suggested by Olaf Kirch <okir@suse.de>, use setfsuid() rather than
261 seteuid() when creating a gss context. This prevents users from using
262 credentials that do not belong to them, while also preventing them from
263 doing things like killing, renicing, or changing the priority of the
264 gssd process while it is processing the context creation.
266 commit 0f899e6d862994ffb437ae73e087c4a21ab59723
267 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
268 Date: Mon Jul 3 18:34:16 2006 -0400
270 Limit acquire_cred call to to Kerberos only
272 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
274 Specify that the acquire_cred call should only be concerned with returning
275 Kerberos credentials since this is Kerberos-only functionality.
277 commit 3829bb90e764cd72c0009cb32a8b39d0fab89d81
278 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
279 Date: Mon Jul 3 18:34:10 2006 -0400
281 Check that the gssapi library is usable early on.
283 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
285 Do a call to determine mechanisms supported by the gssapi library early.
286 This allows us to discover early in case the gssapi library is somehow
287 misconfigured. We can bail out early and give a meaningful message
288 rather than getting errors on each attempt at a context negotiation.
290 commit 119c3e9aafe84c0f7c2846c46ad5e6f5eeece0da
291 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
292 Date: Mon Jul 3 18:34:05 2006 -0400
294 Fix problems with 64-bit big-endian machines
296 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
298 Correct the definition of mech_used in the gss context to use gss_OID_desc.
299 This fixes problems on 64-bit machines when referencing the OID.
301 Also updates write_buffer function to use u_int rather than size_t when
304 commit c3f05548d7b3d586e7eebbdde9339617e88530f3
305 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
306 Date: Mon Jul 3 18:33:59 2006 -0400
308 Define CFLAGS for gss_clnt_send_err compile
310 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
312 Add CFLAGS to make sure we find and use the correct gssapi.h when
313 building gss_clnt_send_err
315 commit 4e9ed06f8f8a0cd9f34a6830c0ff14344a528042
316 Author: Greg Banks <gnb@melbourne.sgi.com>
317 Date: Mon Jul 3 15:59:54 2006 +1000
319 Use socklen_t some more to avoid warnings.
321 commit 6c40236820fda8960af891f41aa9d53f8bbe50a2
322 Author: Greg Banks <gnb@melbourne.sgi.com>
323 Date: Mon Jul 3 15:39:41 2006 +1000
325 Fix warning about pointer signedness differing.
327 commit 3bf702b1a914b3867117b74d519c55fa68f4dc28
328 Author: Greg Banks <gnb@melbourne.sgi.com>
329 Date: Mon Jul 3 15:17:34 2006 +1000
331 Include the right header to get xmalloc() declaration.
333 commit 940c7c304d4a43c00c27529cdddc7c87db6eef87
334 Merge: b90d201... a503848...
335 Author: Greg Banks <gnb@melbourne.sgi.com>
336 Date: Mon Jul 3 14:21:48 2006 +1000
338 Merge branch 'master' of git://linux-nfs.org/nfs-utils
340 commit b90d201551aaa712c011c3d5de900fad714a26a6
341 Author: Greg Banks <gnb@melbourne.sgi.com>
342 Date: Tue Jun 27 21:30:18 2006 +1000
344 Comment out unused variable.
346 commit 33beb42d3d2cd13a82ddbbdc4275d2a048030ae3
347 Author: Greg Banks <gnb@melbourne.sgi.com>
348 Date: Tue Jun 27 21:22:59 2006 +1000
350 Comment out the decades-old SCCS id strings from the original Sun
351 distribution. They cause compile warnings, there is no longer any
352 reason to try to build them into the binaries, and gcc seems to be
353 eliding some of them anyway.
355 commit 3172063ead6b99611d049a59938808a6358f48a4
356 Author: Greg Banks <gnb@melbourne.sgi.com>
357 Date: Tue Jun 27 20:55:07 2006 +1000
359 Detect if glibc provides socklen_t and use that instead
360 of int in those cases which generate compile warnings,
361 e.g. the last argument of recvfrom().
363 commit a09eeb36c2c45151b9bb89f5015da0c584799716
364 Author: Greg Banks <gnb@melbourne.sgi.com>
365 Date: Tue Jun 27 20:28:02 2006 +1000
367 Replace the deprecated sigblock() with more modern
368 signal functions to avoid compile warnings.
370 commit 93608a52655abf5ac23404c4b5cc05fe575a9c04
371 Author: Greg Banks <gnb@melbourne.sgi.com>
372 Date: Thu Jun 22 18:01:10 2006 +1000
374 Fix a number of the easier compile warnings: unused variables,
375 unused labels, constness, signedness.
377 commit a07343ee0da4f0974a23b673ae1b0d482c7426a1
378 Author: Greg Banks <gnb@melbourne.sgi.com>
379 Date: Thu Jun 22 17:31:24 2006 +1000
381 Detect presence of nfs4_set_debug() in libnfsidmap and
382 don't bother calling it if it's missing.
384 commit dcfcb677b39443b6392db3234fd50498bc158507
385 Author: Greg Banks <gnb@melbourne.sgi.com>
386 Date: Thu Jun 22 17:19:17 2006 +1000
388 Remove useless m4 quoting around args to PKG_CHECK_MODULES().
390 commit 24d303ffae686192bda0a5996e8590219dcc82e7
391 Author: Greg Banks <gnb@melbourne.sgi.com>
392 Date: Thu Jun 22 17:16:19 2006 +1000
394 Do m4 quoting of AC_MSG_ERROR() and AC_MSG_WARN() as
395 the autoconf people intended. This avoids errors in
398 commit 66a699d953727d3a992cc09ed5304b83d661a737
399 Author: Greg Banks <gnb@melbourne.sgi.com>
400 Date: Thu Jun 22 16:51:44 2006 +1000
402 Add a .gitignore file to suppress the files generated
403 during autogen, configure and build.
404 commit 49b164d978ee6266df7ba0bd335cb34337e7c381
405 Author: Steve Dickson <SteveD@redhat.com>
406 Date: Mon Jul 3 09:52:00 2006 +1000
408 Allow rpc.nfsd to suppress tcp or udp, and listen on a specific address.
410 -T - will suppressing listening for TCP connection.
411 -U - will suppress UDP
412 -H host - will only listen on that local address
413 -p port - will listen on that port.
415 This requires kernel patches which will hopefully be in 2.6.19 and possibly some
416 earlier test and vendor kernels.
418 commit fde2ae7794047a698feeaf17963d690a1e660a80
419 Author: Steve Dickson <SteveD@redhat.com>
420 Date: Mon Jun 26 15:23:19 2006 +1000
422 Add support for suppressing different NFS versions.
425 means that NFSv2 won't be supported, just v3 and v4 (if the kernel
428 commit 0523fd513c6baa8dbf45d1a7afea2044262aeb3d
429 Author: Neil Brown <neilb@suse.de>
430 Date: Fri Jun 23 17:10:56 2006 +1000
432 Further coverity related cleanups.
434 Greg Banks suggested some variations, particularly improved
435 use of xmalloc/xstrdup functions. Thanks.
437 commit 2e075a16da4963f54cd556403ca9e15a68de27fd
438 Author: Neil Brown <neilb@suse.de>
439 Date: Fri Jun 23 14:38:33 2006 +1000
441 Fix various issues discovered by Coverity
443 Thanks to Michael Halcrow for finding them.
445 commit ff42180930a444cea7f19e55e2cd2bfe6d3f108b
446 Author: Neil Brown <neilb@suse.de>
447 Date: Fri Jun 23 14:06:00 2006 +1000
449 Fix comment parsing (again)
451 Bruce Fields noticed that I broke comment parsing...
453 as xskip() is always called before xgettok(), that is the
454 best place to put xskipcomment and still maintain proper
455 semantics of xskip and xgettok.
457 commit bec968578d97eabc63ae4a12bdeb2b33f40baec4
458 Author: Amit Gud <agud@redhat.com>
459 Date: Thu Jun 22 12:51:04 2006 -0400
461 Change mount configure option to --enable-mount
463 Change the configure option from --with-mount to --enable-mount.
465 Signed-off-by: Amit Gud <agud@redhat.com>
466 Signed-off-by: Steve Dickson <steved@redhat.com>
468 commit ceeffc1f76485b4084b2c61f4ff3c40e4f51c3b8
469 Author: Amit Gud <gud@eth.net>
470 Date: Thu Jun 22 12:49:24 2006 -0400
472 Merge nfsmount.x and mount.x into mount.x
475 Merge utils/mount/nfsmount.x and support/export/mount.x into support/export/mount.x.
477 Signed-off-by: Amit Gud <agud@redhat.com>
478 Signed-off-by: Steve Dickson <steved@redhat.com>
480 commit c2db41e8abb6ddc9d03a0c91c6db043fa0f85a8f
481 Author: Neil Brown <neilb@suse.de>
482 Date: Fri Jun 23 13:37:08 2006 +1000
484 Try to make sure that clientid used for NFSv4 is reliable.
486 We need to give an IP address to identify this client to the
488 The current code does a gethostbyname of the hostname. One
489 some systems this returns 127.0.0.1 or similar, which is not useful.
491 Instead, use getsockname of the sock used to connect to the server
492 to confirm that the server is working. This gives the address on the
493 interface that was chosen to talk to that server, which is the
494 best address we can find (if there is a NAT in the way, it might
495 still not work, but in that case there is nothing we can do).
497 commit 11d34d11153df198103a57291937ea9ff8b7356e
498 Author: Greg Banks <gnb@melbourne.sgi.com>
499 Date: Wed Jun 14 22:48:10 2006 +1000
501 multiple threads for mountd
504 How about the attached patch against nfs-utils tot? It
505 adds a -t option to set the number of forked workers.
506 Default is 1 thread, i.e. the old behaviour.
508 I've verified that showmount -e, the Ogata mount client,
509 and a real mount from Linux and IRIX boxes work with and
510 without the new option.
512 I've verified that you can manually kill any of the workers
513 without the portmap registration going away, that killing
514 all the workers causes the manager process to wake up and
515 unregister, and killing the manager process causes the
516 workers to be killed and portmap unregistered.
518 I've verified that all the workers have file descriptors
519 for the udp socket and the tcp rendezvous socket, that
520 connections are balanced across all the workers if service
521 times are sufficiently long, and that performance is
522 improved by that parallelism, at least for small numbers
523 of threads. For example, with 60 parallel MOUNT calls
524 and a testing patch to make DNS lookups take 100 milliseconds
525 time to perform all mounts (averaged over 5 runs) is:
541 Greg Banks, R&D Software Engineer, SGI Australian Software Group.
542 I don't speak for SGI.
544 commit db96d056578338dd1bb0371dc84638973c187ec6
545 Author: Neil Brown <neilb@suse.de>
546 Date: Fri Jun 16 13:16:09 2006 +1000
548 Remove some temporary files that shouldn't be in 'git'.
551 deleted: config.guess
558 commit 82b53188aaffad0e237461f8f1274794166feb3a
559 Author: Neil Brown <neilb@suse.de>
560 Date: Fri Jun 16 13:09:26 2006 +1000
562 Add support to auto-generate nfsmount* files for new nfs.mount program
564 commit 4e2bae795e5eaf9922f0b966ab5df64994c836a2
565 Author: Amit Gud <agud@redhat.com>
566 Date: Mon Jun 12 19:08:27 2006 -0400
568 Move NFS mount code from util-linux to nfs-utils - part 2
570 Adds the support functions needed for mount and umount. This
571 functionality will someday be available in the form of shared mount
574 Signed-off-by: Amit Gud <agud@redhat.com>
575 Signed-off-by: Steve Dickson <steved@redhat.com>
577 commit a0520fa1a41bd33815b331b660b4545f2723495c
578 Author: Amit Gud <agud@redhat.com>
579 Date: Mon Jun 12 19:06:36 2006 -0400
581 Move NFS mount code from util-linux to nfs-utils - part 1
583 Adds the mount directory and the code to mount and umount the NFS file system.
585 Signed-off-by: Amit Gud <agud@redhat.com>
586 Signed-off-by: Steve Dickson <steved@redhat.com>
588 2006-06-05 NeilBrown <neilb@suse.de>
589 - Remove debian/ at request of Debian maintainer "Steinar H. Gunderson" <sesse@debian.org>
590 - fix_exportfs_with_multiple_matches.diff: Fixes a problem with exportfs -o
591 and multiple entries of the same type for the same patch that matches
592 a given client. The entire rationale and problem description can be found
593 at http://bugs.debian.org/245449 (fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>)
594 - escape hashes in exports
595 Makes sure any # signs in the printed-out exports file are
596 escaped (as with quotes, spaces, etc.), so they won't be treated
597 as a comment when they're read back in again.
598 "Steinar H. Gunderson" <sesse@debian.org>
599 - Only treat '#' as starting a comment when at the start of a
600 token, otherwise '#' in filenames cannot be read.
602 - document sync option:
603 Document the 'sync' option in the exports(5) man page -- ATM
604 only the 'async' option is documented, which is not very
605 symmetric. :-) "Steinar H. Gunderson" <sesse@debian.org>
606 - mountd state directory:
607 Let the user select (via a new parameter) the path to the NFS
608 state directory for mountd, to match the statd functionality.
609 "Steinar H. Gunderson" <sesse@debian.org>
610 - fix nhfsrun signal:
611 nhfsrun is supposed to be able to be signalled with SIGUSR1, but
612 the signal trapped is number 30, which is something else
613 entirely (SIGPWR). This patch simply changes it to say "USR1",
614 which gets it right no matter what the value is.
615 "Steinar H. Gunderson" <sesse@debian.org>
616 - Minor man page tidy up
618 2006-04-12 NeilBrown <neilb@suse.de>
619 Remove **/Makefile.in, aclocal.m4, configure, and
620 support/include/config.h.in from source control
621 These are auto autogenerated by
622 aclocal -I aclocal ; autoheader ; automake ; autoconf
624 2006-04-12 NeilBrown <neilb@suse.de>
625 utils/statd/rmtcall.c: use HAVE_IFADDRS_H to control compilation
626 of code using ifaddrs.h
627 configure.in: test for present of ifaddrs.h
629 Old glibc's don't have ifaddrs.h
631 2006-06-12 Amit Gud <agud@redhat.com>
632 Added the mount functionality from util-linux.
633 Added --without-mount configure option.
635 2006-04-12 NeilBrown <neilb@suse.de>
636 Set version to 1.0.8,
637 aclocal -I aclocal ; autoheader ; automake ; autoconf
639 2006-04-10 NeilBrown <neilb@suse.de>
640 Various paranoia checks:
641 gssd_proc.c: pass max_field sizes to sscanf to avoid buffer
643 svcgssd_proc.c: range_check name.length, to ensure name.length+1
645 idmapd.c(nfsdcb): make sure at least one byte is read before
646 zeroing the last byte that was read, otherwise memory corruption
649 Found by SuSE security audit.
651 2006-04-10 "Kevin Coffman" <kwc@citi.umich.edu>
652 Check for sufficient version of librpcsecgss and libgssapi
655 2006-04-10 "Kevin Coffman" <kwc@citi.umich.edu>
656 Update aclocal/tcp-wrappers.m4 to define HAVE_LIBWRAP and
657 HAVE_TCP_WRAPPERS as appropriate.
659 2006-04-10 NeilBrown <neilb@suse.de>
660 Add checking for innetgr back to configure.in
662 2006-04-10 kwc@citi.umich.edu
663 Update calls to gss_export_lucid_sec_context()
665 Change the calls to gss_export_lucid_sec_context() to match the corrected
666 interface definition in libgssapi-0.9.
668 2006-04-10 kwc@citi.umich.edu
669 Plug memory leaks in svcgssd
671 Various memory leaks in the svcgssd context processing are eliminated.
673 2006-04-10 kwc@citi.umich.edu
674 Fix memory leak of the AUTH structure on context negotiations
676 Free AUTH structure after completing context negotiation and sending
677 context information to the kernel.
679 2006-04-10 kwc@citi.umich.edu
680 Fix support/include/config.h.in such as would be done be running autoheader.
682 2006-03-28 NeilBrown <neilb@suse.de>
683 1.0.8-pre3, aclocal/autoconf/automake
685 2006-03-28 kwc@citi.umich.edu
686 Use PKGCONFIG to locate gssapi and rpcsecgss header files
688 Instead of having separate copies of the gssapi and rpcsecgss
689 header files, or depending on the Kerberos gssapi header,
690 locate the headers now installed with the libgssapi and librpcsecgss
693 Remove local copies of the gssapi and rpcsecgss header files.
695 This depends on the configure_use_autotools patch.
697 2006-03-28 kwc@citi.umich.edu
698 Add debugging to better detect negotiation of enctype not supported by kernel
700 Print debugging message indicating the type of encryption keys being sent
701 down to the kernel. This should make it easier to detect cases where
702 unsupported encryption types are being negotiated.
705 2006-03-28 kwc@citi.umich.edu
707 Don't close and reopen all pipes on every DNOTIFY signal.
709 From: Vince Busam <vbusam@google.com>
710 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
712 Don't unnecessarily close and re-open all pipes after every DNOTIFY
713 signal. These unnecessary closes were triggering a kernel Oops.
714 Original patch modified to correct segfault when unmounting last
717 2006-03-28 kwc@citi.umich.edu
718 Add option to specify directory to search for credentials cache files
721 From: Vince Busam <vbusam@google.com>
722 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
724 Add command line option to specify which directory should be searched
725 to find credentials caches.
728 2006-03-28 kwc@citi.umich.edu
729 Must still use knowledge of the glue context for pre-1.4 versions of MIT krb5
731 We need to get access to the internal krb5 context pointer for
732 older (pre-1.4) versions of MIT Kerberos. We get a pointer to
733 the gss glue's context. Get the right pointer before accessing
734 the context information.
737 2006-03-28 kwc@citi.umich.edu
739 Remove unused groups variable from get_ids() which was causing a compiler warning.
742 2006-03-28 kwc@citi.umich.edu
743 Update krb5 code to use glue routine lucid context functions
747 The gssd code should not know about the glue layer's context structure.
748 A previous patch added gss_export_lucid_sec_context() and
749 gss_free_lucid_sec_context() functions to the gssapi glue layer.
750 Use these functions rather than calling directly to the Kerberos
751 gssapi code (which requires the Kerberos context handle rather
752 than the glue's context handle).
756 2006-03-28 kwc@citi.umich.edu
758 Separate out context handling code for MIT Kerberos and SPKM3
762 2006-03-28 Kevin Coffman <kwc@citi.umich.edu>
763 User-selectable idmapping cache lifetime
765 Read and process new configuration option, Cache-Expiration, and use
766 the value to determine how long idmapping entries are cached.
769 2006-03-27 NeilBrown <neilb@suse.de>
772 2006-03-27 kwc@citi.umich.edu
773 Add debugging to better detect negotiation of enctype not supported by kernel
775 Print debugging message indicating the type of encryption keys being sent
776 down to the kernel. This should make it easier to detect cases where
777 unsupported encryption types are being negotiated.
780 Don't close and reopen all pipes on every DNOTIFY signal.
782 Don't unnecessarily close and re-open all pipes after every DNOTIFY
783 signal. These unnecessary closes were triggering a kernel Oops.
784 Original patch modified to correct segfault when unmounting last
788 Add option to specify directory to search for credentials cache files
790 Add command line option to specify which directory should be searched
791 to find credentials caches.
793 2006-03-27 kwc@citi.umich.edu
794 Must still use knowledge of the glue context for pre-1.4 versions of MIT krb5
796 We need to get access to the internal krb5 context pointer for
797 older (pre-1.4) versions of MIT Kerberos. We get a pointer to
798 the gss glue's context. Get the right pointer before accessing
799 the context information.
801 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
802 Remove unused variable causing compile warning
804 Remove unused groups variable from get_ids() which was causing a compiler warning.
806 2006-03-27 kwc@citi.umich.edu
807 Update krb5 code to use glue routine lucid context functions
809 The gssd code should not know about the glue layer's context structure.
810 A previous patch added gss_export_lucid_sec_context() and
811 gss_free_lucid_sec_context() functions to the gssapi glue layer.
812 Use these functions rather than calling directly to the Kerberos
813 gssapi code (which requires the Kerberos context handle rather
814 than the glue's context handle).
816 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
817 Separate out context handling code for MIT Kerberos and SPKM3
820 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
821 Consolidate gssd and svcgssd since they share much code
823 Remove directory svcgssd which was only created because the old
824 build system could not handle building two daemons in the same
825 directory. This eliminates build complications since gssd and
826 svcgssd also share many source files.
828 This patch effectively removes the utils/svcgssd directory, moving
829 all its files to the utils/gssd directory. File utils/gssd/Makefile.am
830 is modified with directions to build both gssd and svcgssd.
832 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
833 Use PKGCONFIG to locate gssapi and rpcsecgss header files
835 Instead of having separate copies of the gssapi and rpcsecgss
836 header files, or depending on the Kerberos gssapi header,
837 locate the headers now installed with the libgssapi and librpcsecgss
840 Remove local copies of the gssapi and rpcsecgss header files.
842 This depends on the configure_use_autotools patch.
844 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
845 User-selectable idmapping cache lifetime
847 Read and process new configuration option, Cache-Expiration, and use
848 the value to determine how long idmapping entries are cached.
850 2006-03-27 Steve Dickson <steved@redhat.com>
851 Set libnfsidmap library debugging level and logging function.
853 This patch adds a call to the new libnfsidmap library function
854 nfs4_set_debug(), which defines the verbosity level libnfsidmap
855 should use as well as the logging function.
857 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
858 Don't close file descriptor until after calling event_del().
860 Delete event processing for a file descriptor before closing it.
861 This was causing hangs when used in combination with libevent-1.0b.
863 2006-03-27 kwc@citi.umich.edu
864 Find krb5-config on SuSE 10
866 SuSE 10.0 puts krb5-config in yet another obscure location.
867 Look for it there and use it if found.
869 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
870 Update debian package information.
872 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
873 Install /var/lib/nfs files using DESTDIR and add rpcsec headers to distribution
875 Add "$(DESTDIR)" to the paths for the "$(statedir)" files so they are
876 put in the right place when DESTDIR is defined.
878 Add the rpcsec header files to EXTRA_DIST list.
880 2005-12-21 NeilBrown <neilb@suse.de>
881 *utils/rquotad/rquota_server.c: Detect and handle both old-style
882 (2.4) and new-style(2.6) quotactl.
883 *utils/gssd/gss_destroy_cred: remove dependence on "head -1" which
884 might need to be "head -n 1"
885 *utils/nhfsstone/nhfsrun: convert "tail -1" to "tail -n 1"
887 2005-12-20 Kevin Coffman <kwc@citi.umich.edu> NeilBrown <neilb@suse.de>
888 Substantial Makefile/configure rewrite.
889 Run 'autogen.sh' to create "Makefile.in" etc.
891 Also add -D_FILE_OFFSET_BITS=64 to CPP_FLAGS so that mountd can
892 stat and export files larger than 2Gig.
896 2005-12-20 NeilBrown <neilb@suse.de>
897 support/nfs/exports.c(getexportent): is a null host name is given,
898 replace it with '*' so we have a non-empty host name for messages
900 utils/exportfs/exportfs.man: Correct documentation about default
903 2005-12-20 Kevin Coffman <kwc@citi.umich.edu>
904 utils/gssd/gssd_proc.c(create_auth_rpc_client): Use service
905 portion of clp->servicename rather than hard-coding "nfs".
907 2005-12-16 NeilBrown <neilb@suse.de>
910 2005-12-16 Kevin Coffman <kwc@citi.umich.edu>
911 svcgssd needs -lnfs when using new function closeall().
914 Remove unused argument from nfsdopen()
916 After previous changes, the arguement to nfsdopen() has become unused.
920 Fix idmapd error reporting after call to mydaemon()
922 After call to mydaemon(), calls to err[x] and warn[x] result
923 in the message going nowhere. Change to using idmapd_*
924 versions of these routines which write to syslog.
925 Original problem reported by Vincent Roqueta <vincent.roqueta@ext.bull.net>
926 with a different patch.
929 Don't add @domain to names that cannot be mapped.
931 Per rfc3530 section 5.8: when unable to map a uid to a name, don't
932 add the @domain to the "nobody" name.
935 Fix idmapd for systems where sizeof(uid_t)!=4 and sizeof(gid_t)!=4
937 Fix conversion cases where uid_t and gid_t are not 32 bits.
940 Don't segfault because mech wasn't filled in because of an error
942 From Kevin Coffman <kwc@citi.umich.edu>
944 Initialize mech to null to avoid segfault if an error occurs
945 and mech is never returned from gss_accept_sec_context.
948 Remove use of static buffer in do_downcall
950 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
952 Dynamically allocate buffer of the correct length rather
953 than using fixed-length buffer.
956 Print better error message if rpc routine clnt_create() fails.
959 Print appropriate error messages after gss calls.
961 Print gss error messages after calls to gss functions, even if they
962 are for Kerberos only.
965 Update gssd and svcgssd to use the new gss mech glue lucid context calls.
967 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
969 Update gssd and svcgssd to use a lucid context from SPKM3 to send down
971 Update gssd and svcgssd to use the new gss mech glue lucid context calls.
972 Add configure check to see if spkm3 support is available.
975 Add support for CONTINUE_NEEDED return from gss_accept_sec_context.
977 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
979 Add CONTINUE_INIT handling to svcgssd. Store the partially complete spkm
980 context handle in the out_handle of CONTINUE_INIT messages so that it is
981 returned in the in_handle of subsequent messages.
984 Replace GSS_C_ANON_FLAG with GSS_C_MUTUAL_FLAG.
986 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
988 Specify GSS_C_MUTUAL_FLAG rather than GSS_C_ANON_FLAG for
991 NOTE: we need a way to pass the appropriate value rather than
992 hard-coding this flag.
995 Increase size of rpc send/receive buffers
997 Change the clnt_create() to use routines which allow us to set the
998 send and receive buffer size. This is needed for larger spkm3
999 exchanges including certificate chains.
1001 This has the side-effect of skipping the portmap call since
1002 we specify the port (by specifying the service) when getting
1003 the server's address information.
1006 Define _LINUX_QUOTA_VERSION to 1
1008 The rquotad code is written against the "old" kernel quota interface.
1009 Fedora Core 4 is the only platform known to check for different
1010 versions, so this should not have any affect on other platforms
1011 and fixes the build for FC4.
1015 2005-12-12 Usha Ketineni <ketineni@us.ibm.com>, NeilBrown <neilb@suse.de>
1016 *support/nfs/rpcmisc.c(rpc_init): is stdin is a socket, but
1017 is already connected (as e.g. from ssh), don't assume we
1018 were started by inetd.
1020 2005-11-03 Steve Dickson <SteveD@redhat.com> NeilBrown <neilb@suse.de>
1021 *utils/idmapd/idmaps.c:
1023 I've recently updated the nfs-utils in rawhide with the
1024 latest patches from the SourceForge CVS tree and the
1025 latest CITI patches (1.0.7-4).
1027 In testing these patches, I notice that when the server was started
1028 and a SIGHUP was sent to rpc.idmapd to open the nfs4.nametoid/channel
1029 and nfs4.idtoname/channel files, the second open (the nfs4.idtoname one)
1030 failed because the path (i.e. ic->ic_path) was NULL.
1032 Now the reason the ic_path was NULL was because it was never set
1033 during the call to nfsdopen(). nfsdopen() looks like:
1034 nfsdopen(char *path)
1036 return ((nfsdopenone(&nfsd_ic[IC_NAMEID], IC_NAMEID, path) == 0 &&
1037 nfsdopenone(&nfsd_ic[IC_IDNAME], IC_IDNAME, path) == 0) ? 0
1041 Note: the call to nfsdopenone() is how the path is set in each nfsd_ic[]
1042 entry and nfsdopen() is only called once.
1044 So when rpc.idmap comes up and the first call to nfsdopenone() fails
1045 (because the server is not running) the path in nfsd_ic[IC_IDNAME] is
1046 never filled in because the second nfsdopenone() never happen...
1048 Now there was a CITI patche (idmapd_revert_fix_reopen_on_sighup.dif)
1049 that tried to address this problem but did seem to fix it.. The
1050 attached patch fix the problem by initializing both nfsd_ic[IC_IDNAME]
1051 and nfsd_ic[IC_NAMEID] structures with the needed info...
1052 I figured since there is no way of changing these paths or filenames
1053 by command line args, why not just set them during compile time...
1054 so that's what this patch does.
1056 This patch also changes how nfsdreopen_one() handles the
1057 case where the event has already been set. Unlike the CITI
1058 patch (idmapd_revert_fix_reopen_on_sighup.dif) which just
1059 just does not register the second event, my patch deletes
1060 the old event and the registers the new one. It just seems like
1061 the right thing to do since a SIGHUP means a new server just
1062 started so we probably should create a new event as well...
1066 2005-10-14 NeilBrown <neilb@suse.de>
1067 *utils/mountd/cache.c(nfsd_fh): Understand type 2 and type 3
1068 filesystem identifiers, which are used with device numbers
1069 That don't fit into 16 bits.
1071 2005-10-07 Olaf Kirch <okir@suse.de>
1072 * utils/mountd/mountd.c(get_exportlist): Without this patch,
1073 showmount -e would sometimes display host names that should really
1074 have been subsumed under a wildcard entry.
1076 The problem was that the code in get_exportlist would always
1077 skip the next group entry after removing one FQDN.
1079 2005-10-06 Steve Dickson <SteveD@redhat.com> NeilBrown <neilb@suse.de>
1080 * support/nfs/export.c: don't warn about sync/async for readonly
1082 * support/nfs/closeall.c: new file with function to close all
1083 file descriptors from a give minimum upwards.
1084 * nfsd/mountd/statd/idmapd/gsssvcd: use closeall.
1085 * utils/mountd/mountd.c: Eliminate 3 syslog message that are
1086 logged for successful events.
1087 * utils/mountd/mountd.c: make sure the correct hostname is used in
1088 the SM_NOTIFY message that is sent from a rebooted server which
1089 has multiple network interfaces. (bz 139101)
1091 Details can be found in:
1092 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=139101
1094 *utils/idmapd/idmapd.c:Fixed subscripting problem in idmapd (bz
1095 158188) This fixes the following problem:
1096 rpc.idmapd: nfsdreopen: Opening '' failed: errno 2 (No such file or directory)
1098 Details can be found in:
1099 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=158188
1101 *utils/statd/statd.c(drop_privs): clear st_gid as well as st_uid
1103 *utils/statd/svc_run.c(my_svc_run): remove usage of undocumented
1104 %m format specifier.
1105 *utils/statd/montor.c(sm_mon_1_svc): as above
1106 *support/nfs/xlog.c(xlog): Changed xlog to use LOG_INFO instead of
1107 LOG_DEBUG so debug messages will appear w/out any config changes
1111 2005-09-02 Mike Frysinger <vapier@gentoo.org>
1112 * utils/rquotad/rquota_server.c(getquotainfo): use explicit
1113 struture-member copying rather than memcpy, as the element
1114 sizes are the same on all architectures.
1116 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
1117 Add option to set rpcsec_gss debugging level (if available)
1119 Changes to allow gssd/svcgssd to build when using Hiemdal Kerberos
1120 libraries. Note that there are still run-time issues preventing
1121 this from working when shared libraries for libgssapi and librpcsecgss
1124 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
1125 Remove the rpcsec_gss code and rely on an external library instead.
1127 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
1128 *utils/mountd/mountd.c:
1129 mountd currently always returns AUTH_NULL and AUTH_SYS as the
1130 allowable flavors in mount replies. We want it to also return gss
1131 flavors when appropriate. For now as a hack we just have it always
1132 return the KRB5 flavors as well.
1134 *utils/mountd/cache.c:
1136 When attempting to mount an NFSv4 pseudofilesystem (fsid=0) and the
1137 actual exported directory does not exist on the server, rpc.mountd
1138 doesn't check the directory exists (when fsidtype=1, i.e. using fsid,
1139 but does check for fsidtype=0, i.e. using dev/ino). The non-existent
1140 exported directory path with fsid=0 is written to the kernel via
1141 /proc/net/rpc/nfsd.export/channel, which leads to path_lookup() to
1142 return ENOENT (seems appropriate). Unfortunately, the new_cache
1143 approach ignores errors returned when writing via the channel file so
1144 that particular error is lost and the mount request is silently ignored.
1146 Assuming it doesn't make sense to revamp the new_cache/up-call method to
1147 not ignore returned errors, it seems appropriate to fix the case where
1148 rpc.mountd doesn't check for the existence of an exported directory with
1149 fsid= semantics. The following patch does this by moving the stat() up
1150 so it is done for both fsidtype's. I'm not certain whether the other
1151 tests need to be executed for fsidtype=1, but it doesn't appear to hurt
1152 [Not exactly true: the comparison of inode numbers caused problems so
1153 now it's kept for fsidtype=0 only].
1155 Would it be also desirable to log a warning for every error, if any,
1156 returned by a write to any of the /proc/net/rpc/*/channel files which
1157 would otherwise be ignored (maybe under a debug flag)?
1159 * gssd/mountd/svcgssd: Changes gssd, svcgssd, and mountd to ignore a
1160 SIGHUP rather than dying.
1162 * many: Remove the gssapi code and rely on an external library instead.
1164 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
1165 * utils/exportfs/exports.man: Document the "crossmnt" export export option
1166 * utils/gssd/krb5_util.c:
1167 Add better debugging and partially revert the function
1168 check for gss_krb5_ccache_name.
1170 For MIT Kerberos releases up to and including 1.3.1, we *must*
1171 use the routine gss_krb5_ccache_name to get the K5 gssapi code
1172 to use a different credentials cache.
1174 For releases 1.3.2 and on, we want to use the KRB5CCNAME
1175 environment variable to tell it what to use.
1176 (A problem was reported where 1.3.5 was being used, our
1177 code was using gss_krb5_ccache_name, but the underlying
1178 code continued to use the first (or default?) credentials
1179 cache. Switching to using the env variable fixed the problem.
1180 I cannot recreate this problem.
1182 *utils/gssd/krb5_util.c:
1183 Andrew Mahone <andrew.mahone@gmail.com> reported that reiser4
1184 always has DT_UNKNOWN. He supplied patch to move the check
1185 for regular files after the stat() call to correctly find
1186 ccache files in reiser4 filesystem.
1188 Also change the name comparison so that the wrong file is
1189 not selected when the substring comparison is done.
1191 *utils/gssd/krb5_util.c:
1192 Limit the set of encryption types that can be negotiated by
1193 the Kerberos library to those that the kernel code currently
1196 This should eventually query the kernel for the list of
1199 *utils/gssd/gss_util.c, utils/svcgssd/svcgssd_main_loop.c:
1200 Print more information in error messages to help debugging failures.
1202 *utils/svcgssd/svcgssd_proc.c: Increase token buffer size and
1203 update error handling so that a response is always sent.
1205 *utils/svcgssd/svcgssd_proc.c: Add support to retrieve
1206 supplementary groups.
1209 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
1211 Consolidate some of the Kerberos checking instead of repeating
1212 the same things for MIT and Heimdal.
1213 Also adds more checks to distinguish 32-bit from 64-bit
1214 (mainly for gssapi.h)
1215 Fix svcgssd Makefile so make TOP=../../ works correctly there.
1216 Enable running a modern autoheader.
1217 * utils/gssd/gss_oids.c: Use correct OID value for SPKM-3
1218 * utils/gssd/gss_util.c: Fix build with older MIT releases that do not define GSS_C_NT_HOSTBASED_SERVICE
1219 * utils/gssd/write_bytes.h, support/include/gssapi/gssapi.h:
1220 Length of gss_buffer_desc is a size_t which is 64-bits on a
1221 64-bit machine. Kernel code expects 32-bit integer for length.
1222 Coerce length value into a 32-bit value when reading from or
1223 writing to the kernel.
1224 Change gssapi.h to use datatype size values obtained from
1225 configure rather than hard-coded values.
1226 * utils/idmapd/idmapd.c: The EV_INIT check here was wrong, and was
1227 causing idmapd to become unresponsive to server requests after
1229 * utils/idmapd/idmapd.c: Idmapd should flush the server id<->name
1230 caches when its started.
1232 2005-04-12 G. Allen Morris III <gam3@gam3.net>
1234 * All Makefile: added TOP as needed for easier compile.
1236 * utils/nfsstat/nfsstat.c: added NFS V4 support; added the -m
1237 option; Added -2, -3, and -4 options; changed -a option to -v
1238 option; added long options; changed default output to not
1239 show V2 NFS statistics unless used.
1241 * utils/nfsstat/nfsstat.man: Documented above changes; changed
1242 authors email address; added BUGS section.
1244 2005-04-07 Chip Salzenberg <chip@pobox.com>
1246 * debian/changelog: Version 1.0.7-2.
1248 2005-04-06 Chip Salzenberg <chip@pobox.com>
1250 * config.guess, config.sub: Update.
1252 * support/rpc/svc_auth_gss.c (_svcauth_gss): Avoid using a cast as
1253 an lvalue, as it is non-portable.
1255 * support/nfs/exports.c (parseopts): Accept "acl" option to mean
1256 ~NFSEXP_NOACL, and "no_acl" to mean NFSEXP_NOACL.
1257 (putexportent): Report NFSEXP_NOACL as "no_acl", and ~NFSEXP_NOACL
1259 * utils/exportfs/exportfs.c (dump): Report NFSEXP_NOACL as
1261 * utils/exportfs/exports.man: Document "no_acl".
1263 2005-03-14 NeilBrown <neilb@cse.unsw.edu.au>
1264 Denis Vlasenko <vda@ilport.com.ua>
1265 * support/export/client.c(client_init and client_gettype):
1266 treat N.N.N.N as a special case of MCL_SUBNETWORK instead of
1269 2005-03-06 G. Allen Morris III <gam3@gam3.net>
1270 * support/nfs/cacheio.c(readline): Could not read lines greater
1271 than 128 bytes. [1157791]
1272 * utils/exportfs/exports.man: Added a SEE ALSO section and
1273 fixed 2 typos. [1018450]
1275 2005-02-28 Trond Myklebust <trond.myklebust@fys.uio.no>
1276 * utils/statd/rmtcall.c(statd_get_socket): If a port number is
1277 explicitly given, make sure to try to bind to that.
1279 2005-01-11 Chip Salzenberg <chip@pobox.com>
1281 * debian/changelog: Version 1.0.7-1.
1282 * debian/nfs-common.default (NEED_IDMAPD, NEED_GSSD):
1283 Disable by default, on advice of upstream.
1284 * debian/nfs-kernel-server.default (NEED_SVCGSSD):
1287 * utils/svcgssd/Makefile (predep): Symbolically link duplicated
1289 (distclean): Remove symlinks to duplicated files.
1291 2004-12-17 NeilBrown <neilb@cse.unsw.edu.au>
1294 * config.mk, configure.in: update version number, run autoconf
1295 * configure.in: require nfsidmap.h if gss is enabled.
1297 2004-12-10 NeilBrown <neilb@cse.unsw.edu.au>
1300 * config.mk, configure.in: update version number, run autoconf
1302 2004-12-10 Neil Brown <neilb@cse.unsw.edu.au>
1303 * README : note dependancy on kerberos, libevent, and nfsidmap
1304 * configure.in : fail if --enable-nfsv4 and libevent or
1305 libnfsidmap are missing.
1306 * configuyre.in: improve message if krb5 support is missing
1308 2004-12-06 Paul Clements <paul.clements@steeleye.com>
1309 * support/include/ha-callout.h: get return status from waitpid
1311 * support/include/ha-callout.h: don't ignore SIGCHLD while waiting
1312 for a callout to complete.
1313 * utils/statd/statd.c(sigusr): print current start when re-reading
1314 notify list due to SIGUSR1
1315 * utils/statd/svc_run.c(my_svc_run): call change_state when
1316 re-notifying clients.
1318 2004-12-06 Marc Eshel <eshel@almaden.ibm.com>
1319 * utils/statd/svc_run.c(my_svc_run): allow loop to exit when in
1321 *utils/statd/rmtcall.c(statd_get_socket): if a hostname is given
1322 to statd with -n, prefer it's IP address to the default for
1325 2004-12-06 Bruce Allan <bwa@us.ibm.com>
1326 * utils/mountd/auth.c(auth_reload) Clear the "my_client" cache on
1327 an auth_reload to avoid old data getting used.
1329 2004-12-03 NeilBrown <neilb@cse.unsw.edu.au>
1330 Release 1.0.7-pre1 for testing
1332 * config.mk, configure.in: update version number, run autoconf
1334 2004-12-03 Trond Myklebust <trond.myklebust@fys.uio.no>
1336 * utils/statd/statd.c(main): ignore SIGPIPE
1338 2004-11-22 "J. Bruce Fields" <bfields@fieldses.org>
1340 * tools/rpcdebug/rpcdebug.c: support aliases "nfsdebug" and
1341 "nfsddebug" and update flag names.
1342 * configure.in, nodist/* redhat/* nfs-utils.spec*: remove redhat
1343 specific files (as no-one actually uses them, especially not
1344 redhat), and the nodist /etc files (as they drift out-of-date, and
1345 the debian directory provides a suitable example.
1346 * utils/svcgssd_proc.c(get_ids): fix memory leak
1347 * utils/svcgssd/svcgssd_proc.c: Rely on count of the number of
1348 groups instead of using a special guard value to identify the end
1350 * utils/idmapd/idmapd.c: don't allow Default domain and anon-uid
1351 or -gid to be specified on command line.
1352 * utils/idmapd/idmapd.c: improve error messages
1353 * utils/idmapd/idmapd.c: Reopen nfsd files on sighup. Allows us
1354 to start up client side only (even when nfsd module not loaded),
1355 and then sighup later after insmodding nfsd module.
1356 * utils/idmapd/idmapd.c: Make sure we catch all errors on
1357 daemonizing by waiting for child to report succesfull startup
1359 * utils/idmapd/idmapd.c: Let libnfsidmapd parse the idmapd.conf
1360 file for the default domain, instead of doing that ourselves.
1361 * utils/gssd/gssd_proc.c: Make sure we get an error when a gssd
1363 * utils/gssd/gssd_proc.c: We were forgetting to restore the euid
1364 on certain failures, which meant gssd could get stuck in a state
1365 where it didn't have permissions to read the files in rpc_pipefs
1367 * utils/gssd/gssd_proc.c: Use libnfsidmapd to map gss principals
1369 * debian/nfs-kernel-server.default: Document the NEED_SVCGSSD
1370 variable in /etc/default/nfs-kernel-server.
1373 2004-11-22 NeilBrown <neilb@cse.unsw.edu.au>
1375 * utils/exportfs/nfsd.man: corrected typo in .BR macro usage -
1376 reported by Eric Raymond
1378 2004-10-19 "J. Bruce Fields" <bfields@fieldses.org>
1380 * support/gssapi/* support/rpc/* utils/gssd/* utils/svcgssd/* etc
1381 initial support for GSSAPI authentication
1383 2004-09-15 Neil Brown <neilb@cse.unsw.edu.au>
1385 * utils/statd/monitor.c(sm_unmon_1_svc): is RESTRICTED_STATD, then
1386 check IP address and force my_name to 127.0.0.1 to match
1387 what happens in sm_mon_1_svc. This avoid spurious "erroneous
1389 * utils/statd.monitor.c(sm_unmon_all_1_svc): likewise
1391 2004-09-15 "J. Bruce Fields" <bfields@fieldses.org>
1393 * Assorted changes to support "gss/*" style authentication
1394 * utils/idmapd: new idmapd daemon for nfsv4 username lookup
1396 2004-09-06 Trond Myklebust <trond.myklebust@fys.uio.no>
1397 Neil Brown <neilb@cse.unsw.edu.au>
1399 * utils/mountd/auth.c(auth_authenticate_internal): fix
1400 uninitialsed variable problem (causes bad error messages).
1402 2004-09-06 Paul Clements <paul.clements@steeleye.com>
1403 Neil Brown <neilb@cse.unsw.edu.au>
1405 * utils/mountd/mountd.c(main): support --ha-callout (-H) for
1406 specifying a callout program
1407 * utils/mountd/rmtab.c: Call ha_callout on mount/unmount
1408 * utils/statd/monitor.c: Call ha_callout on add/del client
1409 * utils/statd/rmtcall.c: as above
1410 * utils/statd/statd.c: handle --ha-callout (-H)
1411 * utils/statd/svc_run.c: call notify_hosts is we have received a
1413 * support/include/ha-callout.h: define ha_callout function
1416 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
1417 * utils/mountd/cache.c(cache_process_req): clear fd after
1418 processing so as not to confused libc/sunrpc into thinking
1419 it need to do something with that fd.
1421 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
1423 * debian/nfs-kernel-server.init(start,stop) mount the nfsd
1424 filesystem, if available, before starting nfs services, and
1425 unmount it afterwards.
1426 * etc/nodist/nfs-server: ditto
1427 * etc/redhat/nfs.init: likewise
1428 * etc/redhat/nfs: add "MOUNT_NFSD" flag to control above.
1430 2004-06-08 NeilBrown <neilb@cse.unsw.edu.au>
1432 * utils/exportfs/exportfs.c: Don't rmtab_read if new_cache, it
1434 * support/nfs/cacheio.c(cache_flush): Change order in which caches
1435 are flushed so that dependancies don't keep things in the cache
1438 2004-03-18 Chip Salzenberg <chip@pobox.com>
1440 * debian/changelog: Version 1.0.6-2.
1442 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
1443 from "J. Bruce Fields" <bfields@fieldses.org>
1445 * utils/mountd/cache.c: call auth_reload to make sure auth data is
1446 current before responding to kernel upcall.
1448 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
1449 Based on patch from Greg Banks <gnb@melbourne.sgi.com>
1451 * utils/exportfs/exports.man: Document fsid= option.
1453 2003-09-15 NeilBrown <neilb@cse.unsw.edu.au>
1457 * rules.mk: Add dep: rule when no OBJS, so "make dep" works in
1458 support/include, and depend in "predep"
1459 * support/export/Makefile, tools/rpcgen/Makefile,
1460 utils/statd/Makefile: add "predep" rule so that "make dep" works.
1461 * Makefile: allow a simple "make" to run ./configure and "make dep"
1463 * configure.in, nfs-utils.spec: Update version to 1.0.6
1466 2003-09-12 Chip Salzenberg <chip@pobox.com>
1468 * debian/changelog: Version 1.0.6-1.
1470 2003-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1472 * utils/mountd/mountd.c(main): Impose FD_SETSIZE as an upper limit
1474 * utils/statd/statd.c(main): Ditto.
1476 michael <michael@newdream.net> discovered that svc_setreqsize
1477 in glibc can segfault if RLIMIT_NOFILE is bigger than
1478 FD_SETSIZE, so a simple solution is to impose a hard limit.
1480 2003-09-09 Chip Salzenberg <chip@pobox.com>
1482 * debian/changelog: Version 1.0.5-3.
1483 * support/export/hostname.c (get_reliable_hostbyaddr): Fix crash
1484 on invalid reverse DNS.
1485 * utils/showmount/showmount.c (main): Fix inet_ntoa() parameter.
1486 * tools/rpcgen/rpc_cout.c (print_header): Remove unused vars.
1487 * tools/rpcgen/rpc_parse.c (def_union): Likewise.
1489 2003-08-22 Chip Salzenberg <chip@pobox.com>
1491 * utils/statd/{log.h,log.c}: Rename log() to note() and L_* to
1492 N_*, to avoid conflict with ISO C built-in log() function.
1493 * utils/statd/*.c: Use note().
1495 2003-08-20 Chip Salzenberg <chip@pobox.com>
1497 * debian/changelog: Version 1.0.5-2.
1499 2003-08-11 NeilBrown <neilb@cse.unsw.edu.au>
1501 * utils/mountd/cache.c(cache_get_filehandle): close the filehandle
1504 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
1506 * support/include/nfs/export.h, support/nfs/exports.c,
1507 utils/exportfs/exports.c, utils/mountd/mountd.c: change
1508 NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT to avoid confusion with older
1509 meaning. Also remove meaningless
1510 NFSEXP_{UIDMAP,KERBEROS,SUNSECURE}
1512 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
1514 * support/export/xtab.c, support/include/nfslib.h,
1515 support/nfs/cacheio.c, support/nfs/nfssvc.c,
1516 utils/exportfs/exportfs.c, utils/exportfs/exportfs.man,
1517 utils/exportfs/nfsd.man, utils/mountd/cache.c: support
1518 /proc/fs/nfsd/* as a perferred alternate to /proc/fs/nfs/*
1519 (nfs-utils-1.0.5-post2)
1521 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
1523 * support/nfs/nfsexport.c: open channel file O_WRONLY when
1525 * utils/mountd/cache.c: maintain mountlist when new_cache is
1526 active. Also use O_WRONLY for channel files.
1527 * utils/mountd/mountd.h: mountlist_{del,add} now take a host name
1528 rather than an nfs_export.
1529 * utils/mountd/rmtab.c: ditto.
1530 (nfs-utils-1.5.0-post1)
1532 2003-07-24 Chip Salzenberg <chip@pobox.com>
1534 * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
1535 use Debian security team's cleaner approach.
1536 * debian/changelog: Version 1.0.5-1.
1537 * debian/nfs-kernel-server.init: Cosmetic changes.
1539 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
1542 1.0.4 was a bit of a brown-paper-bag-release because of the extra
1543 'free' in auth.c. So I'm releasing this just a few days later.
1545 * support/nfs/cacheio.c(cache_flush): Correct test for 'open
1547 * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
1548 check if new_cache is enabled, error if not, flush and exit if it
1550 * utils/exportfs/exportfs.man: Explain -f option and explain the
1551 two different modes that exportfs can work in.
1552 * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
1553 option wasn't given.
1554 * utils/mountd/mountd.man: Record the change if default behaviour
1556 * configure.in, nfs-utils.spec: update version to 1.0.5 and
1559 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
1561 * utils/mountd/mountd.c(main): getopt string fix for 'o'
1562 * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
1563 * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
1565 * support/include/nfs/export.h: Reserve a bit for possible ACL
1568 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
1570 * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
1571 assorted changed to cope with section 7 of the manual.
1572 * configure.in, nfs-utils.spec: Update version to 1.0.4
1575 This is a 'pre-release' for 1.1.0 Hopefully 1.1.0 will be the
1576 baseline for 2.6 and 2.8. I.e. it should continue to work right
1577 through the 2.8 (or 3.0) kernel series. Previous releases wont.
1579 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>
1580 Steve Dickson <SteveD@redhat.com>
1583 * utils/statd/statd.c: create a pidfile with pid of statd, and
1584 truncate it when statd exists.
1585 * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
1586 and warn if this is root.
1587 * utils/statd/statd.c: when statd forks, connect child to parent
1588 with a pipe, and send a byte down the pipe once the child is
1590 * Makefile: create and chown sm, sm.bak, state when "make install"
1591 * configure.in: add --with-statduser= option which defaults to
1592 "rpcuser" or "nobody"
1593 * config.mk.in: pass "statduser" through to Makefile
1595 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
1597 * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
1598 used as the size was changed somewhere in 2.5.60-2.5.70. Without
1599 this nfs-utils compiles against 2.6 headers will not work on a
1602 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
1604 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
1605 set number of threads by writing to there. This means it will
1606 still work when the syscall interface goes away in 2.7.
1608 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
1609 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
1611 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
1612 so as to only export the wildcard exports that were asked for.
1613 * support/export/export.c(export_allowed): changed to return the
1614 nfs_export rather than a "struct exportent", as m_changed is
1616 * support/export/rmtab.c(rmtab_read): modified to deal with
1617 interface change for export_allowed(), and enhanced to preserve
1618 m_changed flag when a wild-card export causes the creation of
1619 a non-wildcard export.
1621 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
1622 Steve Dickson <SteveD@redhat.com>
1624 * utils/mountd/mountd.man: Add valid kinds of debugging.
1625 * utils/mountd/mountd.c(main): ignore SIGPIPE
1626 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
1627 we don't get warnings about unavailable stats that weren't asked
1630 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
1632 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
1633 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
1634 'forever', so things disappear out of the cache rather than just
1637 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
1639 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
1642 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
1644 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
1645 etc/redhat/nfs.init: when checking if V3 is supported, make sure
1646 nfs server 'knows' about 127.0.0.1 first.
1648 2003-06-10 Chip Salzenberg <chip@pobox.com>
1650 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
1651 * debian/changelog: Version 1.0.3-2.
1653 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
1654 NeilBrown <neilb@cse.unsw.edu.au>
1656 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
1657 long long to avoid overflow when printing stats.
1659 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
1661 * support/export/export.c, support/include/nfslib.h,
1662 support/nfs/export.c, utils/exportfs/exportfs.c,
1663 utils/mountd/mountd.c: new export option "mountpoint"
1664 If no path is given, then the export point must be a
1665 mount point, or it won't be exported. If a path is
1666 given (e.g. mountpoint=/path) then that path must be
1667 a mountpoint or the exportpoint won't be exported.
1668 * utils/exportfs/exportfs.man: document mountpoint option.
1669 * support/misc/mountpoint.c: New file with is_mountpoint()
1670 to determine if something is a mountpoint.
1672 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
1674 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
1675 argument as we might not be getting the filehandle for the
1677 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
1678 cache_get_filehandle.
1679 * utils/mountd/mountd.c(get_rootfh): check export point and
1680 requested directory are on the same filesystem, and complain if
1683 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
1685 * utils/mountd/auth.c(auth_authenticate_internal): make sure
1686 portnumber is still checked when using new cache lookup.
1688 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
1690 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
1691 Don't actually talk to kernel when new cache is in effect, except
1693 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
1694 * support/export/xtab.c: Only rename new xtab into place if it has
1695 changed, thus preserving modify date for exportfs to use when
1697 * support/nfs/cacheio.c: Add cache_flush
1698 * support/export/xtab.c: Only rename new xtab into place if it has
1699 changed, thus preserving modify date for exportfs to use when
1702 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
1704 * support/export/client.c: Add client_compose, client_member to
1705 handle new composite client names
1706 * support/include/exportfs.h: Declare above functions.
1707 * utils/mountd/auth.c: use client_compose to determine calling
1708 client if new cache is being used.
1709 * utils/mountd/auth.c: call cache_export to export a filesystem if
1710 new_cache, check if new cache is used, and call my_svc_run instead
1712 * utils/mountd/svc_run.c: new file defining my_svc_run
1713 * utils/mountd/cache.c: new file for handling cache upcalls.
1714 * support/nfs/cacheio.c(check_new_cache): new function to check if
1715 new cache should be used.
1718 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
1720 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
1721 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
1722 * utils/exportfs/exportfs.c(dump): ditto
1724 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
1726 * support/export/hostname.c(get_reliable_hostbyaddr): new function
1727 to get host name from address with full checking of authenticity.
1728 * support/include/misc.h: declare above function
1729 * utils/mountd/auth.c(auth_authenticate_internal): remove all
1730 logic for authenticating address.
1731 * utils/mountd/auth.c(auth_authenticate): call new
1732 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
1735 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
1737 * tools/rpcgen/rpc_main.c(find_cpp): removed
1738 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
1739 then try hard-coded paths.
1741 2003-03-26 Chip Salzenberg <chip@pobox.com>
1743 * debian/changelog: Version 1.0.3-1.
1745 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
1747 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
1748 "const char*", not "char*".
1750 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
1752 * configure.in (VERSION): Set to "1.0.3".
1753 * nfs-utils.spec: Likewise.
1754 * configure: Regenerated.
1756 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
1758 * support/nfs/cacheio.c: New File - support for read/writing
1759 to export cache in /proc/rpc/*/channel
1760 * support/nfs/Makefile: compile cacheio.c
1761 * support/include/nfslib.h: declare cacheio.c functions
1762 * support/nfs/nfsexport.c: export and unexport through
1763 /proc/rpc/*/channel if possible, as old syscall interface
1764 may not survive into 2.6 on all architectures.
1766 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
1767 Ben Leslie <benno@sesgroup.net>
1769 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
1770 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
1771 former would incorectly ignore defport if the application
1772 explicitly set __rpcfdtype. The later is sufficient to avoid the
1773 special handling in the case where stdin is an internet socket.
1775 * utils/mountd/mountd.c(main): Add 'n' to option list in
1776 getopt_long as this is a short form of --no-tcp which want being
1779 2003-02-12 Chip Salzenberg <chip@pobox.com>
1781 * debian/changelog: Version 1.0.2-2.
1783 2002-11-27 Chip Salzenberg <chip@pobox.com>
1785 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
1786 overflow bug. Reformat per rest of source file.
1788 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
1790 * utils/exportfs/exports.man: Correct notes about whether the wild
1791 card characters match a period. They do.
1793 2002-10-15 Juan Gomez <juang@us.ibm.com>
1795 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
1797 (mountlist_add): Call slink_safe_rename instead of rename.
1799 2002-10-11 H.J. Lu <hjl@lucon.org>
1801 * support/include/exportfs.h (export_errno): New.
1803 * support/nfs/exports.c: Include <errno.h>.
1804 (export_errno): New.
1805 (getexportent): Set export_errno to EINVAL for bad option.
1806 (parseopts): Likewise.
1807 Report the location of the default sync/async option.
1809 * utils/exportfs/exportfs.c (main): Initialize export_errno to
1810 0. Return export_errno.
1812 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
1813 NeilBrown <neilb@cse.unsw.edu.au>
1815 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
1816 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
1818 2002-09-16 Chip Salzenberg <chip@pobox.com>
1820 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
1822 2002-09-15 Chip Salzenberg <chip@pobox.com>
1824 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
1825 socket, as occurs when run from sshd.
1826 * debian/changelog: Version 1.0.2-1.
1828 2002-09-12 H.J. Lu <hjl@lucon.org>
1830 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
1833 2002-09-12 H.J. Lu <hjl@lucon.org>
1835 * configure.in: Remove checking svctcp_socket and svcudp_socket.
1836 * configure: Regenerated.
1838 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
1839 (HAVE_SVCUDP_SOCKET): Removed.
1841 * support/include/nfslib.h: Undo the last change.
1843 2002-09-12 H.J. Lu <hjl@lucon.org>
1845 * support/include/nfslib.h (svctcp_socket): Protect it with
1847 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
1849 2002-09-12 H.J. Lu <hjl@lucon.org>
1851 * configure.in (VERSION): Set to "1.0.2".
1852 * configure: Regenerated.
1853 * nfs-utils.spec: Likewise.
1855 2002-09-12 H.J. Lu <hjl@lucon.org>
1857 * configure.in: Check svctcp_socket and svcudp_socket.
1858 * configure: Regenerated.
1860 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
1861 (HAVE_SVCUDP_SOCKET): New.
1863 * support/include/nfslib.h (svctcp_socket): New.
1864 (svcudp_socket): New.
1866 * support/nfs/Makefile (OBJS): Add svc_socket.o.
1868 * support/nfs/svc_socket.c: New.
1870 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
1871 svcudp_socket if port is unspecified.
1873 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
1875 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
1876 (killer): New. Signal handler to unregister.
1877 (main): Use killer. Call svcudp_socket to get the default
1880 2002-09-02 Juan Gomez <juang@us.ibm.com>
1881 NeilBrown <neilb@cse.unsw.edu.au>
1883 Add -N option to statd to run in notify-only mode.
1885 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
1886 * utils/statd/statd.man: document -N
1887 * utils/statd/statd.c: enabled -N, largely exists but needed to be
1888 uncommented and completed
1890 2002-09-02 Juan Gomez <juang@us.ibm.com>
1891 NeilBrown <neilb@cse.unsw.edu.au>
1893 statd to have " -P directory" arg to use that directory instead
1894 of /var/lib/nfs. This is useful for fail-over clusters.
1896 * utils/statd/statd.h: define SM_DIR etc as var, not const.
1897 * utils/statd/statd.c: define "-P" option to set SM_*
1899 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
1900 a constant any more.
1901 * utils/statd/notify.c: ditto.
1902 * utils/statd/statd.man: document -P option.
1904 2002-08-26 Chip Salzenberg <chip@pobox.com>
1906 * utils/nfsd/nfsd.man: Fix typo.
1907 * debian/changelog: Version 1.0.1-1.
1909 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
1911 * let parseopts know if /etc/exports was being read or not,
1912 and have it only print "no sync or async" warning in that case.
1914 2002-05-06 Tom McNeal <trmcneal@attbi.com>
1915 NeilBrown <neilb@cse.unsw.edu.au>
1917 * utils/nfsstat/nfsstat.c: Handle differing format for
1918 /proc/net/rpc/nfsd between pre and post 2.4.0
1920 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
1921 James Pearson <james-p@moving-picture.com>
1923 * support/nfs/rmtab.c(fendrmtabent): sync changes to
1924 storage before returning, as this is critical state
1926 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
1927 H.J. Lu <hjl@lucon.org>
1929 * etc/redhat/nfs: New.
1931 2002-04-08 H.J. Lu <hjl@lucon.org>
1933 * etc/redhat/nfs.init: Updated.
1935 * nfs-utils.spec.in: Updated.
1936 * nfs-utils.spec: Regenerated.
1938 * utils/mountd/mountd.c (longopts): Fix a typo.
1940 * utils/mountd/mountd.man: Updated.
1942 2002-04-07 H.J. Lu <hjl@lucon.org>
1944 * etc/redhat/nfslock.init (restart): Just do stop and start.
1946 * etc/redhat/nfs.init: Fix a typo.
1948 2002-04-07 H.J. Lu <hjl@lucon.org>
1950 * configure.in (VERSION): Set to "1.0.1".
1951 * configure: Regenerated.
1952 * nfs-utils.spec: Likewise.
1954 * README: Updated for 1.0.1.
1956 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
1957 H.J. Lu <hjl@lucon.org>
1959 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
1961 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
1962 NeilBrown <neilb@cse.unsw.edu.au>
1964 Add support for fsid=nn export option so that device
1965 numbers don't go in filehandles.
1966 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
1967 is set, pass the fsid in-place of the device number
1968 * support/nfs/exports.c: parse and print fsid= option.
1969 Also check if efname has been set, and use "command line"
1970 instead in error messages.
1971 Also, use strtol instead of atoi for anon[ug]id= so that
1972 bad numbers cause errors.
1974 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
1975 NeilBrown <neilb@cse.unsw.edu.au>
1977 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
1978 flag so that "sync" becomes the default.
1979 Check that either "sync" or "async" is given as an option
1980 and warn if neither are present
1981 * utils/exportfs/exports.man: change documentation for "sync"
1982 to be documentation for "async".
1983 * utils/exportfs/exportfs.man: note that "sync" is the default
1987 2002-01-02 Chip Salzenberg <chip@pobox.com>
1989 * support/export/nfsctl.c (expsetup): Don't export entries that
1990 specify id mappings not supported by the kernel. No extant kernel
1991 supports any significant mapping, only 'identity' (i.e. none).
1992 When other mappings are supported, this code will need changing.
1993 * debian/changelog: Version 1.0-2.
1995 2001-12-26 Chip Salzenberg <chip@pobox.com>
1997 * nfs-utils.spec (Version): Set to "1.0".
1998 * configure.in (VERSION): Likewise.
1999 * configure: Regenerated.
2000 * README: Rewritten.
2001 * debian/changelog: Version 1.0-1.
2003 * utils/exportfs/exports.man: Emphasize the need for options to
2004 immediately follow client names. Explain that wildcards don't
2005 usually work on addresses, but may work when reverse DNS fails.
2006 Comment out a leftover TP that was TPing our indentation.
2007 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
2008 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
2009 * debian/changelog: Version 0.3.3-6.
2011 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
2013 * support/export/client.c(client_lookup): If a host has multiple
2014 IP addresses, then we must always use the result of a
2015 gethostbyname, not that of gethostbyaddr for exporting
2017 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
2019 * support/export/client.c (client_lookup): use strcasecmp when
2020 comparing host names
2021 * support/nfs/export.c (getexportent): add fromkernel arg and use
2022 different defaults as kernels prior to 2.4.11 assume different
2023 defaults in /proc/fs/nfs/exports
2024 * support/include/nfslib.h, support/export/export.c,
2025 support/export/xtab.c: support extra "fromkernel" arg for
2028 2001-12-13 Chip Salzenberg <chip@pobox.com>
2030 * debian/changelog: Version 0.3.3-5.
2032 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
2034 * support/nfs/xio.c (xskip): Call `xungetc' instead of
2035 `ungetc' to keep x_line more properly.
2037 2001-11-26 Chip Salzenberg <chip@pobox.com>
2039 * utils/showmount/showmount.c (main): Don't assume that strings
2040 starting with digits are IP addresses.
2041 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
2042 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
2043 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
2044 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
2045 man pages: We check host names *and* addresses with tcpwrappers.
2046 * debian/changelog: Version 0.3.3-4.
2048 2001-11-21 Chip Salzenberg <chip@pobox.com>
2050 * support/nfs/clients.c (cfname): Added: current clients file name.
2051 (setnfsclntent): Set it.
2052 ({get,end}nfsclntent, syntaxerr): Use it.
2053 * support/nfs/exports.c (efname): Added: current exports file name.
2054 (setnfsexportent): Set it.
2055 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
2056 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
2057 * debian/changelog: Version 0.3.3-3.
2059 2001-10-11 Chip Salzenberg <chip@pobox.com>
2061 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
2062 * debian/changelog: Version 0.3.3-2.
2064 2001-10-08 Chip Salzenberg <chip@pobox.com>
2066 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
2067 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
2068 * utils/mountd/mountd.man: Update paths to /var/lib.
2069 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
2071 2001-10-06 Preston Brown <pbrown@redhat.com>
2073 * utils/nfsstat/nfsstat.man: Updated.
2075 2001-09-24 H.J. Lu <hjl@lucon.org>
2077 * configure.in (VERSION): Set to "0.3.3".
2078 * configure: Regenerated.
2079 * nfs-utils.spec: Likewise.
2081 * README: Updated for 0.3.3.
2083 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
2085 Arrange that "exportfs -au" never does DNS lookup:
2087 * support/export/client.c (client_lookup) : add "canonical"
2088 flag which says that the hostname is known to be canonical, so
2091 * support/export/export.c (export_create) : add "canonical"
2092 flag to be passed down to client_lookup
2093 * support/export/export.c (export_lookup) : Likewise
2095 * support/export/xtab.c (xtab_read) : pass appropriate
2096 "canonical" flag to export_lookup and export_create:
2097 set if reading list of filesystems currently exports
2100 * support/export/export.c (export_read) : pass 0 as
2101 "canonical" flag to export_lookup and export_create
2102 * support/export/rmtab.s (rmtab_read) : Likewise
2104 * support/include/exportfs.h : redeclare various routines
2105 to have "canonical" flag
2107 * utils/exportfs/exportfs.c (main) : redo logic for
2108 "-au" to read in what is currently exported, but never even
2109 look at what "should" be exported.
2111 * utils/exportfs/exportfs.c (unexportall) : remove this
2112 routine. Functionality is completely included in
2115 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
2116 flag to zero in calls to export_lookup and export_create.
2119 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
2120 Anne Milicia <milicia@missioncriticallinux.com>
2122 * support/export/client.c (client_lookup) call gethostbyadd
2123 to make sure that we have a canonical hostname, even for
2125 * utils/exportfs/exportfs.c (exportfs) Likewise
2127 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
2129 * support/nfs/exports.c (putexportent): \octal quote any spaces
2131 * support/nfs/xio.c (xgettok): recognise double-quote and
2132 \octal quoting in path names
2133 * utils/exportfs/exports.man: document quoting conventions
2136 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
2138 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
2139 change from 2000-08-02: It causes problems if someone exports
2140 to both a hostname and IP addresses. nfs-utils must be
2141 consistant about the canonical name that it chooses.
2143 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
2144 H.J. Lu <hjl@lucon.org>
2146 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
2148 * utils/statd/statd.c (longopts): Add "name".
2149 (usage): Add "-n/--name".
2150 (main): Set MY_NAME with "-n/--name".
2152 * utils/statd/state.c (change_state): Set MY_NAME only if it
2155 * utils/statd/statd.man: Updated for "-n/--name".
2157 2001-07-26 H.J. Lu <hjl@lucon.org>
2159 * nfs-utils.spec (Release): Set to 8.
2161 2001-07-25 H.J. Lu <hjl@lucon.org>
2163 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
2166 2001-06-27 H.J. Lu <hjl@lucon.org>
2168 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
2170 2001-06-27 H.J. Lu <hjl@lucon.org>
2172 * utils/rquotad/rquota_server.c: Don't call statfs () for
2173 the block size. Use BLOCK_SIZE instead.
2175 2001-06-27 H.J. Lu <hjl@lucon.org>
2177 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
2178 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
2180 * configure.in (enable_nfsv3): Set to yes by default.
2181 (--enable-rquotad): Added
2182 (AC_PROG_CXX): Removed.
2183 (AC_OUTPUT): Add utils/Makefile.
2184 (CC_FOR_BUILD): Renamed from BUILD_CC.
2185 * configure: Regenerated.
2187 * utils/Makefile: Removed.
2189 * utils/Makefile.in: New.
2191 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
2193 (CC_FOR_BUILD): Renamed from BUILD_CC.
2194 * nfs-utils.spec: Regenerated.
2196 2001-06-15 Chip Salzenberg <chip@debian.org>
2198 * debian/changelog: Version 0.3.2-2.
2199 * debian/*.init: Minor fixes.
2201 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
2203 * etc/nodist/nfs-server: Fixed a bug where the script would
2204 disable mounts from NFSv3 clients if NFSv3 is present.
2206 2001-06-05 H.J. Lu <hjl@lucon.org>
2208 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
2209 (main): Support --descriptors/-o to set the limit of the number
2210 of open file descriptors.
2213 * utils/mountd/mountd.man: Updated for --descriptors/-o.
2215 2001-06-04 H.J. Lu <hjl@lucon.org>
2217 * nfs-utils.spec (Release): Set to 6.
2219 2001-05-28 H.J. Lu <hjl@lucon.org>
2221 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
2222 * utils/mountd/mountd.c (main): Likewise.
2223 * utils/nfsd/nfsd.c (main): Likewise.
2224 * utils/rquotad/rquota_svc.c (main): Likewise.
2226 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
2228 * support/export/client.c (client_check): Check IP address
2231 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
2233 * support/export/client.c (client_gettype): Treat `*' as
2236 2001-04-22 H.J. Lu <hjl@lucon.org>
2238 * nfs-utils.spec.in: Fix a typo.
2239 * nfs-utils.spec: Regenerated.
2241 2001-04-21 H.J. Lu <hjl@lucon.org>
2243 * nfs-utils.spec.in: Fix cross build.
2244 * nfs-utils.spec: Regenerated.
2245 (Release): Set to 5.
2247 2001-04-18 H.J. Lu <hjl@lucon.org>
2249 * nfs-utils.spec.in: Support cross build.
2250 * nfs-utils.spec: Regenerated.
2251 (Release): Set to 4.
2254 * config.guess: New.
2256 * config.mk.in (BUILD_CC): New.
2257 (CC): Set to $(BUILD_CC) if BUILD is defined.
2260 (RANLIB): Set to @RANLIB@.
2262 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
2263 * configure: Regenerated.
2265 * tools/rpcgen/Makefile (BUILD): Set to true.
2267 2001-04-01 Chip Salzenberg <chip@valinux.com>
2269 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
2270 redundant, and sometimes broken, declaration of svc_fdset;
2272 * support/nfs/rpcmisc.c (closedown): Likewise.
2274 2001-03-21 H.J. Lu <hjl@lucon.org>
2276 * nfs-utils.spec: Regenerated.
2277 (Release): Set to 3.
2279 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
2281 * utils/statd/statd.c (main): make sure file descriptors 0-2
2282 are open to /dev/null.
2284 2001-03-21 H.J. Lu <hjl@lucon.org>
2286 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
2287 * support/nfs/rpcmisc.c: Likewise.
2288 * utils/rquotad/rquota_svc.c: Likewise.
2289 * utils/rquotad/rquotad.man: Likewise.
2290 * utils/statd/Makefile: Likewise.
2291 * utils/statd/rmtcall.c: Likewise.
2292 * utils/statd/simulate.c: Likewise.
2293 * utils/statd/statd.c: Likewise.
2294 * utils/statd/statd.man: Likewise.
2296 2001-03-11 H.J. Lu <hjl@lucon.org>
2298 * configure.in (RELEASE): New. Default to 1, set by
2299 --with-release=XXX. Substitute nfs-utils.spec.
2300 * nfs-utils.spec.in (Release): Set to @RELEASE@.
2301 * configure: Regenerated.
2302 * nfs-utils.spec: Likewise.
2304 2001-03-11 H.J. Lu <hjl@lucon.org>
2306 * utils/rquotad/rquotad.man: Fix a typo.
2308 2001-03-11 H.J. Lu <hjl@lucon.org>
2310 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
2311 * support/nfs/rpcmisc.c: Likewise.
2312 * utils/rquotad/rquota_svc.c: Likewise.
2313 * utils/rquotad/rquotad.man: Likewise.
2314 * utils/statd/Makefile: Likewise.
2315 * utils/statd/rmtcall.c: Likewise.
2316 * utils/statd/simulate.c: Likewise.
2317 * utils/statd/statd.c: Likewise.
2318 * utils/statd/statd.man: Likewise.
2320 2001-03-10 H.J. Lu <hjl@lucon.org>
2322 * configure.in (VERSION): Set to "0.3.2".
2323 * configure: Regenerated.
2324 * nfs-utils.spec: Likewise.
2326 * README: Updated for 0.3.2.
2328 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
2330 * utils/rquotad/rquotad.man: Updated for -p.
2331 * utils/statd/statd.man: Likewise.
2333 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
2335 * support/nfs/rpcmisc.c: export makesock()
2337 * support/include/rpcmisc.h (makesock): Declared.
2339 * utils/rquotad/rquota_svc.c: added longopts, added support for
2340 specifying the port to bind to on the command line.
2342 * utils/statd/statd.c: ditto, also specify port used for
2343 outgoing connections.
2344 (do_regist): Removed.
2346 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
2347 get_socket. Make it extern.
2349 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
2350 instead of do_regist.
2352 * utils/statd/Makefile (LIBS): link with our own libnfs
2354 2001-03-09 H.J. Lu <hjl@lucon.org>
2356 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
2357 * etc/nodist/nfs-client: Likewise.
2359 2001-02-26 Chip Salzenberg <chip@valinux.com>
2361 * debian/changelog: Version 0.3.1-1.
2362 * Mention upstream source and license in copyright file.
2363 * Add build-Depends for debhelper and libwrap0-dev.
2365 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
2367 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
2368 * etc/nodist/nfs-client: Likewise.
2370 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
2372 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
2375 2001-02-17 Patrick J. LoPresti <patl@curl.com>
2377 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
2380 2001-02-14 H.J. Lu <hjl@lucon.org>
2382 * utils/statd/rmtcall.c: Include <time.h>.
2383 * utils/statd/svc_run.c: Likewise.
2385 2001-02-14 H.J. Lu <hjl@lucon.org>
2387 * configure.in (VERSION): Set to "0.3.1".
2388 * configure: Regenerated.
2389 * nfs-utils.spec: Likewise.
2391 * README: Updated for 0.3.1.
2393 2001-02-14 H.J. Lu <hjl@lucon.org>
2395 * support/nfs/rpcmisc.c: Include <time.h>.
2397 2001-02-14 Chip Salzenberg <chip@valinux.com>
2399 * debian/control: Change priority of nhfsstone package to 'extra'.
2401 2001-02-12 Chip Salzenberg <chip@valinux.com>
2403 * debian/changelog: Version 0.3-2.
2405 2001-02-02 H.J. Lu <hjl@lucon.org>
2407 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
2409 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
2410 out SO_SNDBUF/SO_RCVBUF.
2411 (rpc_init): Remove bufsize and remove socksz in calls to
2414 * utils/mountd/mountd.c (main): Remove bufsize in calls to
2417 2001-01-28 Chip Salzenberg <chip@valinux.com>
2419 * debian/changelog: Version 0.3-1.
2421 2001-01-25 H.J. Lu <hjl@lucon.org>
2423 * configure.in (VERSION): Set to "0.3".
2424 * configure: Regenerated.
2425 * nfs-utils.spec: Likewise.
2427 * README: Updated for 0.3.
2429 2001-01-25 H.J. Lu <hjl@lucon.org>
2431 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
2433 2001-01-20 Chip Salzenberg <chip@valinux.com>
2435 * support/include/xio.h (xgetc): Declare to return int.
2436 * support/nfs/xio.c (xgetc): Return int.
2437 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
2438 * utils/statd/statd.c (main): Use int for value of getopt.
2439 * debian/changelog: Version 0.2.1-5.
2441 2000-12-10 Chip Salzenberg <chip@valinux.com>
2443 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
2444 program and procedure numbers of kernel lockd's callback. Also,
2445 besides the old (and broken) procedure #24, allow #16 per Trond.
2447 2000-12-03 Chip Salzenberg <chip@valinux.com>
2449 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
2450 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
2451 * debian/changelog: Version 0.2.1-4.
2453 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
2455 * utils/mountd/auth.c (auth_authenticate): Log the bad path
2458 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
2460 * support/nfs/exports.c (getexportent): Check for host name
2461 without option, or options without hostname, and print a warning,
2462 as this is most likely a typo.
2464 2000-11-19 Chip Salzenberg <chip@valinux.com>
2466 * debian/control: Add dependency on portmap.
2467 * debian/changelog: Version 0.2.1-3.
2469 2000-11-10 H.J. Lu <hjl@lucon.org>
2471 * nfs-utils.spec.in: Don't use libtool.
2472 Add ChangeLog and COPYING to doc.
2473 * nfs-utils.spec: Rebuild.
2475 2000-11-09 H.J. Lu <hjl@lucon.org>
2477 * etc/redhat/nfs.init (start): Back out the last change.
2479 2000-11-09 H.J. Lu <hjl@lucon.org>
2481 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
2482 TCP is not supported by kernel.
2484 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
2486 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
2487 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
2489 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
2491 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
2493 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
2494 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
2495 callbacks to local lockd.
2497 2000-10-18 Scott McDermott <mcdermot@questra.com>
2499 * utils/exportfs/exports.man: Updated for CIDR netmask.
2501 2000-10-17 Scott McDermott <mcdermot@questra.com>
2503 * support/export/client.c (client_init): Support CIDR netmask
2506 2000-10-11 H.J. Lu <hjl@lucon.org>
2508 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
2509 * configure: Rebuilt.
2511 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
2513 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
2514 "/var/lib/nfs/state".
2516 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
2518 * utils/statd/statd.h (run_mode): New global bitmask of runtime
2519 behaviors: fg/bg, logging, etc.
2520 * utils/statd/statd.c: New command line options: -V -h -? -d .
2521 * utils/statd/statd.man: Update for changes to statd.
2523 * utils/statd/log.h (log_init): Remove parameter of function; use
2524 global variable "name_p" instead.
2525 * utils/statd/log.c: Add support for logging to stderr.
2527 * utils/statd/notlist.c: Partially rewrite notify list handling
2528 functions. Eliminate run-off-end-of-list bug when calling
2529 nlist_insert_timer. Add lots of comments.
2531 2000-09-27 H.J. Lu <hjl@lucon.org>
2533 * README: Updated for RedHat 7.0.
2535 2000-09-27 H.J. Lu <hjl@lucon.org>
2537 * nfs-utils.spec: Rebuild.
2539 2000-09-27 H.J. Lu <hjl@lucon.org>
2541 * README: Updated for 0.2.1.
2543 2000-09-27 H.J. Lu <hjl@lucon.org>
2545 * nfs-utils.spec.in: Updated to use rpm macros and support
2548 2000-09-25 H.J. Lu <hjl@lucon.org>
2550 * configure.in (VERSION): Set to "0.2.1".
2551 * configure: Regenerated.
2552 * nfs-utils.spec: Updated.
2554 2000-09-25 H.J. Lu <hjl@lucon.org>
2556 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
2557 non-NULL hostent is always returned.
2559 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
2561 * etc/redhat/nfslock.init: don't kill lockd processes that do not
2562 have an executable (i.e. kernel threads)
2564 2000-09-01 H.J. Lu <hjl@lucon.org>
2566 * README: Updated for 0.2.
2568 2000-09-01 Jay Weber <jweber@valinux.com>
2570 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
2571 supporting version 3 of nfs if available, else it will fall back to
2572 version 2 support only.
2574 2000-08-30 H.J. Lu <hjl@lucon.org>
2576 * configure.in (VERSION): Set to "0.2".
2577 * configure: Regenerated.
2578 * nfs-utils.spec: Updated.
2580 2000-08-25 H.J. Lu <hjl@lucon.org>
2582 * support/misc/tcpwrapper.c (logit): Modify the log output.
2584 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
2586 * utils/rquotad/rquotad.man, utils/statd/statd.man,
2587 utils/mountd/mountd.man: updated
2589 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
2590 * utils/rquotad/Makefile: fix comment
2592 * support/misc/tcpwrapper.c (logit): added comment about waiting
2593 for the children after fork()
2595 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
2596 zombies behind (from logit()'s fork)
2597 * utils/rquotad/rquota_svc.c (main): ditto
2598 * utils/statd/statd.c (main): ditto
2600 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
2601 to check_default instead of 0, for prognum
2603 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
2604 to check_default instead of 0, for prognum
2606 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
2607 HAVE_TCP_WRAPPER is defined.
2608 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
2609 defined. Reject an RPC call if check_default () fails.
2611 2000-08-25 H.J. Lu <hjl@lucon.org>
2613 * support/include/tcpwrapper.h: New for the tcp wrapper
2615 * support/misc/Makefile: Likewise.
2616 * support/misc/from_local.c: Likewise.
2617 * support/misc/tcpwrapper.c: Likewise.
2619 * aclocal.m4 (AC_TCP_WRAPPER): New.
2620 * configure.in: Use it. Substitute LIBWRAP.
2621 * configure: Rebuilt.
2623 * config.mk.in (LIBNSL): New.
2624 (LIBWRAP): Likewise.
2626 * support/Makefile (SUBDIRS): Add misc.
2628 * support/lib/Makefile (LIBS): Add libmisc.a.
2630 * utils/rquotad/Makefile (LIBS): Add
2632 -lmisc $(LIBWRAP) $(LIBNSL)
2634 * utils/statd/Makefile (LIBS): Likewise.
2636 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
2637 HAVE_TCP_WRAPPER is defined.
2638 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
2639 defined. Reject an RPC call if check_default () fails.
2641 * utils/statd/statd.c: Include "tcpwrapper.h" if
2642 HAVE_TCP_WRAPPER is defined.
2643 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
2644 check_default () before calling sm_prog_1 (). Define it as
2645 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
2647 2000-08-25 Chip Salzenberg <chip@valinux.com>
2649 * debian/*: Complete Debian build support.
2650 * etc/debian/*: Remove.
2652 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
2654 * support/export/client.c(client_check): removed the "dot+1" as a
2655 ypdomain argument to innetgr as this is entirely bogus.
2656 It should always be NULL.
2658 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
2660 * support/export/xtab.c(xtab_read): introduce new mode for
2661 reading xtab. i.e. a list of exports that might be known to the
2662 kernel, or might not. These are flagged as m_exported == -1
2663 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
2664 value "2" for xtab, meaning don't trust this too much.
2665 * support/include/exportfs.h(struct mexport): changed m_exported
2666 from one bit to an int so that it can hold new value
2667 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
2668 kernel if it is uncertain whether the kernel knows (m_exported == -1)
2669 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
2672 * support/nfs/xio.c(xflock): added O_CREAT when getting
2673 a write lock so that missing files aren't fatal.
2675 * etc/debian/nfs-common: new file from "potato"
2676 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
2678 2000-08-09 H.J. Lu <hjl@lucon.org>
2680 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
2681 startup to ensure all existing clients work fine.
2683 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
2684 to xtab_read () for reading _PATH_XTAB.
2686 2000-08-02 H.J. Lu <hjl@lucon.org>
2688 * utils/mountd/auth.c (auth_authenticate_internal): Try to
2689 avoid the reverse name lookup.
2691 2000-07-04 H.J. Lu <hjl@lucon.org>
2693 * utils/statd/log.c: Include <stdlib.h> for exit ().
2695 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
2698 2000-07-04 H.J. Lu <hjl@lucon.org>
2700 * configure.in (VERSION): Set to "0.1.9.1".
2701 * configure: Regenerated.
2702 * nfs-utils.spec: Updated.
2706 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
2708 * support/export/hostname.c (hostent_dup): Handle the NULL
2711 2000-07-03 H.J. Lu <hjl@lucon.org>
2713 * README: Update the util-linux requirement.
2715 2000-07-03 H.J. Lu <hjl@lucon.org>
2717 * configure.in (VERSION): Set to "0.1.9".
2718 * configure: Regenerated.
2719 * nfs-utils.spec: Updated.
2723 2000-07-03 H.J. Lu <hjl@lucon.org>
2725 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
2726 stop to ensure all clients can still access the server
2727 before it is shutdown.
2729 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
2731 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
2732 calls with format string.
2734 2000-06-28 Chip Salzenberg <chip@valinux.com>
2736 * utils/statd/log.c (log): Call syslog with format string.
2738 2000-06-27 H.J. Lu <hjl@lucon.org>
2740 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
2741 instead of OPEN_MAX.
2743 2000-06-27 H.J. Lu <hjl@lucon.org>
2747 2000-06-27 H.J. Lu <hjl@lucon.org>
2749 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
2750 startup to ensure all existing clients are exported.
2752 * configure.in (VERSION): Set to "0.1.8.2".
2753 * configure: Regenerated.
2754 * nfs-utils.spec: Updated.
2756 2000-06-06 H.J. Lu <hjl@lucon.org>
2758 * configure.in (VERSION): Set to "0.1.8.1".
2759 * configure: Regenerated.
2760 * nfs-utils.spec: Updated.
2762 2000-06-06 H.J. Lu <hjl@lucon.org>
2764 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
2765 to "struct sockaddr_in *" for glibc 2.2.
2766 (mount_umnt_1_svc): Likewise.
2767 (mount_umntall_1_svc): Likewise.
2768 (mount_export_1_svc): Likewise.
2769 (mount_exportall_1_svc): Likewise.
2770 (mount_pathconf_2_svc): Likewise.
2771 (get_rootfh): Likewise.
2773 2000-06-04 H.J. Lu <hjl@lucon.org>
2775 * etc/redhat/nfs.init: Fix a typo in comment.
2777 2000-05-31 H.J. Lu <hjl@lucon.org>
2779 * configure.in (VERSION): Set to "0.1.8".
2780 * configure: Regenerated.
2781 * nfs-utils.spec: Updated.
2785 2000-05-31 H.J. Lu <hjl@lucon.org>
2787 * configure.in (VERSION): Set to "0.1.7.5".
2788 * configure: Regenerated.
2789 * nfs-utils.spec: Updated.
2791 * support/include/nfslib.h (exportent): Add a new field,
2792 r_count, to count the number of mounts from a client.
2793 (getrmtabent): Take a new argument for position in file.
2794 (putrmtabent): Likewise.
2795 (fgetrmtabent): Likewise.
2796 (fputrmtabent): Likewise.
2797 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
2798 for position in file.
2799 (fgetrmtabent): Likewise.
2800 (putrmtabent): Likewise.
2801 (fputrmtabent): Likewise.
2803 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
2806 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
2807 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
2808 and fputrmtabent ().
2809 * utils/mountd/rmtab.c (mountlist_add): Likewise.
2810 (mountlist_del): Likewise.
2811 (mountlist_del_all): Likewise.
2812 (mountlist_list): Likewise.
2814 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
2815 for the existing entry and initialize "r_count" to 1.
2816 (mountlist_del): Decrement "r_count".
2818 2000-05-18 H.J. Lu <hjl@lucon.org>
2820 * configure.in (VERSION): Set to "0.1.7.4".
2821 * configure: Regenerated.
2822 * nfs-utils.spec: Updated.
2824 2000-05-18 H.J. Lu <hjl@lucon.org>
2826 * etc/redhat/nfs.init (restart): Just do stop and start.
2828 2000-05-09 Jay Weber <jweber@valinux.com>
2830 * utils/rquotad/hasquota.c: added support for ext3 recognition
2832 * utils/rquotad/mntent.h: Likewise.
2834 2000-05-01 H.J. Lu <hjl@lucon.org>
2836 * configure.in (VERSION): Set to "0.1.7.3".
2837 * configure: Regenerated.
2838 * nfs-utils.spec: Updated.
2840 2000-05-01 H.J. Lu <hjl@lucon.org>
2842 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
2843 mounting poins in /etc/fstab.
2845 2000-05-01 H.J. Lu <hjl@lucon.org>
2847 * configure.in (VERSION): Set to "0.1.7.2".
2848 * configure: Regenerated.
2849 * nfs-utils.spec: Updated.
2851 2000-05-01 H.J. Lu <hjl@lucon.org>
2853 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
2854 to check for the mounting point.
2856 2000-04-29 Chip Salzenberg <chip@valinux.com>
2857 Neil Brown <neilb@cse.unsw.edu.au>
2859 * Really re-use RPC ports.
2860 (Fixes earlier patch. Sorry, Neil.)
2862 2000-04-26 H.J. Lu <hjl@lucon.org>
2864 * configure.in (VERSION): Set to "0.1.7.1".
2865 * configure: Regenerated.
2866 * nfs-utils.spec: Updated.
2868 2000-04-26 H.J. Lu <hjl@lucon.org>
2870 * etc/redhat/nfslock.init: Check if lockd exits before killing
2873 2000-04-25 H.J. Lu <hjl@lucon.org>
2875 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
2877 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
2879 * support/nfs/exports.c (parsesquash): Correctly set the
2882 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
2884 * support/include/nfs/nfs.h: Removed knowledge of internals of
2885 kernel filehandles (which can change) and defined nfs_fh_size
2886 which has variable size
2888 * support/nfs/getfh.c: defined getfh_size to use new syscall to
2889 get variable sized file handles, and change getfh{,old} to
2892 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
2895 * tools/Makefile, tools/nlmtest/nlmtest.c
2896 nlmtest.c depended on internel format of file handles, so now
2900 2000-03-12 Chip Salzenberg <chip@valinux.com>
2901 Neil Brown <neilb@cse.unsw.edu.au>
2903 * support/nfs/rpcmisc.c (rpc_init): Share transports.
2905 2000-03-13 H.J. Lu <hjl@lucon.org>
2907 * etc/redhat/nfsd.init: Updated.
2909 * etc/redhat/nfslock.init: Updated.
2911 * nfs-utils.spec.in: Updated.
2913 * configure.in (VERSION): Set to "0.1.7".
2914 * configure: Regenerated.
2915 * nfs-utils.spec: Updated.
2919 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
2921 * utils/exportfs/exportfs.c (dump): Included printing of
2922 nohide, no_subtree_check, and insecure_locks
2924 2000-02-26 Chip Salzenberg <chip@valinux.com>
2926 * config.mk.in (INSTALLSUID): Strip ("-s").
2927 (INSTALLSCRIPT): Define.
2928 * utils/nhfsstone/Makefile: Use it.
2930 2000-02-26 Chip Salzenberg <chip@valinux.com>
2932 * utils/lockd/lockd.man: Create.
2933 * utils/lockd/Makefile: Install it.
2934 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
2935 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
2936 * utils/nhfsstone/Makefile: Install the helper scripts and
2938 * utils/exportfs/exports.man: Fix typo.
2940 2000-02-26 Chip Salzenberg <chip@valinux.com>
2942 * support/nfs/xio.c (xungetc): Decrement line number when
2943 character to unget is newline. Make first parameter int, so
2944 it can distinguish EOF from \377.
2945 * support/include/xio.h (xungetc): Adjust prototype.
2947 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
2949 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
2950 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
2951 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
2953 This is for supporting a new option introduced in 2.3.42
2955 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
2957 * COPYING: Added. GPL.
2959 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
2961 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
2962 to get the block size.
2964 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
2966 * nfs-utils.spec.in: Update ftp site.
2968 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
2970 * README: Update hostnames.
2972 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
2974 * configure.in (VERSION): Set to "0.1.6".
2975 * configure: Regenerated.
2976 * nfs-utils.spec: Updated.
2980 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
2982 * utils/mountd/auth.c (auth_authenticate_internal): Call
2983 xstrdup for hostname before passing it to gethostbyname.
2985 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
2988 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
2990 * README: Update the mailing list address.
2992 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
2994 * configure.in (VERSION): Set to "0.1.5".
2995 * configure: Regenerated.
2996 * nfs-utils.spec: Updated.
3000 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
3002 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
3005 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
3007 * configure.in (VERSION): Set to "0.1.4".
3008 * configure: Regenerated.
3009 * nfs-utils.spec: Updated.
3013 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
3015 * nfs-utils.spec.in: New file.
3017 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
3019 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
3021 1999-12-04 Chip Salzenberg <chip@valinux.com>
3023 * config.mk.in: Use $(CC) as set by configure.
3025 1999-12-04 Chip Salzenberg <chip@valinux.com>
3027 * rules.mk: Call $(MAKE) with $(MFLAGS).
3029 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
3031 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
3032 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
3034 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
3036 * nfs-utils.spec (Version): Set to 0.1.3.
3038 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
3039 * configure: Regenerated.
3043 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
3045 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
3046 (_PATH_DEV_DSK): Likewise.
3047 (getquotainfo): Match the mounting point from /etc/mtab
3048 instead of calling nfsmount_to_devname ().
3050 1999-11-24 Chip Salzenberg <chip@valinux.com>
3052 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
3053 to the new port 24 as well as the historical port 100021.
3055 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
3057 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
3058 stopping nfsd to stop spurious ESTALE on server shutdown.
3060 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
3062 * support/nfs/exports.c (parseopts): make copy of opt string
3063 before 'nul'ing out commas so that
3065 # exportfs -o option1,option2 hosta:/fs hostb:/fs
3067 applies both options to both exports.
3069 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
3071 * README: Fix a few typos.
3073 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
3075 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
3076 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
3077 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
3078 (unsigned_dec): Likewise.
3079 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
3080 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
3082 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
3084 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
3085 (unsigned_dec): Likewise.
3086 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
3087 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
3088 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
3090 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
3092 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
3093 * support/nfs/exports.c: added {no_,}subtree_check and changed
3095 * utils/exportfs/exports.man: added no_subtree_check and nohide
3096 and removed irrelevant stuff from unfsd.
3097 * support/export/rmtab.c: rmtab_read didn't quite do the right
3098 thing if a pathname from rmtab was a subdirectory of an export-point
3100 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
3102 * README: Updated ftp site.
3104 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
3106 * nfs-utils.spec (Version): Set to 0.1.2.
3108 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
3109 * configure: Regenerated.
3113 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
3115 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
3116 (auth_authenticate_internal): Check for NULL return on forward
3118 (auth_authenticate): Handle "no_forward_dns".
3120 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
3122 * Version 0.1.1 released.
3124 * nfs-utils.spec (Version): Set to 0.1.1.
3126 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
3127 * configure: Regenerated.
3131 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
3133 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
3135 (Provides): Likewise.
3137 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
3139 * Initial version 0.1 released.
3141 * configure.in (VERSION): Set to "nfs-utils 0.1".
3142 * configure: Regenerated.
3144 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
3146 * utils/mountd/mountd.c (get_exportlist): Cleanup.
3148 * utils/exportfs/exportfs.c (unexport_all): Unexport from
3149 kernel only if the entry is exported to kernel.
3150 (unexportfs): Likewise.
3152 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
3154 1/ utils/mountd/rmtab.c::mountlist_list
3156 This routine stats the rmtab file to see if it has changed. It
3157 if has, it cleans up it's old copy of the data. But it still
3158 always re-read the file, thus returning multiple copies of the
3159 data on consecutive calls without intervening changes.
3160 "Showmount -a" didn't show this as it appears to sort/unique the
3161 data, but 'strace showmount -a' showed that the size of the
3162 datagram that it received grew.
3164 I moved the getrmtabent loop inside the mtime test.
3166 2/ utils/exportfs/exportfs.c
3168 Many routines used the m_path field of m_export instead of
3170 According to the comment in nfslib.h, m_path should only
3171 be used when processing a mount request (i.e. in mountd)
3172 where the mountpoint may be a subdirectory of the export point.
3174 I changed all occurances of m_path to e_path
3177 3/ utils/exportfs/exportfs.c:main
3179 extra arguments are not meaningful with -a or -r, but
3180 exportfs accepted them and then ignored the -a/-r, expect that
3181 -r would still unexport everything first.
3183 I generate an error if there are extra args and f_all
3185 4/ utils/exportfs/exportfs.c:main
3186 extract dump out as a special case.
3188 5/ utils/exportfs/exportfs.c
3189 made f_reexport a local variable.
3192 6/ utils/exportfs/exportfs.c:main,exportall
3194 support/export/rmtab.c
3195 only mayexport on newly created entries, don't set xtabent at all
3197 7/ support/include/nfslib.h
3199 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
3201 8/ support/export/xtab.c
3203 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
3207 9/ support/export/xtab.c
3209 xtab_mount_read now sets m_exported, and NOT
3210 xtabent and mayexport
3212 removed the append arguement from xtab_write as it was
3215 added is_export flag to xtab_write similar to xtab_read
3216 if is_export, only write entries with m_xtabent or m_addxtab
3217 if !is_export, only write entries with m_exported
3219 10/ support/export/export.c::export_allowed_internal
3221 added test for exp->m_mayexport, as the export tree
3222 may have entries that are no longer allowed to be exported,
3223 and so shouldn't caused deduced exported by rmtab_read
3225 11/ utils/exportfs/exportfs.c::main
3226 error checking of flags.
3228 12/ utils/exportfs/exportfs.c
3230 total rewrite of export and unexport logic.
3232 - build an exportslist of valid exports, based on
3233 current etab file and arguments,
3234 - read rmtab to instantiate relevant wild card entries
3235 - read etab to find out what is currently exported
3236 - synchronise intention with reality
3237 - write out etab and xtab
3240 discard the m_addxtab flag
3241 add m_changed flag so we know what to report in exportfs
3243 14/ utils/mountd/auth.c:auth_authenticate
3245 the value returned by gethostbyaddr was trusted.
3247 It now follows this with a call to gethostbyname
3248 and checks that the address is in the list.
3250 15/ support/export/nfsctl.c::cltsetup,expsetup
3252 force client names to lowercase as kernel is
3255 16/ quietened a few compiler warnings
3257 17/ support/export/client:client_lookup
3259 look for pre-existing client with same name before creating
3262 18/ support/include/exportfs.h
3264 The ordering of the MCL_* enum was:
3265 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
3267 I moved ANONYMOUS to the end.
3269 The ordering is significant when an export entry is being searched for to
3270 match a given address. There are two problems with ANONYMOUS being first.
3272 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
3273 then the ro case will always be found first and the privileged hosts won't get
3275 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
3276 export entry for the specific host, and writes it to xtab.
3277 When another request comes from the same host, the ANONYMOUS entry is found again,
3278 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
3279 again. If causes bloat in xtab.
3281 Putting ANONYMOUS at the end reflects it's nature as a catch-all
3283 19/ utils/exportfs/exportfs.man
3284 many updates to the man page to reflect changes to the code
3286 -----------------------
3292 - allow exportfs to modify rmtab file
3293 - make sure kernel never gets two clients with same IP address
3294 - possible kernel should reject
3295 - needs to be some way to lookup client in kernel by IP address
3296 - maybe get kernel to do case-insensitive comparisons on client names
3297 - remove unused clients from kernel
3299 - change etab to xtab and xtab to xtab.active
3301 - timestamp and/or statd-stamp in rmtab for removing old entries.
3303 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
3305 * linux-nfs: New directory.
3306 * linux-nfs/ChangeLog: Moved from ..
3307 * linux-nfs/INSTALL: Likewise.
3308 * linux-nfs/KNOWNBUGS: Likewise.
3309 * linux-nfs/NEW: Likewise.
3310 * linux-nfs/README: Likewise.
3311 * linux-nfs/THANKS: Likewise.
3312 * linux-nfs/TODO: Likewise.
3314 * Starting from knfsd 1.4.7.