gdm r5534 - in trunk: . common daemon
- From: halfline svn gnome org
- To: svn-commits-list gnome org
- Subject: gdm r5534 - in trunk: . common daemon
- Date: Fri, 30 Nov 2007 22:13:21 +0000 (GMT)
Author: halfline
Date: 2007-11-30 22:13:21 +0000 (Fri, 30 Nov 2007)
New Revision: 5534
ViewCVS link: http://svn.gnome.org/viewcvs/gdm?rev=5534&view=rev
Modified:
trunk/ChangeLog
trunk/common/gdm-common.c
trunk/common/gdm-common.h
trunk/daemon/gdm-display-access-file.c
Log:
2007-11-30 Ray Strode <rstrode redhat com>
Ensure second and subsequent auth cookies are
random. Spotted by George Lebl.
* common/gdm-common.[ch] (gdm_generate_random_bytes):
open /dev/urandom and read size bytes from it.
(_fd_is_character_device): check if fd points to char
device
(_read_bytes): the usual loop until all bytes are read
helper function for read().
* daemon/gdm-display-access-file.c
(generate_random_bytes): remove function
(gdm_display_access_file_add_display):
use gdm_generate_random_bytes instead of
_generate_random_bytes
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]