Bug 885220

Summary: SELinux is preventing /usr/bin/freshclam from 'search' accesses on the directory /selinux.
Product: [Fedora] Fedora Reporter: Grosswiler Roger <roger>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:182895436aee41f97e9e7984aafad6cf54cd0952f6bbbc59f062d7ab29c6b1c4
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-04 13:19:16 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:
Attachments:
Description Flags
File: type
none
File: hashmarkername none

Description Grosswiler Roger 2012-12-07 19:48:56 UTC
Additional info:
libreport version: 2.0.18
kernel:         3.6.9-2.fc17.x86_64

description:
:SELinux is preventing /usr/bin/freshclam from 'search' accesses on the directory /selinux.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If sie denken, dass freshclam standardmässig erlaubt sein sollte, search Zugriff auf selinux directory 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 freshclam /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:freshclam_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:svirt_lxc_file_t:s0
:Target Objects                /selinux [ dir ]
:Source                        freshclam
:Source Path                   /usr/bin/freshclam
:Port                          <Unbekannt>
:Host                          (removed)
:Source RPM Packages           clamav-update-0.97.6-1700.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-161.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.9-2.fc17.x86_64 #1 SMP Tue Dec
:                              4 13:26:04 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    2012-12-07 19:49:27 CET
:Last Seen                     2012-12-07 19:49:27 CET
:Local ID                      7a90dd48-2586-47be-b391-6ad9abdb3166
:
:Raw Audit Messages
:type=AVC msg=audit(1354906167.416:327): avc:  denied  { search } for  pid=16326 comm="freshclam" name="selinux" dev="dm-1" ino=2359297 scontext=system_u:system_r:freshclam_t:s0-s0:c0.c1023 tcontext=system_u:object_r:svirt_lxc_file_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1354906167.416:327): arch=x86_64 syscall=open success=no exit=EACCES a0=3dc4b7854a a1=0 a2=1b6 a3=238 items=0 ppid=16318 pid=16326 auid=0 uid=991 gid=988 euid=991 suid=991 fsuid=991 egid=988 sgid=988 fsgid=988 tty=(none) ses=3 comm=freshclam exe=/usr/bin/freshclam subj=system_u:system_r:freshclam_t:s0-s0:c0.c1023 key=(null)
:
:Hash: freshclam,freshclam_t,svirt_lxc_file_t,dir,search
:
:audit2allow
:
:#============= freshclam_t ==============
:allow freshclam_t svirt_lxc_file_t:dir search;
:
:audit2allow -R
:
:#============= freshclam_t ==============
:allow freshclam_t svirt_lxc_file_t:dir search;
:

Comment 1 Grosswiler Roger 2012-12-07 19:49:00 UTC
Created attachment 659563 [details]
File: type

Comment 2 Grosswiler Roger 2012-12-07 19:49:03 UTC
Created attachment 659564 [details]
File: hashmarkername

Comment 3 Daniel Walsh 2012-12-10 18:52:01 UTC
Why do you have a directory labeled svirt_lxc_file_t /selinux?

Comment 4 Grosswiler Roger 2012-12-10 19:55:23 UTC
Because i installed and tried linux containers (lxc) a virt suite.

Comment 5 Daniel Walsh 2012-12-10 20:47:15 UTC
Yes I work on that also, but have no idea why it would have relabeled /selinux.

restorecon -v /selinux

Comment 6 Fedora End Of Life 2013-07-04 00:54:18 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. 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 '17'.

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 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 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 17'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.