Bug 863849

Summary: SELinux is preventing /usr/bin/mandb from 'write' accesses on the directory man.
Product: [Fedora] Fedora Reporter: Nicolas Chauvet (kwizart) <kwizart>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:f1fb3bc8631a3800db7e6cf87263b76e8a12e9936bc23b148f74e7a3d297afe6
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-08 08:28:43 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 Nicolas Chauvet (kwizart) 2012-10-07 20:32:49 UTC
Additional info:
libreport version: 2.0.15
kernel:         3.6.0-3.fc18.i686.PAE

description:
:SELinux is preventing /usr/bin/mandb from 'write' accesses on the directory man.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If vous pensez que mandb devrait être autorisé à accéder write sur man directory par défaut.
:Then vous devriez rapporter ceci en tant qu'anomalie.
:Vous pouvez générer un module de stratégie local pour autoriser cet accès.
:Do
:autoriser cet accès pour le moment en exécutant :
:# grep mandb /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:mandb_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:man_t:s0
:Target Objects                man [ dir ]
:Source                        mandb
:Source Path                   /usr/bin/mandb
:Port                          <Inconnu>
:Host                          (removed)
:Source RPM Packages           man-db-2.6.2-5.fc18.i686
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.11.1-21.fc18.noarch 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-0.rc6.git0.2.fc18.i686.PAE
:                              #1 SMP Mon Sep 17 17:28:04 UTC 2012 i686 i686
:Alert Count                   1
:First Seen                    2012-10-06 09:16:03 CEST
:Last Seen                     2012-10-06 09:16:03 CEST
:Local ID                      e7d6b218-04a3-4f29-ad83-bee3d0f9e1b4
:
:Raw Audit Messages
:type=AVC msg=audit(1349507763.750:80): avc:  denied  { write } for  pid=2505 comm="mandb" name="man" dev="sda3" ino=524299 scontext=system_u:system_r:mandb_t:s0-s0:c0.c1023 tcontext=system_u:object_r:man_t:s0 tclass=dir
:
:
:type=AVC msg=audit(1349507763.750:80): avc:  denied  { add_name } for  pid=2505 comm="mandb" name="CACHEDIR.TAG" scontext=system_u:system_r:mandb_t:s0-s0:c0.c1023 tcontext=system_u:object_r:man_t:s0 tclass=dir
:
:
:type=AVC msg=audit(1349507763.750:80): avc:  denied  { create } for  pid=2505 comm="mandb" name="CACHEDIR.TAG" scontext=system_u:system_r:mandb_t:s0-s0:c0.c1023 tcontext=system_u:object_r:man_t:s0 tclass=file
:
:
:type=AVC msg=audit(1349507763.750:80): avc:  denied  { write } for  pid=2505 comm="mandb" path="/var/cache/man/CACHEDIR.TAG" dev="sda3" ino=526520 scontext=system_u:system_r:mandb_t:s0-s0:c0.c1023 tcontext=system_u:object_r:man_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1349507763.750:80): arch=i386 syscall=open success=yes exit=ESRCH a0=a028ec8 a1=8241 a2=1b6 a3=a02ceb0 items=0 ppid=2500 pid=2505 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=3 comm=mandb exe=/usr/bin/mandb subj=system_u:system_r:mandb_t:s0-s0:c0.c1023 key=(null)
:
:Hash: mandb,mandb_t,man_t,dir,write
:
:audit2allow
:
:#============= mandb_t ==============
:#!!!! The source type 'mandb_t' can write to a 'dir' of the following types:
:# var_t, mandb_cache_t
:
:allow mandb_t man_t:dir { write add_name };
:allow mandb_t man_t:file { write create };
:
:audit2allow -R
:
:#============= mandb_t ==============
:#!!!! The source type 'mandb_t' can write to a 'dir' of the following types:
:# var_t, mandb_cache_t
:
:allow mandb_t man_t:dir { write add_name };
:allow mandb_t man_t:file { write create };
:

Comment 1 Nicolas Chauvet (kwizart) 2012-10-07 20:32:51 UTC
Created attachment 623110 [details]
File: type

Comment 2 Nicolas Chauvet (kwizart) 2012-10-07 20:32:54 UTC
Created attachment 623111 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-10-08 08:27:16 UTC
*** Bug 863848 has been marked as a duplicate of this bug. ***

Comment 4 Miroslav Grepl 2012-10-08 08:28:43 UTC
Execute in your terminal

# restorecon -R -v /var/cache/man


should fix labeling.