Eric Blake
87de27b7f9
virrandom: make virRandomInitialize an automatic one-shot
...
All callers used the same initialization seed (well, the new
viratomictest forgot to look at getpid()); so we might as well
make this value automatic. And while it may feel like we are
giving up functionality, I documented how to get it back in the
unlikely case that you actually need to debug with a fixed
pseudo-random sequence. I left that crippled by default, so
that a stray environment variable doesn't cause a lack of
randomness to become a security issue.
* src/util/virrandom.c (virRandomInitialize): Rename...
(virRandomOnceInit): ...and make static, with one-shot call.
Document how to do fixed-seed debugging.
* src/util/virrandom.h (virRandomInitialize): Drop prototype.
* src/libvirt_private.syms (virrandom.h): Don't export it.
* src/libvirt.c (virInitialize): Adjust caller.
* src/lxc/lxc_controller.c (main): Likewise.
* src/security/virt-aa-helper.c (main): Likewise.
* src/util/iohelper.c (main): Likewise.
* tests/seclabeltest.c (main): Likewise.
* tests/testutils.c (virtTestMain): Likewise.
* tests/viratomictest.c (mymain): Likewise.
2012-08-06 08:15:13 -06:00
..
2012-08-02 14:36:23 -06:00
2012-06-04 13:06:07 -06:00
2012-03-27 09:54:49 -06:00
2012-03-09 14:36:31 +01:00
2012-05-24 11:35:02 +02:00
2011-09-05 07:03:04 -06:00
2012-03-15 12:24:56 +08:00
2010-01-19 21:13:03 +01:00
2012-05-08 16:57:37 -06:00
2012-02-01 17:02:45 -07:00
2012-01-11 13:10:21 -07:00
2012-01-11 13:10:21 -07:00
2012-08-02 14:36:23 -06:00
2012-07-20 15:36:11 -06:00
2012-05-21 06:26:34 -04:00
2012-05-21 06:26:34 -04:00
2012-06-05 15:44:40 +02:00
2012-08-02 12:13:48 +02:00
2012-05-15 17:07:34 +01:00
2012-03-07 18:24:43 -07:00
2012-05-08 16:57:37 -06:00
2012-08-02 14:36:23 -06:00
2012-08-02 14:36:23 -06:00
2012-08-02 17:14:17 -06:00
2012-07-18 20:08:27 +01:00
2012-07-21 20:15:02 +02:00
2011-11-30 10:12:30 +00:00
2012-05-08 16:57:37 -06:00
2012-04-02 09:33:54 -06:00
2012-07-21 19:45:02 +02:00
2011-05-03 08:03:39 -06:00
2010-01-15 16:28:05 +00:00
2012-07-23 10:50:50 +08:00
2012-07-23 10:50:50 +08:00
2011-04-30 19:59:52 +02:00
2012-07-27 07:42:34 -06:00
2012-07-23 10:50:50 +08:00
2012-05-08 16:57:37 -06:00
2012-03-27 15:52:25 +01:00
2010-05-20 13:50:03 -04:00
2012-03-26 14:45:22 -06:00
2011-12-01 13:49:20 -07:00
2012-07-23 10:50:50 +08:00
2011-07-29 17:17:21 +02:00
2010-01-15 16:28:05 +00:00
2012-03-26 14:45:22 -06:00
2011-06-30 18:04:02 +01:00
2009-10-07 12:18:13 +02:00
2009-10-07 12:18:13 +02:00
2012-07-23 10:50:50 +08:00
2012-03-29 21:23:59 -06:00
2012-08-03 10:38:24 -04:00
2010-01-15 16:28:05 +00:00
2012-04-05 07:04:43 -04:00
2012-03-26 14:45:22 -06:00
2010-01-15 16:28:05 +00:00
2012-03-26 14:45:22 -06:00
2012-07-20 15:36:11 -06:00
2010-04-06 11:09:46 -04:00
2012-05-21 06:26:34 -04:00
2012-07-27 07:42:34 -06:00
2012-07-30 13:09:57 +01:00
2012-05-08 16:57:37 -06:00
2011-06-01 11:58:15 +02:00
2011-07-22 15:18:32 +01:00
2012-03-26 14:45:22 -06:00
2012-06-21 16:33:00 +02:00
2012-02-27 16:06:02 -07:00
2012-08-02 12:13:48 +02:00
2012-05-17 11:43:35 -06:00
2012-07-11 11:19:05 +02:00
2012-07-27 07:42:34 -06:00
2012-07-27 07:42:34 -06:00
2011-11-18 15:00:18 -07:00
2011-12-22 13:01:09 -07:00
2012-08-06 08:15:13 -06:00
2012-03-30 11:47:24 +01:00
2012-07-23 10:50:50 +08:00
2012-07-23 10:50:50 +08:00
2012-07-23 10:50:50 +08:00
2012-07-23 10:50:50 +08:00
2012-07-27 07:42:34 -06:00
2012-03-26 14:45:22 -06:00
2012-07-23 10:50:50 +08:00
2010-01-15 16:28:05 +00:00
2012-07-18 20:08:27 +01:00
2010-01-15 16:28:05 +00:00
2012-07-18 20:08:27 +01:00
2010-01-15 16:28:05 +00:00
2011-07-11 09:21:37 -06:00
2012-08-06 08:15:13 -06:00
2012-07-27 18:27:21 +08:00
2012-03-27 15:52:25 +01:00
2012-03-27 15:52:25 +01:00
2012-07-11 11:19:05 +02:00
2009-07-16 15:06:42 +02:00
2011-11-03 12:01:48 +00:00
2009-07-16 15:06:42 +02:00
2012-07-27 07:42:34 -06:00
2011-07-01 16:46:20 -06:00
2012-07-27 07:42:34 -06:00
2012-08-06 08:15:13 -06:00
2012-07-23 10:50:50 +08:00
2012-06-11 09:21:27 -06:00
2012-07-24 15:45:20 -06:00
2012-01-26 14:11:13 +00:00
2012-04-04 14:33:27 +01:00
2012-07-23 10:50:50 +08:00
2012-07-23 10:50:50 +08:00
2012-07-23 10:37:01 +02:00
2012-07-23 10:50:50 +08:00
2012-07-27 07:42:34 -06:00
2012-07-27 07:42:34 -06:00
2012-07-27 07:42:34 -06:00
2012-07-27 07:42:34 -06:00
2012-05-01 14:58:14 -06:00
2011-09-28 15:43:39 +08:00
2012-07-23 10:50:50 +08:00
2012-07-23 10:50:50 +08:00
2012-07-21 20:15:02 +02:00
2012-03-26 14:45:22 -06:00
2012-07-23 10:50:50 +08:00
2012-03-26 14:45:22 -06:00
2012-07-21 19:45:02 +02:00