HAL leaking file descriptor

Richard Hughes hughsient at gmail.com
Thu Jun 12 07:27:07 PDT 2008


With reference to: https://bugzilla.redhat.com/show_bug.cgi?id=447195

Quoting Dan:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I think this is a leaked file descriptor from hal.  Hal opens the lock
file for write and then fails to call fcntl(fd,F_SETFD, FD_CLOSEXEC)

When the confined mount program runs, the SELinux kernel notices the open file
descriptor, checks the domain to see if it has access, then closes it with the
error.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

There's a ton of duplicates, and so I'm going to push this into Fedora
this afternoon. Okay to commit upstream?

Richard.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-cloexec.patch
Type: text/x-patch
Size: 439 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20080612/4f95624d/attachment.bin 


More information about the hal mailing list