Bug 611159 - ConsoleKit executes udev-acl.ck with incorrect arguments
Summary: ConsoleKit executes udev-acl.ck with incorrect arguments
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: ConsoleKit
Version: 13
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Lennart Poettering
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-04 03:40 UTC by qwerty543
Modified: 2011-06-27 19:24 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-27 19:24:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description qwerty543 2010-07-04 03:40:36 UTC
Description of problem:

At some point (e.g. login from text console) console-kit-daemon executes everything from /usr/lib/ConsoleKit/run-seat.d including udev-acl from udev package. This program should be called with udev-acl --action=some_action parameter, but console-kit-daemon executes udev-acl some_action. This causes 15s delay when you try to login from console (this is probably another bug of console-kit-daemon, it probably wait for timeout when process started from /usr/lib/ConsoleKit/run-seat.d fails)


Version-Release number of selected component (if applicable):

udev-151-10.fc13.i686
ConsoleKit-0.4.1-5.fc13.i686


How reproducible:

Try to login from text console

Comment 1 qwerty543 2010-07-21 19:12:55 UTC
I realize, that /usr/lib/ConsoleKit/run-seat.d/udev-acl.ck supports only three actions (add, change, remove). So even with --action=some_action parameter ConsoleKit calls this program with arguments (seat_added, seat_active_session_changed) that make no sense.

At this point /usr/lib/ConsoleKit/run-seat.d/udev-acl.ck doesn't do anything useful and causes 15s login delays. To workaround this problem you can simple remove /usr/lib/ConsoleKit/run-seat.d/udev-acl.ck and for future updates it would be nice to remove this useless file from udev package.

Comment 2 Michal Schmidt 2010-08-03 09:07:24 UTC
From looking at the source, udev-acl DOES understand the "seat_active_session_changed" parameter. What exactly makes you think it does not?
And it's not useless, it applies the ACLs to devices marked with ACL_MANAGE=1 by udev (sound cards, for example).

I'm not seeing the delay you describe. More investigation of your problem is needed. Perhaps the delay is really in udev-acl, but it's not clear why it is occuring. Could you perhaps strace it?

Is this command quiet?: rpm -V udev ConsoleKit

Comment 3 qwerty543 2010-08-04 19:45:29 UTC
`rpm -V udev ConsoleKit` is quiet

I was a bit confused how these *Kits works, but now I found what causing udev-acl.ck delay and this message in log files

console-kit-daemon[1586]: WARNING: The program /usr/lib/ConsoleKit/run-seat.d/udev-acl.ck didn't exit within 15 seconds; killing it


At some point udev-acl.ck tries to read data from /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/PNP0C0A:00/power_supply/BAT0/uevent, but this read call almost always take more than 15s to complete.


[user@host ~]$ date; cat /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/PNP0C0A:00/power_supply/BAT0/uevent; date
Wed Aug  4 14:43:38 CDT 2010
POWER_SUPPLY_NAME=BAT0
POWER_SUPPLY_TYPE=Battery
POWER_SUPPLY_STATUS=Unknown
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_VOLTAGE_MIN_DESIGN=14800000
POWER_SUPPLY_VOLTAGE_NOW=-1000
POWER_SUPPLY_CURRENT_NOW=-1000
POWER_SUPPLY_CHARGE_FULL_DESIGN=6000000
POWER_SUPPLY_CHARGE_FULL=6000000
POWER_SUPPLY_CHARGE_NOW=-1000
POWER_SUPPLY_MODEL_NAME=L5D
POWER_SUPPLY_MANUFACTURER=ASUSTek
POWER_SUPPLY_SERIAL_NUMBER= 
Wed Aug  4 14:44:01 CDT 2010

btw: the battery is few years dead

Comment 4 Fedora Admin XMLRPC Client 2010-08-24 22:19:35 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Bug Zapper 2011-06-01 14:49:19 UTC
This message is a reminder that Fedora 13 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 13.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '13'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 13's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 13 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 6 Bug Zapper 2011-06-27 19:24:06 UTC
Fedora 13 changed to end-of-life (EOL) status on 2011-06-25. Fedora 13 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.