Bug 169911

Summary: [PATCH] make it possible for yp_mkdb(8) to send YPPROC_CLEAR to specified host
Product: Base System Reporter: Niclas Zeising <zeising>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me Keywords: patch
Priority: Normal    
Version: 10.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
usr.sbin.yp_mkdb.c.diff none

Description Niclas Zeising 2012-07-16 15:50:10 UTC
	yp_mkdb is used to generate maps for NIS to hand out.  It is possible to have yp_mkdb send a YPPROC_CLEAR to localhost to have the local NIS server to close open connections and flush it's cache.
	When running a NIS server in a jail, localhost does not exists, which means there is no way to accomplish this 'clearing'.

Fix: Attached patch adds a new option -C hostname to yp_mkdb that makes it send the YPPROC_CLEAR to the specified hostname instead of localhost.
	This makes it possible to 'clear' a NIS server running in a jail.  This option is mutually exclusive with -c.
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:58:30 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 2 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:39:23 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>