Bug 698884

Summary: SELinux is preventing /usr/libexec/mission-control-5 from 'read' accesses on the unix_stream_socket Unknown.
Product: [Fedora] Fedora Reporter: Fabien Archambault <marbolangos>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: accounts, bdpepple, bibo, christiankehe, dwalsh, elad, jmminaz, juanfr, luca.botti, luya, mdrazkowski, mgrepl, mik.es.mora, olivares14031, premamotion, reklov, sawrub, ycdmdj
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:7b7b700e23e71bd5f8aafef50ca6aad64c2737bfce48f5bb2c0a2834c3a52b7f
Fixed In Version: selinux-policy-3.9.16-18.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-02 03:38:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
SELinux log messages none

Description Fabien Archambault 2011-04-22 07:25:11 UTC
SELinux is preventing /usr/libexec/mission-control-5 from 'read' accesses on the unix_stream_socket Unknown.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that mission-control-5 should be allowed read access on the Unknown unix_stream_socket by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep mission-control /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:object_r:unlabeled_t:s0
Target Context                system_u:object_r:unlabeled_t:s0
Target Objects                Unknown [ unix_stream_socket ]
Source                        mission-control
Source Path                   /usr/libexec/mission-control-5
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           telepathy-mission-control-5.7.9-1.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-15.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.2-9.fc15.x86_64
                              #1 SMP Wed Mar 30 16:55:57 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Fri 22 Apr 2011 09:24:24 AM CEST
Last Seen                     Fri 22 Apr 2011 09:24:24 AM CEST
Local ID                      6268ad90-e2af-4b23-a04a-1970661e86cc

Raw Audit Messages
type=AVC msg=audit(1303457064.588:51): avc:  denied  { read } for  pid=1890 comm="mission-control" scontext=system_u:object_r:unlabeled_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=unix_stream_socket


type=SYSCALL msg=audit(1303457064.588:51): arch=x86_64 syscall=recvmsg success=no exit=EACCES a0=3 a1=7ffff819f440 a2=40000000 a3=0 items=0 ppid=1 pid=1890 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm=mission-control exe=/usr/libexec/mission-control-5 subj=system_u:object_r:unlabeled_t:s0 key=(null)

Hash: mission-control,unlabeled_t,unlabeled_t,unix_stream_socket,read

audit2allow

#============= unlabeled_t ==============
allow unlabeled_t self:unix_stream_socket read;

audit2allow -R

#============= unlabeled_t ==============
allow unlabeled_t self:unix_stream_socket read;

Comment 1 Miroslav Grepl 2011-04-22 09:12:44 UTC
Did you remove telepathy policy module?

Comment 2 Miroslav Grepl 2011-04-22 09:14:51 UTC
*** Bug 698887 has been marked as a duplicate of this bug. ***

Comment 3 Miroslav Grepl 2011-04-22 09:15:33 UTC
*** Bug 698888 has been marked as a duplicate of this bug. ***

Comment 4 Elad Alfassa 2011-04-22 09:20:08 UTC
(In reply to comment #1)
> Did you remove telepathy policy module?
I have the same problem, and it's a new install of fedora 15, I haven't removed anything.

Comment 5 Fabien Archambault 2011-04-22 09:20:41 UTC
I was just doing the update in F15 this morning.
Telepathy was not launched.

Comment 6 Daniel Walsh 2011-04-22 11:40:37 UTC
When the transition was removed in policy, Suddenly unconfined_r:telepathy* context is no longer valid.


If you kill all your telepathy processes, and restart them, the problem will go away.

Comment 7 Daniel Walsh 2011-04-22 11:41:11 UTC
You can just log out and back in to make sure.

Comment 8 Miroslav Grepl 2011-04-22 12:50:56 UTC
Yes, the transition was removed in selinux-policy-3.9.16-16.fc15.

Comment 9 Brian Pepple 2011-04-23 20:07:23 UTC
(In reply to comment #6)
> When the transition was removed in policy, Suddenly unconfined_r:telepathy*
> context is no longer valid.
> 
> 
> If you kill all your telepathy processes, and restart them, the problem will go
> away.

Hmmm, I've been getting hammered with bug reports and emails about empathy (or more specifically telepathy-mission-control) no longer working after installing this policy (selinux-policy-3.9.16-16) from the updates-testing repo. I installed it myself, and haven't been able to get empathy to work since then.

Comment 10 Daniel Walsh 2011-04-25 13:56:39 UTC
You have to killall the telepathy sessions and restart, or logout and everything shoudl work.

https://bugzilla.redhat.com/show_bug.cgi?id=699099

Comment 11 Brian Pepple 2011-04-25 14:04:57 UTC
(In reply to comment #10)
> You have to killall the telepathy sessions and restart, or logout and
> everything shoudl work.
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=699099

Did that (and also rebooted) and telepathy-mission-control is still being prevented from starting.

Comment 12 Elad Alfassa 2011-04-25 14:05:39 UTC
(In reply to comment #11)
> (In reply to comment #10)
> > You have to killall the telepathy sessions and restart, or logout and
> > everything shoudl work.
> > 
> > https://bugzilla.redhat.com/show_bug.cgi?id=699099
> 
> Did that (and also rebooted) and telepathy-mission-control is still being
> prevented from starting.
Same here.

Comment 13 Daniel Walsh 2011-04-25 14:45:07 UTC
Could you attach the AVC's after reboot?

Comment 14 Brian Pepple 2011-04-25 15:12:07 UTC
Created attachment 494685 [details]
SELinux log messages

Dan, I've downgraded my version of selinux-policy to get empathy working again, but I grepped my logs from the days I had the *-16 version installed for references to 'avc' & 'SELinux' in the hopes it will provide you with the information you're looking for. If there is any other info you need just contact me. Thanks!

Comment 15 Zdenek Janecek 2011-04-25 16:27:19 UTC
It was discussed in the different bug and I don't remember where. This should help:

sudo chcon -t bin_t /usr/libexec/mission-control*  /usr/libexec/telepathy*

I haven't any problem now.

Comment 16 Daniel Walsh 2011-04-25 17:27:19 UTC
I just recreated it also.  I made some updates to selinux policy pool that will allow the transition and allow telepathy to connect to any port for now.

Comment 17 Brian Pepple 2011-04-26 02:28:28 UTC
*** Bug 699567 has been marked as a duplicate of this bug. ***

Comment 18 Brian Pepple 2011-04-26 02:32:12 UTC
*** Bug 699157 has been marked as a duplicate of this bug. ***

Comment 19 Brian Pepple 2011-04-26 02:33:04 UTC
*** Bug 698932 has been marked as a duplicate of this bug. ***

Comment 20 Miroslav Grepl 2011-04-26 12:14:02 UTC
Fixed in selinux-policy-3.9.16-17.fc15 which is available from koji for now.

Comment 21 Rick V. 2011-04-26 16:38:37 UTC
Package: telepathy-mission-control-5.7.9-1.fc15
Architecture: x86_64
OS Release: Fedora release 15 (Lovelock)


Comment
-----
Logging into my system

Comment 22 Angus Salkeld 2011-04-27 04:02:31 UTC
Package: telepathy-mission-control-5.7.9-1.fc15
Architecture: x86_64
OS Release: Fedora release 15 (Lovelock)


Comment
-----
Tried to start Empathy and it crashed

Comment 23 Graeme Clifton 2011-04-27 11:37:07 UTC
Package: telepathy-mission-control-5.7.9-1.fc15
Architecture: x86_64
OS Release: Fedora release 15 (Lovelock)


Comment
-----
Happens everytime I launch empathy.

Comment 24 Daniel Walsh 2011-04-27 12:26:08 UTC
Have you tried the new policy?

Comment 25 Brian Pepple 2011-04-27 13:11:00 UTC
(In reply to comment #24)
> Have you tried the new policy?

Yes, I've installed selinux-policy-3.9.16-17, and it does fix the telepathy bug introduced from selinux-policy-3.9.16-16. It would probably be worthwhile to push selinux-policy-*.17 to bodhi so this bug doesn't keep getting dup bug comments.

Comment 26 Miroslav Grepl 2011-04-27 13:13:27 UTC
Yes, which I will do today.

Comment 27 Fedora Update System 2011-04-27 15:21:04 UTC
selinux-policy-3.9.16-18.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-18.fc15

Comment 28 Robert Swain 2011-04-27 15:57:25 UTC
Package: telepathy-mission-control-5.7.9-1.fc15
Architecture: x86_64
OS Release: Fedora release 15 (Lovelock)


Comment
-----
Starting up Empathy

Comment 29 Fedora Update System 2011-04-28 19:06:15 UTC
Package selinux-policy-3.9.16-18.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.9.16-18.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-18.fc15
then log in and leave karma (feedback).

Comment 30 Dennis Appelon Nielsen 2011-04-28 19:58:24 UTC
Package: telepathy-mission-control-5.7.9-1.fc15
Architecture: x86_64
OS Release: Fedora release 15 (Lovelock)


Comment
-----
I Run Fedora 15 x86_64 and every time I start empathy I get this error

Comment 31 Daniel Walsh 2011-04-28 20:31:53 UTC
What version of selinux-policy are you running?

Comment 32 Fedora Update System 2011-05-02 03:37:56 UTC
selinux-policy-3.9.16-18.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.