[jk@blackdown.de: Bug#271989: hal: Should open cdrom devices with O_NONBLOCK]

Sjoerd Simons sjoerd at luon.net
Thu Sep 16 11:00:00 PDT 2004

I got the bug report below through debians bts. Do people mind if i just
forward them here or is filing them in the freedesktop bugzilla preferred ?


----- Forwarded message from Juergen Kreileder <jk at blackdown.de> -----

Date: Thu, 16 Sep 2004 19:21:57 +0200
From: Juergen Kreileder <jk at blackdown.de>
Subject: Bug#271989: hal: Should open cdrom devices with O_NONBLOCK
To: Debian Bug Tracking System <submit at bugs.debian.org>
Reply-To: Juergen Kreileder <jk at blackdown.de>, 271989 at bugs.debian.org
User-Agent: Gnus/5.110003 (No Gnus v0.3) XEmacs/21.4 (Security Through
	Obscurity, linux)

Package: hal
Version: 0.2.97+cvs20040907-1
Severity: normal

cdrom devices should be opened with O_NONBLOCK.
hald doesn't seem to do that currently: when CDO_CHECK_TYPE is enable
(ie. /proc/sys/dev/cdrom/check_media is 1), dmesg shows message like

| cdrom: pid 2737 must open device O_NONBLOCK!
| cdrom: open failed.

coming from hald.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-rc2

Versions of packages hal depends on:
ii  adduser             3.59                 Add and remove users and groups
ii  dbus-1              0.22-1.0.1           simple interprocess messaging syst
ii  dbus-glib-1         0.22-1.0.1           simple interprocess messaging syst
ii  libc6               2.3.2.ds1-16         GNU C Library: Shared libraries an
ii  libcap1             1:1.10-14            support for getting/setting POSIX.
ii  libexpat1           1.95.6-8             XML parsing C library - runtime li
ii  libglib2.0-0        2.4.6-2              The GLib library of C routines
ii  libhal0             0.2.97+cvs20040907-1 Hardware Abstraction Layer - share
ii  libpopt0            1.7-5                lib for parsing cmdline parameters
ii  libselinux1         1.16-2               SELinux shared libraries
ii  pciutils            1:2.1.11-15          Linux PCI Utilities
ii  python              2.3.4-4              An interactive high-level object-o
ii  python2.3-dbus      0.22-1.0.1           simple interprocess messaging syst
ii  python2.3-glade2    2.3.96-1             GTK+ bindings: Glade support
ii  python2.3-gnome2    2.5.90-1             Python bindings for the GNOME desk
ii  udev                0.031-2              /dev/ management daemon
ii  usbutils            0.11+cvs20040318-3   USB console utilities

-- no debconf information

A lot of people I know believe in positive thinking, and so do I.  I
believe everything positively stinks.
		-- Lew Col
hal mailing list
hal at freedesktop.org

More information about the Hal mailing list