svn commit: r342192 - head/sbin/ping

Mark Johnston markj at FreeBSD.org
Tue Dec 18 16:47:05 UTC 2018


Author: markj
Date: Tue Dec 18 16:47:03 2018
New Revision: 342192
URL: https://svnweb.freebsd.org/changeset/base/342192

Log:
  Use caph_enter_casper() in ping(8).
  
  Reported by:	oshogbo
  MFC with:	r341837
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sbin/ping/ping.c

Modified: head/sbin/ping/ping.c
==============================================================================
--- head/sbin/ping/ping.c	Tue Dec 18 14:39:29 2018	(r342191)
+++ head/sbin/ping/ping.c	Tue Dec 18 16:47:03 2018	(r342192)
@@ -708,7 +708,7 @@ main(int argc, char *const *argv)
 	 * We must connect(2) our socket before this point.
 	 */
 	caph_cache_catpages();
-	if (caph_enter() < 0)
+	if (caph_enter_casper() < 0)
 		err(1, "cap_enter");
 
 	cap_rights_init(&rights, CAP_RECV, CAP_EVENT, CAP_SETSOCKOPT);


More information about the svn-src-head mailing list