summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.lockd/kern.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix build:delphij2012-05-231-1/+1
| | | | | | | - Use %ll instead of %q for explicit long long casts; - Use %j instead of %q in XFS and cast to intmax_t. Tested with: make universe
* Spelling fixes for usr.sbin/uqs2011-12-301-1/+1
|
* Fix the include path for nfs_lock.h.rmacklem2010-07-241-1/+1
| | | | MFC after: 2 weeks
* Don't use sys/nfs/rpcv2.h - it is part of the old kernel RPC implementationdfr2009-06-241-1/+0
| | | | and will be removed.
* o Style previous.maxim2006-08-171-2/+2
|
* Use setproctitle(3) to provide identification of the client and serverthomas2006-08-161-0/+2
| | | | | | processes created by rpc.lockd. MFC after: 1 week
* Move call to ignore SIGPIPE signals before calling fork(),rodrigc2006-05-271-1/+3
| | | | | | | | so that both parent and child processes ignore this signal. PR: bin/97768 Submitted by: Gea-Suan Lin <gslin at csie dot nctu dot edu dot tw> MFC after: 3 days
* Ignore SIGPIPE signals on write() failures.rodrigc2006-05-251-0/+1
| | | | | | | | | We already check for write() failures and handle EPIPE. Failure to handle SIGPIPE was resulting in rpc.lockd terminating. PR: bin/97768 Reported by: Gea-Suan Lin <gslin at csie dot nctu dot edu dot tw> MFC after: 1 day
* When a user is in more than 16 groups the call to authunix_create() willharti2005-11-171-1/+6
| | | | | | | | | result in abort() beeing called. This is because there is a limit of the number of groups in the RPC which is 16. When the actual number of groups is too large it results in xdr_array() returning an error which, in turn, authunix_create() handles by just calling abort(). Fix this by passing only the first 16 groups to authunix_create().
* Add FBSDID. Add missing prototypes. Remove unused variables. Give variablecharnier2005-05-201-6/+7
| | | | an initial value to silent compiler.
* Consumers of nfslockdans() seems to think it should return 0 on success, socognet2005-03-161-1/+1
| | | | make it so.
* Userland change corresponding to the change in kernel/userland communicationphk2004-12-061-31/+19
| | | | for NFS locking.
* Make this compile cleanly. It passes WARNS=2, but I haven't checkedpeter2003-10-261-8/+15
| | | | it is so on more platforms.
* When getting back an NLM DENIED response for a requested lock from therwatson2003-05-151-2/+2
| | | | | | | | | | | | server, map it to EAGAIN locally rather than EACCES. The NLM spec indicates the DENIED corresponds to lock contention, not a permission failure. This fixes O_EXLOCK/O_SHLOCK with O_NONBLOCK, which would previously give a permission error, which in turn fixes things like mailq(8) and lockf(1) over NFS. Approved by: scottl (re) Reviewed by: truckman, Andrew P Lentvorski, Jr. <bsder@allcaps.org> Idea from: truckman
* Remove a case of exposing 'struct ucred' to userspace. Use a struct xucredalfred2002-08-151-7/+7
| | | | | | for LOCKD_MSG instead. Requested by: rwatson
* Add IPv6 support.alfred2002-07-151-5/+15
| | | | Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
* Fixup for WARNS.alfred2001-11-121-6/+9
|
* Drop privs while servicing kernel lock requests.alfred2001-11-111-7/+17
| | | | | | Restore umask used before FIFO creation. If opening the FIFO fails, exit. Properly check the return value of open (use == -1 instead of < 0).
* leverage fixed fifo implementation (rev 1.56 ofalfred2001-11-081-8/+3
| | | | | | | | | | src/sys/fs/fifofs/fifo_vnops.c) to serve locks better, my previous workaround for lack of decent fifo system wasn't cutting it, particularly the kernel would send a message down the fifo and immediately close it, this would lead to delayed unlock requests being seen by the lockd causing all sorts of badness. Basically, don't reopen the fifo, just select(2) on it.
* use syslog rather than printf so we can see what's going on in debug modealfred2001-11-081-4/+4
|
* style fixes, fix line wrap and function declarationalfred2001-11-081-6/+5
|
* Userland part of nfs client/server split and cleanup.peter2001-09-181-5/+5
|
* Fix compiling without -O, some dead code was using non-existant functions,alfred2001-04-251-5/+9
| | | | | | | | | | | make the code not automatically dead but actually use the debug level in order to determine if output is needed. Fix non-existant from_addr() by #define'ing it to inet_ntoa(). Remove hardcoded -g from Makefile. Reported by: "John W. De Boskey" <jwd@bsdwins.com> Tested by: "John W. De Boskey" <jwd@bsdwins.com>
* remove debug code left in by accidentalfred2001-04-181-7/+0
|
* Implement client side NFS locks.alfred2001-04-171-0/+586
Obtained from: BSD/os Import Ok'd by: mckusick, jkh, motd on builder.freebsd.org
OpenPOWER on IntegriCloud