Bug 677081 - SELinux is preventing /usr/libexec/totem-plugin-viewer from 'unlink' accesses on the file registry.x86_64.bin.
Summary: SELinux is preventing /usr/libexec/totem-plugin-viewer from 'unlink' accesses...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:3020c4ad646...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-13 07:31 UTC by John Watzke
Modified: 2011-04-04 11:38 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-16 15:58:27 UTC
Type: ---


Attachments (Terms of Use)

Description John Watzke 2011-02-13 07:31:06 UTC
SELinux is preventing /usr/libexec/totem-plugin-viewer from 'unlink' accesses on the file registry.x86_64.bin.

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

If you believe that totem-plugin-viewer should be allowed unlink access on the registry.x86_64.bin 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                unconfined_u:object_r:user_home_t:s0
Target Objects                registry.x86_64.bin [ file ]
Source                        totem-plugin-vi
Source Path                   /usr/libexec/totem-plugin-viewer
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           totem-mozplugin-2.91.6-2.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.13-9.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.38-0.rc4.git0.1.fc15.x86_64 #1 SMP Tue Feb 8
                              01:57:21 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Fri 11 Feb 2011 03:17:52 PM CST
Last Seen                     Fri 11 Feb 2011 03:17:52 PM CST
Local ID                      375d4bce-046e-48eb-8c36-2f97a915545a

Raw Audit Messages
type=AVC msg=audit(1297459072.453:82): avc:  denied  { unlink } for  pid=3988 comm="totem-plugin-vi" name="registry.x86_64.bin" dev=dm-2 ino=4587782 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file


type=SYSCALL msg=audit(1297459072.453:82): arch=x86_64 syscall=rename success=yes exit=0 a0=2661940 a1=24d4d00 a2=0 a3=0 items=0 ppid=1 pid=3988 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 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,user_home_t,file,unlink

audit2allow

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t user_home_t:file unlink;

audit2allow -R

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t user_home_t:file unlink;

Comment 1 John Watzke 2011-02-13 07:32:01 UTC
I got this AVC denial by simply starting up and using totem.

Comment 2 Miroslav Grepl 2011-02-16 15:58:27 UTC
Could you try to run restorecon on your home dir

# restorecon -R -v ~/

and please reopen if this happens again. Thank you.


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