summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2005-08-22*_id: fix zero length in set_str()Kay Sievers
Thanks to Olaf Hering <olh@suse.de> Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-18068 releaseGreg KH
2005-08-18add EXTRAS documentation to the README file.Greg KH
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-18fix printed udevmonitor headerKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-18bring std(in|out|err) fd's in a sane stateKay Sievers
If the kernel forks us as an usermodhelper, we don't have any of the standard fd's and the first open() will start with fd=0. This is inherited to all forked childs and confuses later forked helpers where we want to read from a pipe connected to the helpers stdout/stderr. # ls -l /proc/$(pidof udevd)/fd total 6 dr-x------ 2 root root 0 2005-08-18 12:44 . dr-xr-xr-x 4 root root 0 2005-08-18 12:44 .. lrwx------ 1 root root 64 2005-08-18 12:44 0 -> /dev/null lrwx------ 1 root root 64 2005-08-18 12:44 1 -> socket:[1274617] lr-x------ 1 root root 64 2005-08-18 12:44 2 -> pipe:[1274618] l-wx------ 1 root root 64 2005-08-18 12:44 3 -> pipe:[1274618] lrwx------ 1 root root 64 2005-08-18 12:44 4 -> socket:[1274619] lrwx------ 1 root root 64 2005-08-18 12:44 5 -> socket:[1274620] Ouch! This will obviously not redirect sterr, it will kill the pipe we established between the parent and the child: devnull = open("/dev/null", O_RDWR); dup2(devnull, STDERR_FILENO); Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-18fix typo in cdrom_id syslogKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-18Merge rsync://rsync.kernel.org/pub/scm/linux/hotplug/udevKay Sievers
2005-08-17cdrom_id: change err() to info() to help with debugging problemsGreg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-17Always open the cdrom drive in non-blocking mode in cdrom_idGreg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-17vol_id: fix sloppy error handlingKay Sievers
vol_id segfaults if read() fails on broken devices reporting the wrong size. Thanks to Erhard Schultchen for the debugging. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-16ENV{TEST}=="1" compares and ENV{TEST}="1" sets the environmentKay Sievers
This can be uses to export stuff to the event environment or to carry a state from one rule to another, like enabling/disabling later rules conditionally. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-15move udevmonitor to /usr/sbinKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-15cleanup some debug output and move to info level + unify select() loopsKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-13067 releaseGreg Kroah-Hartman
2005-08-13don't fail too bad, if /dev/null does not existKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-13fix udevstart event ordering, we want /dev/null very earlyKay Sievers
2005-08-13Merge rsync://rsync.kernel.org/pub/scm/linux/hotplug/udevKay Sievers
2005-08-13fix more compiler warnings ...Kay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-12added the cdrom.h #defines directly into the cdrom_id.c fileGreg Kroah-Hartman
This solves the problem with building the file against old kernel header files. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-12fix make install, as we don't provide a default rule set anymoreKay Sievers
Several people complained about the "default" rules and the "default" setup. Here we start to remove things where we can't hava a "default". The best examples for rules are in the distro folders, just pick the one that matches your needs and start from there. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-12update SUSE rulesKay Sievers
don't use ID_TYPE, so cdroms will be in /dev/disk/ Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-11066 releaseGreg KH
2005-08-11tweak the gentoo rules some more.Greg KH
- make the persistant rules smaller - add usbfs-like device node support Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-11changed location of gentoo helper apps to be /sbin instead of in scripts dirGreg KH
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-11Change the gentoo rules to use cdrom_id instead of cdsymlink.shGreg KH
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-11fix klibc build issue in cdrom_id.cGreg KH
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-11added cdrom_id to the build checkGreg KH
2005-08-11changed cdrom_id exports to be easier to understand and consistant with ↵Greg KH
other _id programs. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-11Created cdrom_id program to make it easier to determine cdrom typesGreg KH
Based on the framework from ata_id by Kay. Now we can drop the cdsymlinks.sh and .c files Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-11update gentoo rule file.Greg KH
This fixes the issue of cdroms not showing up in the proper group, and them showing up in /dev/cd/ for the persistant names. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-11move some logging to the info levelKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-11add Usage: to udevmonitor and udevcontrolKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-11allow logging of all output from executed toolsKay Sievers
If USE_DEBUG=true and udev_log="debug", all output of the forked programs to stdout and stderr is send to syslog. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-11update SUSE rulesKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-10fix udevinfo outputThierry Vignaud
2005-08-10split udev_util in several filesKay Sievers
It too big for the small tools to link against for only the log function. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-10update SUSE rulesKay Sievers
Tape naming is harder than expected, go back to block devices only. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-09trivial text cleanupsKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-09remove example rules and put the dev.d stuff into the run_directory folderKay Sievers
The distro rules are the best example you can get and the use of dev.d/ is no longer recommended. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-09update READMEKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-09more distro rules updatesKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-09add firmware_helper to load firmwareKay Sievers
From: Bill Nottingham <notting@redhat.com> Changed reading of firmware blob to mmap and let firmware_helper follow the setting of the log level with UDEV_LOG.
2005-08-09update SUSE rulesKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-09add SUSE rulesKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-09update distro rules filesKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-08add flag for reading of precompiled rulesKay Sievers
Rules can be precompiled and stored on disk for initramfs, to avoid parsing the rules with every event again and again. Also the OWNER and GROUP names are already resolved to numerical values in the compiled rules. This flag is used for the upcoming move of the rules parsing into udevd: If the real root is mounted udevd is started and parses the rules only once. The event processes will inherit the already parsed rules from the daemon, so we want to ignore any precompiled rules and use the real rules files and watch the filesystem for changes to reload the rules automatically. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-08allow clean shutdown of udevdKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-08switch some strlcpy's to memcpyKay Sievers
strlcpy counts the sourec string lengt and is therefore not suitable to copy a defined length of characters from one string to another. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-05read sysfs attribute also from parent class deviceKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-04updated gentoo rule file to handle removable ide devices.Greg KH
Thanks to Kay for the quick fix. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>