Hide Forgot
Description of problem: Current rawhide system w/a serial console set up encounters large amounts of spew at startup from the console-kit-daemon. (currently unable to find a ConsoleKit bugzilla component, this seemed to be as close as I could get). Console spew: Starting console-kit daemon: ** (console-kit-daemon:2159): CRITICAL **: Unable to open console: Invalid argument ioctl VT_GETSTATE: Bad file descriptor [ OK ] ** (console-kit-daemon:2159): WARNING **: Error waiting for native console 56 activation: Bad file descriptor ** (console-kit-daemon:2159): WARNING **: Error waiting for native console 58 activation: Bad file descriptor ** (console-kit-daemon:2159): WARNING **: Error waiting for native console 59 activation: Bad file descriptor [...repeats around 60+ times for various native console values between 1 and 62...]
Okay, ConsoleKit component exists now...
Jon, do you have any idea about this? Otherwise I'll try to look into it next week. Thanks.
Jarod, as far as I understand the problem is only CK spewing errors; it doesn't sabotage any of your consoles right? Thanks.
Correct, I can still login on vt1, serial console and via gdm without a problem.
I should probably add that a graphical login also results in this getting dumped on the serial console: audit(1171654461.698:5): user pid=1963 uid=81 auid=4294967295 subj=system_u:system_r:system_dbusd_t:s0 msg='avc: denied { send_msg } for msgtype=method_call interface=org.freedesktop.ConsoleKit.Manager member=OpenSessionWithParameters dest=org.freedesktop.ConsoleKit spid=2544 tpid=2222 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:system_r:initrc_t:s0 tclass=dbus : exe="/bin/dbus-daemon" (sauid=81, hostname=?, addr=?, terminal=?)'
CK is using the getfd.c (copied from the kbd package) to get a fd that can be used with console ioctls. Apparently, getfd() is not finding one. I'll try to reduce the spew when this is the case.
Should be fixed in git. http://gitweb.freedesktop.org/?p=ConsoleKit.git;a=commit;h=5376650940e9018a0d3e97367d2979f90af749bc
I munged said patch to apply to the ConsoleKit we've got in rawhide right now, and the results certainly look much better. All I see on the serial console now is: Starting console-kit daemon: ** (console-kit-daemon:2165): WARNING **: Unable to open console: Invalid argument [ OK ]
Probably ConsoleKit needs to close stdin, stdout and stderr when daemonizing...
*** Bug 231010 has been marked as a duplicate of this bug. ***
*** Bug 230937 has been marked as a duplicate of this bug. ***
Created attachment 150424 [details] daemonize properly Jon, how about this patch? This is what I just put in Rawhide for the 0.2.0 release.
Anyway, this patch is in our 0.2.0 packages and should fix any spews from the ConsoleKit daemon. Please reopen if this doesn't work. Thanks.
Yeah it is fine. But this bug shows why I didn't close stderr. It helped us find a bug :)
Created attachment 303491 [details] grep console- of 2008-04-24 week's notes I don't know if ConsoleKit has been quiet since 2007-03, but at the moment on rawhide,it is giving var/log/messages re environ, glib assertions, passed as NULL warnings. v ConsoleKit-0.2.10-3.fc9.i386
Getting very similar messages to bug 230937, one year after this fix. Reopening.
That looks like an entirely different issue to me. Can you please open a new bug. Thanks.