Bug 436176 - telinit doesn't seem to be able to connect
Summary: telinit doesn't seem to be able to connect
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: upstart
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Casey Dahlin
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-03-05 19:19 UTC by Kevin Fenzi
Modified: 2014-06-18 08:46 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-03-11 17:18:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
strace -f of telinit 6 (4.33 KB, text/plain)
2008-03-06 04:06 UTC, Kevin Fenzi
no flags Details

Description Kevin Fenzi 2008-03-05 19:19:06 UTC
/sbin/telinit 6

gives: 

telinit: Unable to send message: Connection refused

Doesn't seem to be a selinux related issue.

Comment 1 Bill Nottingham 2008-03-06 03:45:00 UTC
Is this after installing upstart but before rebooting? What do you get if you
strace it?

Comment 2 Kevin Fenzi 2008-03-06 04:05:12 UTC
Fresh rawhide install from today. 
Reboot before or after, doesn't matter... does the same... 

I'll attach a strace output. 

Comment 3 Kevin Fenzi 2008-03-06 04:06:19 UTC
Created attachment 296993 [details]
strace -f of telinit 6

Comment 4 Bill Nottingham 2008-03-06 04:51:09 UTC
I'm assuming upstart's init still seems to be running OK?

Comment 5 Kevin Fenzi 2008-03-06 07:12:54 UTC
Yeah, seems to be: 

[root@rawhide-20080305x8664 ~]# ps auxww | grep init
root         1  0.0  0.0  10440   740 ?        Ss   Mar05   0:01 init [5]      
                                                        



Comment 6 Bill Nottingham 2008-03-06 17:53:14 UTC
Do things like 'initctl events' and similar work?

Comment 7 Kevin Fenzi 2008-03-06 18:32:24 UTC
Nope.

[root@rawhide-20080305x8664 ~]# initctl events
initctl: Unable to send message: Connection refused

Happy to provide ssh access to the vm if you want to poke around. 

Comment 8 Joe Nall 2008-03-11 16:59:13 UTC
I see this in selinux mls policy.

Mar 11 11:45:49 rawhide kernel: type=1400 audit(1205253937.770:3): avc:  denied  { sendto } for  
pid=1 comm="init" path=002F636F6D2F7562756E74752F757073746172742F31343132 
scontext=system_u:system_r:init_t:s0-s15:c0.c1023 tcontext=system_u:system_r:initrc_t:s0-
s15:c0.c1023 tclass=unix_dgram_socket

If you grep for initrc_t in /var/log/messages or /var/log/audit/audit.log do you see similar avcs (without 
the -s15: c0.c1023)?

Comment 9 Joe Nall 2008-03-11 17:02:21 UTC
Duplicate of 436783?

Comment 10 Kevin Fenzi 2008-03-11 17:09:51 UTC
On further poking, my issue seemed to be that sysvinit was installed as well as
upstart, so /sbin/init was sysvinit and telinet was from upstart. ;) 

I couldn't duplicate it after newer rawhides removed everything from sysvinit. 

I also did try with 'setenforce 0' and didn't see any selinux issues. 

i think this can be CLOSED->rawhide for now. 



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