aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/rpc.lockd
Commit message (Collapse)AuthorAgeFilesLines
* init_nsm() is executed after a call to daemon(*, 0), so error andGuy Helmer2003-04-241-2/+4
| | | | | | | | | warning messages should be logged rather than sent to /dev/null. PR: bin/45461 Notes: svn path=/head/; revision=113971
* style.Makefile(5)David E. O'Brien2003-04-041-2/+0
| | | | Notes: svn path=/head/; revision=113091
* Implement nonblocking tpc-connections. rpcgen -m does stillMartin Blapp2003-01-161-1/+6
| | | | | | | | | | | produce backcompatible code. Reviewed by: rwatson Obtained from: NetBSD MFC after: 1 day Notes: svn path=/head/; revision=109363
* Remove a case of exposing 'struct ucred' to userspace. Use a struct xucredAlfred Perlstein2002-08-151-7/+7
| | | | | | | | | for LOCKD_MSG instead. Requested by: rwatson Notes: svn path=/head/; revision=101947
* Add IPv6 support.Alfred Perlstein2002-07-151-5/+15
| | | | | | | Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr> Notes: svn path=/head/; revision=100134
* The .Nm utilityPhilippe Charnier2002-07-141-2/+2
| | | | Notes: svn path=/head/; revision=99968
* When binding to transports if getnetconfigent() fails then actuallyAlfred Perlstein2002-04-111-1/+2
| | | | | | | | | print out the correct transport it failed on rather than always spitting out 'udp', also call nc_sperror() to give a more verbose error message detailing the problem. Notes: svn path=/head/; revision=94404
* Use char foo[] = "BAR" to avoid direct assignment of const char * into char *.Alfred Perlstein2002-03-221-2/+4
| | | | | | | | | rpcgen can't really make those fields const because the remote side might want to munge them, so we need to pass non-const in. Hackish, but should work. Notes: svn path=/head/; revision=92978
* Const fix.Alfred Perlstein2002-03-221-1/+1
| | | | Notes: svn path=/head/; revision=92977
* Remove cast that's not needed.Alfred Perlstein2002-03-221-1/+1
| | | | Notes: svn path=/head/; revision=92975
* WARNS from 3 to 4. still some warnings about assigning const char * toAlfred Perlstein2002-03-221-1/+1
| | | | | | | char *, but we'll fix those later. Notes: svn path=/head/; revision=92972
* constify log_from_addr() parameter.Alfred Perlstein2002-03-221-2/+2
| | | | Notes: svn path=/head/; revision=92969
* Bring code to WARNS=3 level. Mostly fix unused variables.Alfred Perlstein2002-03-213-17/+22
| | | | Notes: svn path=/head/; revision=92911
* Remove main() prototype.Alfred Perlstein2002-03-211-1/+0
| | | | Notes: svn path=/head/; revision=92910
* Remove __P.Alfred Perlstein2002-03-213-15/+15
| | | | Notes: svn path=/head/; revision=92909
* Fix boundry condition in lock management:Alfred Perlstein2002-01-171-2/+13
| | | | | | | | | | | | | | | | | | | | | | Alfred, I took a look at retry_blockingfilelocklist() and the solution seemed simple enough. Please correct me if I am wrong. It seems said routine doesn't take into account boundary conditions when putting back file_lock entries into the blocked lock-list. Specifically, it fails when the file_lock being put back is the last element in the list, and when it is the only element in the list. I've included a patch below. Basically, it introduces another variable: pfl, which keeps track of the list item before ifl. That way if nfl is NULL, ifl gets inserted after pfl. If pfl is also NULL, then it gets inserted at the head of the list (since it was the only element in the list). Submitted by: Mike Makonnen <mike_makonnen@yahoo.com> Tested by: Thomas Quinot <thomas@cuivre.fr.eu.org> Notes: svn path=/head/; revision=89439
* prototype functions and fix some line wrappingAlfred Perlstein2001-12-021-6/+16
| | | | Notes: svn path=/head/; revision=87199
* Fold ANDREW_LOCKD into -current.Alfred Perlstein2001-11-293-566/+1965
|\ | | | | | | Notes: svn path=/head/; revision=87096
| * This completes the all partial file locking under NFS. The underlyingAlfred Perlstein2001-11-201-114/+399
| | | | | | | | | | | | | | | | | | | | file is still completely covered by a flock(2) style lock, but we'll tackle that at a later date. Submitted by: "Andrew P. Lentvorski" <bsder@allcaps.org> Notes: svn path=/cvs2svn/branches/ANDREW_LOCKD/; revision=86641
| * Cleanup.Alfred Perlstein2001-11-181-329/+344
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | use LIST_FOREACH, add prototypes (functions should be made static probably), change DEBUG=1 to LOCKD_DEBUG, K&R function instantiation for functions with long args lists, Move comments about functions from within to above the function, Simplified some if/else logic and reduced nested blocks. parens around 'return' argument (return FOO -> return (FOO)) Notes: svn path=/cvs2svn/branches/ANDREW_LOCKD/; revision=86537
| * Re-enable statd code.Alfred Perlstein2001-11-181-111/+185
| | | | | | | | | | | | | | Submitted by: "Andrew P. Lentvorski" <bsder@allcaps.org> Notes: svn path=/cvs2svn/branches/ANDREW_LOCKD/; revision=86529
| * This adds in the full HW locking capability and should now make my rewriteAlfred Perlstein2001-11-181-318/+775
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of the rpc.lockd fully compliant with the old file locking semantics. Andrew will dig into the statd code next and then will attack the split locking. This also backs out a lot of the work I've done on making the code more conformant with non-written style rules, but we'll revisit that later. Submitted by: "Andrew P. Lentvorski" <bsder@allcaps.org> Notes: svn path=/cvs2svn/branches/ANDREW_LOCKD/; revision=86517
| * Bring in Andrew P. Lentvorski initial work on making lockd work,Alfred Perlstein2001-11-153-0/+1706
| | | | | | | | | this should get us closer so cleaner implementation. Submitted by: Andrew P. Lentvorski <bsder@allcaps.org> Notes: svn path=/cvs2svn/branches/ANDREW_LOCKD/; revision=86397
* Turn on NO_WERROR and set WARNS to 1.Alfred Perlstein2001-11-135-20/+27
| | | | | | | | | | | | | | | Fix the WARNS 1 warnings except unused variables. Add prototype for log_netobj(). Don't compare signed/unsigned. Cast u_int64_t to 'unsigned long long' and print using %llu. Fix constness of string arrays. Use a cast to avoid an unused parameter in a signal handler. alarm(2) can't fail, so don't check for it. ANSI'ify some functions. Notes: svn path=/head/; revision=86319
* fix parameters to lock_answer().Alfred Perlstein2001-11-121-1/+1
| | | | | | | Submitted by: Timo Geusch <freebsd@unix-consult.com> Notes: svn path=/head/; revision=86300
* Fixup for WARNS.Alfred Perlstein2001-11-121-6/+9
| | | | Notes: svn path=/head/; revision=86299
* Drop privs while servicing kernel lock requests.Alfred Perlstein2001-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). Notes: svn path=/head/; revision=86279
* leverage fixed fifo implementation (rev 1.56 ofAlfred Perlstein2001-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. Notes: svn path=/head/; revision=86188
* use syslog rather than printf so we can see what's going on in debug modeAlfred Perlstein2001-11-081-4/+4
| | | | Notes: svn path=/head/; revision=86187
* style fixes, fix line wrap and function declarationAlfred Perlstein2001-11-081-6/+5
| | | | Notes: svn path=/head/; revision=86186
* Implement partial-file NFS lock testing.Alfred Perlstein2001-10-143-13/+139
| | | | | | | Submitted by: "Andrew P. Lentvorski" <andrewl@io.com> Notes: svn path=/head/; revision=84923
* Userland part of nfs client/server split and cleanup.Peter Wemm2001-09-181-5/+5
| | | | Notes: svn path=/head/; revision=83653
* Perform a major cleanup of the usr.sbin Makefiles.David E. O'Brien2001-07-201-2/+2
| | | | | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before. Notes: svn path=/head/; revision=80029
* Distinguish between rpc version numbers in the client cache to avoidAlfred Perlstein2001-04-281-1/+6
| | | | | | | replying on the wrong port. Notes: svn path=/head/; revision=76093
* handles.c belonged to the old stub lockd, nuke it.Alfred Perlstein2001-04-281-61/+0
| | | | Notes: svn path=/head/; revision=76092
* procs.c belonged to the old stub lockd, nuke it.Alfred Perlstein2001-04-281-592/+0
| | | | Notes: svn path=/head/; revision=76091
* mdoc(7) police: Removed forgotten .Pp.Ruslan Ermilov2001-04-271-1/+0
| | | | Notes: svn path=/head/; revision=76066
* Fix compiling without -O, some dead code was using non-existant functions,Alfred Perlstein2001-04-252-6/+10
| | | | | | | | | | | | | | 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> Notes: svn path=/head/; revision=75979
* Remove section from bugs that says we don't support client locks.Alfred Perlstein2001-04-191-11/+0
| | | | | | | Pointed out by: Martin Blapp <mb@imp.ch> Notes: svn path=/head/; revision=75699
* remove debug code left in by accidentAlfred Perlstein2001-04-181-7/+0
| | | | Notes: svn path=/head/; revision=75678
* Implement client side NFS locks.Alfred Perlstein2001-04-176-9/+672
| | | | | | | | Obtained from: BSD/os Import Ok'd by: mckusick, jkh, motd on builder.freebsd.org Notes: svn path=/head/; revision=75631
* - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-261-0/+1
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74816
* Set the default manual section for usr.sbin/ to 8.Ruslan Ermilov2001-03-201-1/+0
| | | | Notes: svn path=/head/; revision=74532
* Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) andAlfred Perlstein2001-03-198-160/+2390
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | associated changes that had to happen to make this possible as well as bugs fixed along the way. Bring in required TLI library routines to support this. Since we don't support TLI we've essentially copied what NetBSD has done, adding a thin layer to emulate direct the TLI calls into BSD socket calls. This is mostly from Sun's tirpc release that was made in 1994, however some fixes were backported from the 1999 release (supposedly only made available after this porting effort was underway). The submitter has agreed to continue on and bring us up to the 1999 release. Several key features are introduced with this update: Client calls are thread safe. (1999 code has server side thread safe) Updated, a more modern interface. Many userland updates were done to bring the code up to par with the recent RPC API. There is an update to the pthreads library, a function pthread_main_np() was added to emulate a function of Sun's threads library. While we're at it, bring in NetBSD's lockd, it's been far too long of a wait. New rpcbind(8) replaces portmap(8) (supporting communication over an authenticated Unix-domain socket, and by default only allowing set and unset requests over that channel). It's much more secure than the old portmapper. Umount(8), mountd(8), mount_nfs(8), nfsd(8) have also been upgraded to support TI-RPC and to support IPV6. Umount(8) is also fixed to unmount pathnames longer than 80 chars, which are currently truncated by the Kernel statfs structure. Submitted by: Martin Blapp <mb@imp.ch> Manpage review: ru Secure RPC implemented by: wpaul Notes: svn path=/head/; revision=74462
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-1/+1
| | | | Notes: svn path=/head/; revision=68965
* Use Fx macro wherever possible.Ruslan Ermilov2000-11-141-2/+2
| | | | Notes: svn path=/head/; revision=68716
* Don't call syslog() without a format string.Kris Kennaway2000-07-121-1/+1
| | | | Notes: svn path=/head/; revision=62989
* $Id$ -> $FreeBSD$Peter Wemm1999-08-286-6/+6
| | | | Notes: svn path=/head/; revision=50479
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | track. The Id line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48791
* Removed bogus dependencies of generated .c files on generated headers.Bruce Evans1998-05-101-2/+2
| | | | Notes: svn path=/head/; revision=35910