Bug 889707

Summary: SELinux is preventing /usr/bin/mv from 'relabelfrom' accesses on the file xdg-screensaver-stefan--0.
Product: [Fedora] Fedora Reporter: Stefan Ringel <mail>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: abyss.7, dominick.grift, dwalsh, fedyapupkin, groknok, lvrabec, mgrepl, mrblack, sabugiense, steinach2810
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:336417c0fd65637481b3df721d6ab499befd0d59a798f4b4bd770122ac3ed3b4
Fixed In Version: selinux-policy-3.11.1-108.fc18 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-05 06:07:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stefan Ringel 2012-12-22 19:33:25 UTC
Description of problem:
SELinux is preventing /usr/bin/mv from 'relabelfrom' accesses on the file xdg-screensaver-stefan--0.

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

If sie denken, dass es mv standardmässig erlaubt sein sollte, relabelfrom Zugriff auf xdg-screensaver-stefan--0 file zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# grep mv /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:mozilla_plugin_tmp_t:s0
Target Objects                xdg-screensaver-stefan--0 [ file ]
Source                        mv
Source Path                   /usr/bin/mv
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           coreutils-8.17-7.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-66.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.6.11-3.fc18.x86_64 #1 SMP Mon
                              Dec 17 21:35:39 UTC 2012 x86_64 x86_64
Alert Count                   2
First Seen                    2012-12-22 20:31:21 CET
Last Seen                     2012-12-22 20:31:21 CET
Local ID                      78195b4e-1636-4ad3-863b-78c42db6c295

Raw Audit Messages
type=AVC msg=audit(1356204681.637:393): avc:  denied  { relabelfrom } for  pid=1610 comm="mv" name="xdg-screensaver-stefan--0" dev="tmpfs" ino=78521 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:mozilla_plugin_tmp_t:s0 tclass=file


type=SYSCALL msg=audit(1356204681.637:393): arch=x86_64 syscall=fsetxattr success=no exit=EACCES a0=8 a1=7fff8612cb80 a2=1da0a00 a3=2e items=0 ppid=1602 pid=1610 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=2 comm=mv exe=/usr/bin/mv subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: mv,mozilla_plugin_t,mozilla_plugin_tmp_t,file,relabelfrom

audit2allow

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t mozilla_plugin_tmp_t:file relabelfrom;

audit2allow -R

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t mozilla_plugin_tmp_t:file relabelfrom;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.6.11-3.fc18.x86_64
type:           libreport

Comment 1 Daniel Walsh 2012-12-27 17:10:02 UTC
Did you notice anything going wrong or did everything seem to work?

Comment 2 Piscium 2013-10-15 22:44:37 UTC
Also got this SE alert twice, on 7/Oct and today (15/Oct). I have no idea about what caused it. It is difficult to diagnose as I have loads of Firefox windows and tabs open and about 10 extensions and plugins.

Comment 3 Daniel Walsh 2013-10-16 20:12:11 UTC
88950d676b2eaf093f521bbee8ed888dfa8ef08f adds a dontaudit for this.

Comment 4 Lukas Vrabec 2013-10-25 12:20:13 UTC
commit ea6f9380075cfc20870f3c9ef9e475a69aee3ea1
Author: Lukas Vrabec <lvrabec>
Date:   Fri Oct 25 14:17:36 2013 +0200

    Dontaudit attempts by mozilla plugin to relabel content, caused by using mv and cp commands

Comment 5 Fedora Update System 2013-12-19 23:59:15 UTC
selinux-policy-3.11.1-108.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-108.fc18

Comment 6 Fedora Update System 2013-12-21 02:17:34 UTC
Package selinux-policy-3.11.1-108.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-108.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-23716/selinux-policy-3.11.1-108.fc18
then log in and leave karma (feedback).

Comment 7 Fedora End Of Life 2013-12-21 15:43:12 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior to Fedora 18's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 8 Fedora Update System 2014-01-05 06:07:22 UTC
selinux-policy-3.11.1-108.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Red Hat Bugzilla 2023-09-14 01:39:44 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days