Bug 169911 - [PATCH] make it possible for yp_mkdb(8) to send YPPROC_CLEAR to specified host
Summary: [PATCH] make it possible for yp_mkdb(8) to send YPPROC_CLEAR to specified host
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-16 15:50 UTC by Niclas Zeising
Modified: 2017-12-31 22:29 UTC (History)
0 users

See Also:


Attachments
usr.sbin.yp_mkdb.c.diff (2.34 KB, patch)
2012-07-16 15:50 UTC, Niclas Zeising
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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