| Summary: | SELinux is preventing totem-plugin-vi from 'execute' accesses on the file /usr/bin/ntlm_auth. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Iñaki García Etxebarria <garetxe> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 17 | CC: | dominick.grift, dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i686 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:a9d50579b06b2243ee7cf47e169d0b1be10698eebb70dfc5c70fa21891b14a99 | ||
| Fixed In Version: | selinux-policy-3.10.0-118.fc17 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-04-25 05:00:11 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Any idea why totem is trying to execute ntlm_auth? (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. Thanks for your great analysys, this helps us a ton. We will dontaudit the access check in selinux-policy-3.10.0-118.fc17 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 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). Thanks the update, this fixes the problem for me. 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. |
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 : :