aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/rpc.statd
Commit message (Collapse)AuthorAgeFilesLines
* rpc.statd: move to nfs packageLexi Winter2025-05-051-0/+1
| | | | | | | | | | rpc.statd is not technically specific to NFS, but NFS is the only thing which has ever actually used it, so this is the most appropriate place to put it. Reviewed by: rmacklem, des, bapt, emaste Approved by: des (mentor) Differential Revision: https://reviews.freebsd.org/D50162
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* Purge more stray embedded $FreeBSD$ stringsJohn Baldwin2023-09-251-5/+0
| | | | | | | These do not use __FBSDID but instead use bare char arrays. Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D41957
* Remove $FreeBSD$: two-line nroff patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-162-4/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-162-4/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-1/+0
|
* nfs: Fix a common typo in source code commentsGordon Bergling2023-01-191-1/+1
| | | | | | - s/ingore/ignore/ MFC after: 3 days
* Add and document options to allow rpc.lockd and rpc.statd to run in theRavi Pokala2019-11-222-4/+24
| | | | | | | | | | | | | | | | foreground. This allows a separate process to monitor when and how those programs exit. That process can then restart them if needed. Submitted by: Alex Burlyga Reviewed by: bcr, imp MFC after: 1 week Sponsored by: Panasas Differential Revision: https://reviews.freebsd.org/D22474 Notes: svn path=/head/; revision=355006
* - Revert WARNS to 2 because of mismatch between (xdrproc_t) and xdr_void().Hiroki Sato2019-09-212-2/+6
| | | | | | | - Add prototype of from_addr(). Notes: svn path=/head/; revision=352574
* Fix warnings and set WARNS=6.Hiroki Sato2019-09-213-12/+11
| | | | Notes: svn path=/head/; revision=352572
* Fix build errors of test.c, which had been broken for a long time.Hiroki Sato2019-09-212-19/+20
| | | | | | | | This is a temporary fix and should be converted to a complete test scenarios by using this tool. Notes: svn path=/head/; revision=352570
* Reduce log spam from rpc.statdDoug Rabson2019-02-031-3/+7
| | | | | | | This only reports failed attempts to contact hosts on the first attempt. Notes: svn path=/head/; revision=343706
* spdx: initial adoption of licensing ID tags.Pedro F. Giffuni2017-11-184-4/+12
| | | | | | | | | | | | | | | | | | | | The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Initially, only tag files that use BSD 4-Clause "Original" license. RelNotes: yes Differential Revision: https://reviews.freebsd.org/D13133 Notes: svn path=/head/; revision=325966
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-07-101-0/+1
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=320882
* Utilize SYSROOT from r320119 in places where DESTDIR may be wanting WORLDTMP.Bryan Drewery2017-06-191-1/+1
| | | | | | | | | | | | | | Since buildenv exports SYSROOT all of these uses will now look in WORLDTMP by default. sys/boot/efi/loader/Makefile A LIBSTAND hack is no longer required for buildenv. MFC after: 2 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=320122
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-05-091-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318000
* Use .ALLSRC instead of RPCSRCEnji Cooper2017-03-011-2/+2
| | | | | | | | | | | This is a trivial simplification in the Makefile, meant to serve as a good example for what to do with rules like this. MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314455
* Mark out_of_mem(..) and usage(..) with __dead2 as they both directly call exitEnji Cooper2016-05-291-4/+4
| | | | | | | | | | as a hint to static analysis tools MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=300935
* Set ai2 to NULL in in find_host() before the loop and after callingDon Lewis2016-05-161-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | freeaddrinfo() on it to indicate that it doesn't point to a valid addrinfo list. This fixes this Coverity issues: 1006368 Uninitialized pointer read 1018506 Double free 1305590 Resource leak that can be triggered in the hp->hostname[0] != '\0' case. Don't treat a character as a boolean. Fix these Coverity issues: 1009293 Unchecked return value from library 1194246 Wrong size argument by tweaking the status file extend code. Reported by: Coverity CID: 1006368, 1018506, 1305590, 1009293, 1194246 Reviewed by: rmacklem Feedback from: hrs MFC after: 1 week Differential Revision: D6398 Notes: svn path=/head/; revision=299988
* DIRDEPS_BUILD: Regenerate without local dependencies.Bryan Drewery2016-02-241-10/+0
| | | | | | | | | | | These are no longer needed after the recent 'beforebuild: depend' changes and hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports skipping 'make depend'. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295989
* Fix type mismatches for malloc(3) and Co.Ulrich Spörlein2015-12-291-1/+1
| | | | | | | | | | | | This is rather pedantic, as for most architectures it holds that sizeof(type *) == sizeof(type **) Found by: clang static analyzer Reviewed by: ed Differential Revision: https://reviews.freebsd.org/D4722 Notes: svn path=/head/; revision=292864
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+32
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-272-3/+2
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Merge headSimon J. Gerraty2014-04-281-5/+1
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * | Updated dependenciesSimon J. Gerraty2013-03-111-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+32
| | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | When mountd is creating sockets, it iterates over all addresses specifiedRyan Stone2015-01-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in the "hosts" array and eventually looks up the network address with getaddrinfo(). At one point it checks for a numeric address and if it sees one, it sets a hint parameter to force getaddrinfo to interpret the host as a numeric address. However that hint is not cleared for subsequent iterations of the loop and if any hosts seen after this point are host names, getaddrinfo will fail on the name. The result of this bug is that you cannot pass a host name to the -h flag. Unfortunately, the first iteration will either process ::1 or 127.0.0.1, so the flag is set on the first iteration and all host names will fail to be processed. The same bug applies to rpc.lockd and rpc.statd, so fix them too. Differential Revision: https://reviews.freebsd.org/D1507 Reported by: Dylan Martin MFC after: 1 week Sponsored by: Sandvine Inc. Notes: svn path=/head/; revision=277352
* | | Convert usr.sbin to LIBADDBaptiste Daroussin2014-11-251-2/+1
| |/ |/| | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275054
* | multiple: Remove 3rd clause from BSD license where approved by theEitan Adler2014-03-141-5/+1
|/ | | | | | | | | | | | regents and renumber. This patch skips files in contrib/ and crypto/ Acked by: imp Discussed with: emaste Notes: svn path=/head/; revision=263142
* Consistently set RPCGEN_CPP when running rpcgen, so the C preprocessorDimitry Andric2012-02-071-1/+1
| | | | | | | | | set via ${CPP} is used, instead of always using hardcoded /usr/bin/cpp. MFC after: 1 week Notes: svn path=/head/; revision=231118
* Fix the nfs related daemons so that they don't intermittentlyRick Macklem2011-06-021-27/+211
| | | | | | | | | | | | | | | | | | | | | | | | | | | fail with "bind: address already in use". This problem was reported to the freebsd-stable@ mailing list on Feb. 19 under the subject heading "statd/lockd startup failure" by george+freebsd at m5p dot com. The problem is that the first combination of {udp,tcp X ipv4,ipv6} would select a port# dynamically, but one of the other three combinations would have that port# already in use. The patch is somewhat involved because it was requested by dougb@ that the four combinations use the same port# wherever possible. The patch splits the create_service() function into two functions. The first goes as far as bind(2) in a loop for up to GETPORT_MAXTRY - 1 times, attempting to use the same port# for all four cases. If these attempts fail, the last attempt allows the 4 cases to use different port #s. After this function has succeeded, the second function, called complete_service(), does the rest of what create_service() did. The three daemons mountd, rpc.lockd and rpc.statd all have a create_service() function that is patched in a similar way. However, create_service() has non-trivial differences for the three daemons that made it impractical to share the same functions between them. Reviewed by: jhb MFC after: 2 weeks Notes: svn path=/head/; revision=222627
* The last big commit: let usr.sbin/ use WARNS=6 by default.Ed Schouten2010-01-021-1/+1
| | | | Notes: svn path=/head/; revision=201390
* Re-implement the client side of rpc.lockd in the kernel. This implementationDoug Rabson2008-06-261-0/+30
| | | | | | | | | | | | | | | provides the correct semantics for flock(2) style locks which are used by the lockf(1) command line tool and the pidfile(3) library. It also implements recovery from server restarts and ensures that dirty cache blocks are written to the server before obtaining locks (allowing multiple clients to use file locking to safely share data). Sponsored by: Isilon Systems PR: 94256 MFC after: 2 weeks Notes: svn path=/head/; revision=180025
* Fix apparent mis-paste in previous check-in by author.Alexander Kabaev2008-04-061-1/+1
| | | | Notes: svn path=/head/; revision=177963
* Call listen(2) on bound tcp sockets before passing them to svc_tli_create.Doug Rabson2008-04-061-0/+3
| | | | Notes: svn path=/head/; revision=177950
* Check the correct variables for malloc failures.Matteo Riondato2007-11-071-1/+1
| | | | | | | Submitted by: Michiel Boland <michiel@boland.org> Notes: svn path=/head/; revision=173411
* Add the -h <bindip> option to rpc.statd, similar to the one in nfsd(8)Matteo Riondato2007-11-012-90/+334
| | | | | | | | | | | | | | | | | | | and in mountd(8) -h bindip Specify specific IP addresses to bind to for TCP and UDP requests. This option may be specified multiple times. If no -h option is specified, rpc.statd will bind to INADDR_ANY. Note that when specifying IP addresses with -h, rpc.statd will automatically add 127.0.0.1 and if IPv6 is enabled, ::1 to the list. (coming for rpc.lockd too) PR: bin/98500 MFC after: 1 week Notes: svn path=/head/; revision=173263
* If the mmap() call in rpc.statd fails, rpc.statd prints a warningDon Lewis2007-08-131-1/+1
| | | | | | | | | | | | | | | message and then dumps core because the subsequent code assumes that mmap() succeeded. Since rpc.statd does not have fallback code to implement the functionality needed to operate on the status file if it is not memory mapped, rpc.statd should use err() to force the process to exit if the mmap() call fails. PR: bin/115430 (mmap() failure previously fixed in statd.c 1.15) Approved by: re (kensmith) MFC after: 1 week Notes: svn path=/head/; revision=171816
* The call to init_file() needs to be moved outside the loop in statd.c,Don Lewis2007-08-051-1/+1
| | | | | | | | | | | otherwise mmap() gets called multiple times, which eventually fails due to address space exhaustion on i386. Approved by: re (kensmith) MFC after: 1 week Notes: svn path=/head/; revision=171733
* Add the "-p" option, which allows to specify a port which the daemonMatteo Riondato2007-04-032-9/+119
| | | | | | | | | | | should bind to. PR: bin/94920 Reviewed by: alfred@ MFC after: 1 week Notes: svn path=/head/; revision=168325
* Make rpc.statd INET* indipendent by converting sockaddr_in structuresMatteo Riondato2007-04-021-6/+18
| | | | | | | | | | | to sockaddr ones and using svc_getrpccaller instead of svc_getcaller. A similar patch was committed to rpc.lockd back in 2002 . PR: bin/42004 MFC after: 1 week Notes: svn path=/head/; revision=168276
* compile under WARNS=6Philippe Charnier2006-09-132-5/+3
| | | | Notes: svn path=/head/; revision=162263
* (sm_mon_1_svc): Fix debugging output: when establising a monitoringThomas Quinot2006-08-111-2/+3
| | | | | | | | | | | | request, correctly report the location (usually localhost) to which a callback will be made when a notification is received for the monitored host. Previsouly, the name of the monitored host was reported instead. MFC after: 2 weeks Notes: svn path=/head/; revision=161228