FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

LinkBack Thread Tools
Old 01-03-2008, 11:07 AM
Tim Waugh
Default ConsoleKit vs udev, ACLs getting lost

The problem I'm trying to solve is described in bug #424331:

The background is that HPLIP uses libusb to communicate with HP USB
printers, and both the printing system (running in group 'lp') and the
current console user (or uses) need access in that way. The console
user needs this access for ink-level checking and other status functions
provided by the hp-toolbox program, and potentially for using the
in-built scanner with libsane.

When the printer is plugged in, the device node that libusb uses for it
is in /dev/bus/usb/.../... and we want it to have group read/write
access for 'lp', and user read/write access for each console user.

The intention is to have udev rules set the group ownership to 'lp', and
to grant group read/write permissions, and to have the HAL rules grant a
'rw' ACL for each console user. I originally described this approach


It worked well, but a recent kernel update seems to have revealed a race
condition. The ACL is granted (by hal-acl-tool) before the 'MODE=...'
udev rule is applied, and this ordering messes up the ACL permissions
(either the ACL mask or the group permissions end up being restricted).

The problem boils down to this: How can I ensure that the ACL is granted
*after* the mode permissions have been set, i.e. after the udev rules
have completed, not before?


fedora-devel-list mailing list

Thread Tools

All times are GMT. The time now is 09:58 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org