Call for Assistance - udev
Quoted 2 lines · Greg Schafer
Anyhoo, it seems the latest release (udev-115) finally installs something that looks like a sane default config.
Do you really think this is sane?
1) Strange symlinks that never existed before:
KERNEL="null", SYMLINK+="XOR"
KERNEL="ram0", SYMLINK+="ramdisk"
KERNEL="ram1", SYMLINK+="ram"
KERNEL="lp[0-9]*", GROUP="lp" SYMLINK+="par%n"
2) Mismatch between /dev/random and /dev/urandom permissions:
KERNEL="...|random", MODE="0666"
KERNEL="urandom", MODE="0644"
3) Syntax errors (missing comma, extra quote)
KERNEL="lp[0-9]*", GROUP="lp" SYMLINK+="par%n"
KERNEL="ht[0-9]*|nht[0-9]*", GROUP="disk""
4) persistent CD symlinks and network interface names are provided only by distro-specific rules
Signature · 11 lines
Alexander E. Patrakov ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 3 lines · I wrote:
4) persistent CD symlinks and network interface names are provided only by distro-specific rules
Scratch that - I should not be awake at night. The other objections still apply.
Signature · 11 lines
Alexander E. Patrakov ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 8 lines · Alexander E. Patrakov
Quoted 2 lines · Greg Schafer
Anyhoo, it seems the latest release (udev-115) finally installs something that looks like a sane default config.
Do you really think this is sane?
1) Strange symlinks that never existed before:
KERNEL="null", SYMLINK+="XOR"
Old ancient stuff. Mentioned in linux/Documentation/devices.txt
Quoted 1 line
KERNEL="ram0", SYMLINK+="ramdisk"
Recommended in devices.txt.
Quoted 1 line
KERNEL="ram1", SYMLINK+="ram"
Don't know.
Quoted 1 line
KERNEL="lp[0-9]*", GROUP="lp" SYMLINK+="par%n"
Don't know.
Quoted 3 lines
2) Mismatch between
/dev/randomand/dev/urandompermissions:
KERNEL="...|random", MODE="0666"
KERNEL="urandom", MODE="0644"
You can write to random to add entropy to the pool. I guess, you can't write to urandom.
Quoted 3 lines
3) Syntax errors (missing comma, extra quote)
KERNEL="lp[0-9]*", GROUP="lp" SYMLINK+="par%n"
KERNEL="ht[0-9]*|nht[0-9]*", GROUP="disk""
I'll fix that now. Will probably just work though. :)
Kay
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 10 lines · Kay Sievers
Quoted 4 lines · Alexander E. Patrakov
2) Mismatch between
/dev/randomand/dev/urandompermissions:
KERNEL="...|random", MODE="0666"
KERNEL="urandom", MODE="0644"You can write to random to add entropy to the pool. I guess, you can't write to urandom.
The drivers/char/random.c file says:
const struct file_operations random_fops = {
.read = random_read,
.write = random_write,
.poll = random_poll,
.ioctl = random_ioctl,
};
const struct file_operations urandom_fops = {
.read = urandom_read,
.write = random_write,
.ioctl = random_ioctl,
};
So there is no valid reason for this mismatch.
Signature · 11 lines
Alexander E. Patrakov ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 21 lines · Alexander E. Patrakov
Quoted 10 lines · Kay Sievers
Quoted 4 lines · Alexander E. Patrakov
2) Mismatch between
/dev/randomand/dev/urandompermissions:
KERNEL="...|random", MODE="0666"
KERNEL="urandom", MODE="0644"You can write to random to add entropy to the pool. I guess, you can't write to urandom.
The
drivers/char/random.cfile says:const struct
file_operationsrandom_fops= {
.read =random_read,
.write =random_write,
.poll =random_poll,
.ioctl =random_ioctl,
};
Quoted 7 lines
const struct
file_operationsurandom_fops= {
.read =urandom_read,
.write =random_write,
.ioctl =random_ioctl,
};So there is no valid reason for this mismatch.
Fine. I updated the rules.
Thanks,
Kay
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel