| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
*utils/mountd/mountd.c:
mountd currently always returns AUTH_NULL and AUTH_SYS as the
allowable flavors in mount replies. We want it to also return gss
flavors when appropriate. For now as a hack we just have it always
return the KRB5 flavors as well.
*utils/mountd/cache.c:
When attempting to mount an NFSv4 pseudofilesystem (fsid=0) and the
actual exported directory does not exist on the server, rpc.mountd
doesn't check the directory exists (when fsidtype=1, i.e. using fsid,
but does check for fsidtype=0, i.e. using dev/ino). The non-existent
exported directory path with fsid=0 is written to the kernel via
/proc/net/rpc/nfsd.export/channel, which leads to path_lookup() to
return ENOENT (seems appropriate). Unfortunately, the new_cache
approach ignores errors returned when writing via the channel file so
that particular error is lost and the mount request is silently ignored.
Assuming it doesn't make sense to revamp the new_cache/up-call method to
not ignore returned errors, it seems appropriate to fix the case where
rpc.mountd doesn't check for the existence of an exported directory with
fsid= semantics. The following patch does this by moving the stat() up
so it is done for both fsidtype's. I'm not certain whether the other
tests need to be executed for fsidtype=1, but it doesn't appear to hurt
[Not exactly true: the comparison of inode numbers caused problems so
now it's kept for fsidtype=0 only].
Would it be also desirable to log a warning for every error, if any,
returned by a write to any of the /proc/net/rpc/*/channel files which
would otherwise be ignored (maybe under a debug flag)?
* gssd/mountd/svcgssd: Changes gssd, svcgssd, and mountd to ignore a
SIGHUP rather than dying.
* many: Remove the gssapi code and rely on an external library instead.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
overflow bug. Reformat per rest of source file.
|
|
|
|
|
|
| |
* utils/mountd/rmtab.c (slink_safe_rename): New. Support
symlink.
(mountlist_add): Call slink_safe_rename instead of rename.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* etc/redhat/nfs: New.
* etc/redhat/nfs.init: Updated.
* nfs-utils.spec.in: Updated.
* nfs-utils.spec: Regenerated.
* utils/mountd/mountd.c (longopts): Fix a typo.
* utils/mountd/mountd.man: Updated.
|
|
|
|
|
|
|
|
|
| |
* utils/exportfs/exports.man: Emphasize the need for options to
immediately follow client names. Explain that wildcards don't
usually work on addresses, but may work when reverse DNS fails.
* utils/mountd/mountd.man, utils/rquotad/rquotad.man,
utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
* debian/changelog: Version 0.3.3-6.
|
|
|
|
|
|
|
|
|
|
| |
* utils/showmount/showmount.c (main): Don't assume that strings
starting with digits are IP addresses.
* utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
/dev/null before nfssvc(). Use syslog to report nfssvc errors.
* support/misc/tcpwrapper.c, utils/mountd/mountd.man,
utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
man pages: We check host names *and* addresses with tcpwrappers.
|
|
|
|
|
| |
* utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
* debian/changelog: Version 0.3.3-2.
|
|
|
|
| |
* utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
|
| |
|
|
|
|
|
|
| |
change from 2000-08-02: It causes problems if someone exports
to both a hostname and IP addresses. nfs-utils must be
consistant about the canonical name that it chooses.
|
|
|
|
|
|
|
|
|
| |
* utils/mountd/mountd.c (longopts): Add "foreground/d".
(main): Support --foreground/-d to set the limit of the number
of open file descriptors.
(usage): Updated.
* utils/mountd/mountd.man: Updated for --foreground/-d.
|
|
|
|
|
|
|
| |
* utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
* utils/mountd/mountd.c (main): Likewise.
* utils/nfsd/nfsd.c (main): Likewise.
* utils/rquotad/rquota_svc.c (main): Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* support/include/rpcmisc.h (rpc_init): Remove bufsize.
* support/nfs/rpcmisc.c (makesock): Remove socksz and comment
out SO_SNDBUF/SO_RCVBUF.
(rpc_init): Remove bufsize and remove socksz in calls to
makesock ().
* utils/mountd/mountd.c (main): Remove bufsize in calls to
rpc_init ().
|
|
|
|
|
| |
* utils/mountd/auth.c (auth_authenticate): Log the bad path
warning.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
TCP is not supported by kernel.
* support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
* utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
(main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
* utils/mountd/mountd.man: Updated for "-n/--no-tcp".
|
|
|
|
|
| |
* utils/mountd/auth.c (auth_authenticate_internal): Make sure a
non-NULL hostent is always returned.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* utils/rquotad/rquotad.man, utils/statd/statd.man,
utils/mountd/mountd.man: updated
* utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
* utils/rquotad/Makefile: fix comment
* support/misc/tcpwrapper.c (logit): added comment about waiting
for the children after fork()
* utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
zombies behind (from logit()'s fork)
* utils/rquotad/rquota_svc.c (main): ditto
* utils/statd/statd.c (main): ditto
* utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
to check_default instead of 0, for prognum
* utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
to check_default instead of 0, for prognum
* utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
HAVE_TCP_WRAPPER is defined.
(mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
defined. Reject an RPC call if check_default () fails.
|
|
|
|
|
|
| |
kernel even if they are in here.
2/ O_CREAT [ex]log when locking for write incase they don't exist
3/ added etc/debian diretory with some files
|
|
|
|
|
| |
* utils/mountd/auth.c (auth_authenticate_internal): Try to
avoid the reverse name lookup.
|