Hi, I've an odd question regarding /dev/*random permissions. I ship with my package freepops a script to create a chroot jail. Inside the jail I need /dev/*random but I'm a bit confused about the permissions I've to assign to these files. garfield:/home/tassi# ls -al /dev/.static/dev/*random crw-rw-rw- 1 root root 1, 8 2006-07-12 09:40 /dev/.static/dev/random cr--r--r-- 1 root root 1, 9 2006-07-12 09:40 /dev/.static/dev/urandom garfield:/home/tassi# ls -al /dev/*random crw-rw-rw- 1 root root 1, 8 2006-08-07 12:28 /dev/random crw-rw-rw- 1 root root 1, 9 2006-08-07 10:28 /dev/urandom garfield:/home/tassi# man 4 random ... mknod -m 644 /dev/random c 1 8 mknod -m 644 /dev/urandom c 1 9 chown root:root /dev/random /dev/urandom ... Since writing to /dev/random sets the random seed it seems strange that 0666 is a good choice. Thanks in advance, an please CC me and Ростислав since we are not on the list. -- Enrico Tassi
Attachment:
signature.asc
Description: Digital signature