Skip to contentSkip to conversation

udev silently ignores bad config file names

DISCUSSION Greg KH 1 participant 1 message Jun 4, 2004

lore
Share & tools
lore

Greg KH

author
#0 lore raw
Quoted 10 lines · Erik S?e S?rensen

Hi there.

In udev-025, bad config file names for rules and permissions are silently ignored. Worse yet: even if the permission config file name is correct, the file won't be loaded if the rules file name is incorrect (e.g., doesn't exist).

A crude fix is attached. It just reports that there are problems with reading a certain config file; this could of course be improved a lot.
- The nature of the error should be written.

I agree, care to change this to report which file could not be read?

Quoted 2 lines

- I don't know if the error report should go to stderr, the log, or both.

There is no stderr when udev is running :)
The log is all we have.

Quoted 2 lines

- Finally, I'm not sure how much sense it makes that the permissions file is not attempted read if reading the rules file failed..?

We should plod onward, as the user could just be relying on the default permission and root:root ownership, as is the case for the root disk when booting in a initrd/initramfs image.

thanks,

greg k-h

-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel