Bug 814954 - SELinux is preventing totem-plugin-vi from 'execute' accesses on the file /usr/bin/ntlm_auth.
Summary: SELinux is preventing totem-plugin-vi from 'execute' accesses on the file /us...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a9d50579b06b2243ee7cf47e169...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-21 14:52 UTC by Iñaki García Etxebarria
Modified: 2012-04-25 05:00 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.10.0-118.fc17
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-25 05:00:11 UTC
Type: ---


Attachments (Terms of Use)

Description Iñaki García Etxebarria 2012-04-21 14:52:51 UTC
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.3.2-1.fc17.i686
time:           Sat 21 Apr 2012 04:52:58 PM CEST

description:
:SELinux is preventing totem-plugin-vi from 'execute' accesses on the file /usr/bin/ntlm_auth.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that totem-plugin-vi should be allowed execute access on the ntlm_auth file 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 totem-plugin-vi /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c
:                              0.c1023
:Target Context                system_u:object_r:winbind_helper_exec_t:s0
:Target Objects                /usr/bin/ntlm_auth [ file ]
:Source                        totem-plugin-vi
:Source Path                   totem-plugin-vi
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           samba4-client-4.0.0-41alpha18.fc17.i686
:Policy RPM                    selinux-policy-3.10.0-116.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.2-1.fc17.i686 #1 SMP Fri Apr 13
:                              21:06:40 UTC 2012 i686 i686
:Alert Count                   1
:First Seen                    Sat 21 Apr 2012 04:46:51 PM CEST
:Last Seen                     Sat 21 Apr 2012 04:46:51 PM CEST
:Local ID                      1b0a28e8-20d2-488d-b45f-f614e5748880
:
:Raw Audit Messages
:type=AVC msg=audit(1335019611.595:320): avc:  denied  { execute } for  pid=3271 comm="totem-plugin-vi" name="ntlm_auth" dev="dm-2" ino=163980 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:winbind_helper_exec_t:s0 tclass=file
:
:
:Hash: totem-plugin-vi,mozilla_plugin_t,winbind_helper_exec_t,file,execute
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 Daniel Walsh 2012-04-22 11:54:17 UTC
Any idea why totem is trying to execute ntlm_auth?

Comment 2 Iñaki García Etxebarria 2012-04-22 13:36:49 UTC
(In reply to comment #1)
> Any idea why totem is trying to execute ntlm_auth?
It happens every time I try to play a youtube video (for example) using the totem plugin for firefox.

It seems to be due to this commit in libsoup (which totem uses):
https://bugzilla.gnome.org/show_bug.cgi?id=650940

In particular, this part of the patch:
+#ifdef USE_NTLM_AUTH
+	priv->ntlm_auth_accessible = (access (NTLM_AUTH, X_OK) == 0);
+#endif
This runs in soup_auth_manager_ntlm_init in libsoup/soup-auth-manager-ntlm.c. It seems like the access call triggers the SELinux warning.

I checked this by surronding changing that line to
---
access ("/usr/bin/sudo", X_OK);
priv->ntlm_auth_accessible = (access (NTLM_AUTH, X_OK) == 0);
access ("/usr/bin/su", X_OK);
---
and sure enough now the warning when loading youtube videos is:
----
type=AVC msg=audit(1335101333.436:331): avc:  denied  { execute } for  pid=15895 comm="totem-plugin-vi" name="sudo" dev="dm-2" ino=59584 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:sudo_exec_t:s0 tclass=file
type=AVC msg=audit(1335101333.436:332): avc:  denied  { execute } for  pid=15895 comm="totem-plugin-vi" name="ntlm_auth" dev="dm-2" ino=163980 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:winbind_helper_exec_t:s0 tclass=file
type=AVC msg=audit(1335101333.436:333): avc:  denied  { execute } for  pid=15895 comm="totem-plugin-vi" name="su" dev="dm-2" ino=142014 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:su_exec_t:s0 tclass=file
---

Functionality is not affected, though, the video pays fine.

Comment 3 Daniel Walsh 2012-04-23 15:34:29 UTC
Thanks for your great analysys,  this helps us a ton.

We will dontaudit the access check in selinux-policy-3.10.0-118.fc17

Comment 4 Fedora Update System 2012-04-24 01:07:57 UTC
selinux-policy-3.10.0-118.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-118.fc17

Comment 5 Fedora Update System 2012-04-24 03:15:53 UTC
Package selinux-policy-3.10.0-118.fc17:
* should fix your issue,
* was pushed to the Fedora 17 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.10.0-118.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-6452/selinux-policy-3.10.0-118.fc17
then log in and leave karma (feedback).

Comment 6 Iñaki García Etxebarria 2012-04-24 19:03:26 UTC
Thanks the update, this fixes the problem for me.

Comment 7 Fedora Update System 2012-04-25 05:00:11 UTC
selinux-policy-3.10.0-118.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


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