Bug 863659

Summary: SELinux is preventing /usr/sbin/tmpwatch from 'read' accesses on the directory /var/cache/man/local/cat9.
Product: [Fedora] Fedora Reporter: Joachim Frieben <jfrieben>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: adrigiga, dominick.grift, dwalsh, equistango, fry.futurateam, kwizart, mgrepl, mikhail.v.gavrilov, mishu, neilsbb, nicolas.mailhot, olivares14031, stephent98
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:3584ed680aca75de478530da5d74e4f89b62168de8789913cb1aa0acd4fdb704
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-10 21:39:29 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 Joachim Frieben 2012-10-06 11:39:11 UTC
Additional info:
libreport version: 2.0.15
kernel:         3.6.0-3.fc18.x86_64

description:
:SELinux is preventing /usr/sbin/tmpwatch from 'read' accesses on the directory /var/cache/man/local/cat9.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that tmpwatch should be allowed read access on the cat9 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 tmpwatch /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:tmpreaper_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:mandb_cache_t:s0
:Target Objects                /var/cache/man/local/cat9 [ dir ]
:Source                        tmpwatch
:Source Path                   /usr/sbin/tmpwatch
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           tmpwatch-2.11-2.fc18.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.11.1-32.fc18.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.0-3.fc18.x86_64 #1 SMP Wed Oct
:                              3 13:29:15 UTC 2012 x86_64 x86_64
:Alert Count                   18
:First Seen                    2012-10-06 13:14:04 CEST
:Last Seen                     2012-10-06 13:14:04 CEST
:Local ID                      6b652776-b4be-492d-9abc-fc2e5ec0c8f2
:
:Raw Audit Messages
:type=AVC msg=audit(1349522044.209:78): avc:  denied  { read } for  pid=9943 comm="tmpwatch" name="cat9" dev="dm-3" ino=414 scontext=system_u:system_r:tmpreaper_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mandb_cache_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1349522044.209:78): arch=x86_64 syscall=openat success=no exit=EACCES a0=ffffffffffffff9c a1=404923 a2=90800 a3=0 items=0 ppid=9920 pid=9943 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=3 comm=tmpwatch exe=/usr/sbin/tmpwatch subj=system_u:system_r:tmpreaper_t:s0-s0:c0.c1023 key=(null)
:
:Hash: tmpwatch,tmpreaper_t,mandb_cache_t,dir,read
:
:audit2allow
:
:#============= tmpreaper_t ==============
:allow tmpreaper_t mandb_cache_t:dir read;
:
:audit2allow -R
:
:#============= tmpreaper_t ==============
:allow tmpreaper_t mandb_cache_t:dir read;
:

Comment 1 Joachim Frieben 2012-10-06 11:39:14 UTC
Created attachment 622697 [details]
File: type

Comment 2 Joachim Frieben 2012-10-06 11:39:16 UTC
Created attachment 622698 [details]
File: hashmarkername

Comment 3 Daniel Walsh 2012-10-06 12:02:09 UTC
Fixed in selinux-policy-3.11.1-33.fc18.noarch

Comment 4 Fedora Update System 2012-10-11 09:03:40 UTC
selinux-policy-3.11.1-36.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-36.fc18

Comment 5 Fedora Update System 2012-10-11 17:22:19 UTC
Package selinux-policy-3.11.1-36.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-36.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-15934/selinux-policy-3.11.1-36.fc18
then log in and leave karma (feedback).