svn commit: samba r1498 - in branches/SAMBA_4_0/source: auth lib
libcli/auth libcli/util librpc/rpc passdb rpc_server/netlogon
smbd torture torture/rpc
abartlet at samba.org
abartlet at samba.org
Wed Jul 14 12:14:08 GMT 2004
Author: abartlet
Date: 2004-07-14 12:14:07 +0000 (Wed, 14 Jul 2004)
New Revision: 1498
Modified:
branches/SAMBA_4_0/source/auth/auth.c
branches/SAMBA_4_0/source/lib/genrand.c
branches/SAMBA_4_0/source/lib/util_uuid.c
branches/SAMBA_4_0/source/libcli/auth/ntlmssp.c
branches/SAMBA_4_0/source/libcli/auth/schannel.c
branches/SAMBA_4_0/source/libcli/util/smbencrypt.c
branches/SAMBA_4_0/source/librpc/rpc/dcerpc_schannel.c
branches/SAMBA_4_0/source/passdb/secrets.c
branches/SAMBA_4_0/source/rpc_server/netlogon/dcerpc_netlogon.c
branches/SAMBA_4_0/source/smbd/process_standard.c
branches/SAMBA_4_0/source/smbd/rewrite.c
branches/SAMBA_4_0/source/torture/rpc/netlogon.c
branches/SAMBA_4_0/source/torture/rpc/samr.c
branches/SAMBA_4_0/source/torture/torture.c
Log:
(merge from 3.0)
Rework our random number generation system.
On systems with /dev/urandom, this avoids a change to secrets.tdb for every fork().
For other systems, we now only re-seed after a fork, and on startup.
No need to do it per-operation. This removes the 'need_reseed'
parameter from generate_random_buffer().
This also requires that we start the secrets subsystem, as that is
where the reseed value is stored, for systems without /dev/urandom.
In order to aviod identical streams in forked children, the random
state is re-initialised after the fork(), at the same point were we do
that to the tdbs.
Andrew Bartlett
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source&rev=1498&nolog=1
More information about the samba-cvs
mailing list