Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Nov 2018 19:43:59 +0000 (UTC)
From:      Mariusz Zaborski <oshogbo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r340142 - head/lib/libcasper/services/cap_grp
Message-ID:  <201811041943.wA4JhxWO026650@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: oshogbo
Date: Sun Nov  4 19:43:59 2018
New Revision: 340142
URL: https://svnweb.freebsd.org/changeset/base/340142

Log:
  libcasper: using explicit_bzero in cap_grp service
  
  Please notice that we still don't clean information in nvlist structures.
  
  Submitted by:	David CARLIER <devnexen@gmail.com>
  Differential Revision:	https://reviews.freebsd.org/D16777

Modified:
  head/lib/libcasper/services/cap_grp/cap_grp.c

Modified: head/lib/libcasper/services/cap_grp/cap_grp.c
==============================================================================
--- head/lib/libcasper/services/cap_grp/cap_grp.c	Sun Nov  4 19:38:54 2018	(r340141)
+++ head/lib/libcasper/services/cap_grp/cap_grp.c	Sun Nov  4 19:43:59 2018	(r340142)
@@ -157,7 +157,7 @@ group_unpack(const nvlist_t *nvl, struct group *grp, c
 	if (!nvlist_exists_string(nvl, "gr_name"))
 		return (EINVAL);
 
-	memset(grp, 0, sizeof(*grp));
+	explicit_bzero(grp, sizeof(*grp));
 
 	error = group_unpack_string(nvl, "gr_name", &grp->gr_name, &buffer,
 	    &bufsize);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811041943.wA4JhxWO026650>