udev and proc files
Matias Féliciano
feliciano.matias at free.fr
Sat Oct 16 09:48:07 UTC 2004
Le samedi 16 octobre 2004 à 19:26 +1000, Russell Coker a écrit :
> A copy of bash which is spawned by udev attempts an ioctl access
> to /proc/ide/ide0/hda/media. This access doesn't do any harm, but possibly
> indicates some other problem, is bash supposed to be accessing that file?
>
Perhaps :
/etc/udev/rules.d/50-udev.rules
KERNEL="hd[a-z]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom", SYMLINK="cdrom%e"
KERNEL="hd[a-z]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="floppy", SYMLINK="floppy%e
...
KERNEL="hd[a-z]", PROGRAM="/etc/udev/scripts/check-cdrom.sh %k DVD", SYMLINK="dvd%e"
...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message num?riquement sign?e
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20041016/c5e1c6a7/attachment.sig>
More information about the fedora-devel-list
mailing list