svn commit: r259428 - head/sys/geom/eli

Pawel Jakub Dawidek pjd at FreeBSD.org
Sun Dec 15 22:51:27 UTC 2013


Author: pjd
Date: Sun Dec 15 22:51:26 2013
New Revision: 259428
URL: http://svnweb.freebsd.org/changeset/base/259428

Log:
  Clear content of keyfiles loaded by the loader after processing them.
  
  Pointed out by:	rwatson
  MFC after:	1 week

Modified:
  head/sys/geom/eli/g_eli.c

Modified: head/sys/geom/eli/g_eli.c
==============================================================================
--- head/sys/geom/eli/g_eli.c	Sun Dec 15 20:47:27 2013	(r259427)
+++ head/sys/geom/eli/g_eli.c	Sun Dec 15 22:51:26 2013	(r259428)
@@ -990,6 +990,7 @@ g_eli_keyfiles_load(struct hmac_ctx *ctx
 		G_ELI_DEBUG(1, "Loaded keyfile %s for %s (type: %s).", file,
 		    provider, name);
 		g_eli_crypto_hmac_update(ctx, data, size);
+		bzero(data, size);
 	}
 }
 


More information about the svn-src-all mailing list