Bug 906085 - SELinux is preventing /usr/libexec/totem-plugin-viewer from 'write' accesses on the directory /etc/pki/nssdb.
Summary: SELinux is preventing /usr/libexec/totem-plugin-viewer from 'write' accesses ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:e78a78c52473500b3cbd9664d42...
: 906087 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-30 19:52 UTC by Robert
Modified: 2013-02-11 04:55 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-02-11 04:55:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Robert 2013-01-30 19:52:11 UTC
Description of problem:
SELinux is preventing /usr/libexec/totem-plugin-viewer from 'write' accesses on the directory /etc/pki/nssdb.

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

If you believe that totem-plugin-viewer should be allowed write access on the nssdb directory 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:cert_t:s0
Target Objects                /etc/pki/nssdb [ dir ]
Source                        totem-plugin-vi
Source Path                   /usr/libexec/totem-plugin-viewer
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           totem-mozplugin-3.6.3-2.fc18.x86_64
Target RPM Packages           nss-3.14.1-3.fc18.x86_64
Policy RPM                    selinux-policy-3.11.1-73.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.7.4-204.fc18.x86_64 #1 SMP Wed
                              Jan 23 16:44:29 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-01-30 21:50:59 EET
Last Seen                     2013-01-30 21:50:59 EET
Local ID                      1a515052-e969-4fb8-b889-d990181d0d8d

Raw Audit Messages
type=AVC msg=audit(1359575459.719:447): avc:  denied  { write } for  pid=2071 comm="totem-plugin-vi" name="nssdb" dev="dm-1" ino=1963201 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:cert_t:s0 tclass=dir


type=SYSCALL msg=audit(1359575459.719:447): arch=x86_64 syscall=access success=no exit=EACCES a0=7f98dacd15a8 a1=2 a2=2474af0 a3=7fff2e518e30 items=0 ppid=1 pid=2071 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=2 tty=(none) comm=totem-plugin-vi exe=/usr/libexec/totem-plugin-viewer subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: totem-plugin-vi,mozilla_plugin_t,cert_t,dir,write

audit2allow

#============= mozilla_plugin_t ==============
#!!!! The source type 'mozilla_plugin_t' can write to a 'dir' of the following types:
# cache_home_t, data_home_t, pulseaudio_home_t, gnome_home_type, xdm_tmp_t, gnome_home_t, gconf_home_t, home_cert_t, mozilla_home_t, user_home_dir_t, mplayer_home_t, mozilla_plugin_tmp_t, tmpfs_t, config_home_t, user_fonts_cache_t, tmp_t, user_tmp_t, user_tmpfs_t, mozilla_plugin_tmpfs_t, user_home_t

allow mozilla_plugin_t cert_t:dir write;

audit2allow -R

#============= mozilla_plugin_t ==============
#!!!! The source type 'mozilla_plugin_t' can write to a 'dir' of the following types:
# cache_home_t, data_home_t, pulseaudio_home_t, gnome_home_type, xdm_tmp_t, gnome_home_t, gconf_home_t, home_cert_t, mozilla_home_t, user_home_dir_t, mplayer_home_t, mozilla_plugin_tmp_t, tmpfs_t, config_home_t, user_fonts_cache_t, tmp_t, user_tmp_t, user_tmpfs_t, mozilla_plugin_tmpfs_t, user_home_t

allow mozilla_plugin_t cert_t:dir write;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.7.4-204.fc18.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-01-31 06:57:40 UTC
*** Bug 906087 has been marked as a duplicate of this bug. ***

Comment 2 Miroslav Grepl 2013-01-31 07:05:37 UTC
Did you enable shared DB feature in Mozilla applications?

Comment 3 Daniel Walsh 2013-01-31 15:51:11 UTC
Miroslav this is an access check, which we should just add a dontaudit_all access check.

Comment 4 Miroslav Grepl 2013-02-01 09:10:36 UTC
Ah, you are right.

Comment 5 Fedora Update System 2013-02-05 09:23:28 UTC
selinux-policy-3.11.1-76.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-76.fc18

Comment 6 Fedora Update System 2013-02-08 02:35:44 UTC
Package selinux-policy-3.11.1-76.fc18:
* should fix your issue,
* was pushed to the Fedora 18 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.11.1-76.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-2101/selinux-policy-3.11.1-76.fc18
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2013-02-11 04:55:02 UTC
selinux-policy-3.11.1-76.fc18 has been pushed to the Fedora 18 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.