Bug 1249520 - SELinux is preventing /usr/bin/mandb from 'open' accesses on the file /usr/man/man1/nosetests.1.
SELinux is preventing /usr/bin/mandb from 'open' accesses on the file /usr/ma...
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2015-08-03 04:55 EDT by Alexandre Philippi
Modified: 2015-08-04 09:48 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2015-08-04 09:48:36 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Alexandre Philippi 2015-08-03 04:55:15 EDT
Description of problem:
SELinux is preventing /usr/bin/mandb from 'open' accesses on the file /usr/man/man1/nosetests.1.

*****  Plugin restorecon (99.5 confidence) suggests   ************************

If vous souhaitez corriger l'étiquette. 
L'étiquette par défaut de /usr/man/man1/nosetests.1 devrait être man_t.
Then vous pouvez exécuter restorecon.
# /sbin/restorecon -v /usr/man/man1/nosetests.1

*****  Plugin catchall (1.49 confidence) suggests   **************************

If vous pensez que mandb devrait être autorisé à accéder open sur nosetests.1 file 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.
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                unconfined_u:object_r:user_tmp_t:s0
Target Objects                /usr/man/man1/nosetests.1 [ file ]
Source                        mandb
Source Path                   /usr/bin/mandb
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           man-db-
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-105.19.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.0.8-200.fc21.x86_64 #1 SMP Fri
                              Jul 10 21:09:54 UTC 2015 x86_64 x86_64
Alert Count                   1
First Seen                    2015-08-03 10:46:42 CEST
Last Seen                     2015-08-03 10:46:42 CEST
Local ID                      38249400-ed10-4271-9a3b-d9dadb3efcd3

Raw Audit Messages
type=AVC msg=audit(1438591602.687:643): avc:  denied  { open } for  pid=6425 comm="mandb" path="/usr/man/man1/nosetests.1" dev="sda6" ino=1543153 scontext=system_u:system_r:mandb_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_tmp_t:s0 tclass=file permissive=0

type=SYSCALL msg=audit(1438591602.687:643): arch=x86_64 syscall=open success=no exit=EACCES a0=af2a70 a1=0 a2=0 a3=8 items=0 ppid=6420 pid=6425 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=7 comm=mandb exe=/usr/bin/mandb subj=system_u:system_r:mandb_t:s0-s0:c0.c1023 key=(null)

Hash: mandb,mandb_t,user_tmp_t,file,open

Version-Release number of selected component:

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         4.0.8-200.fc21.x86_64
type:           libreport

Potential duplicate: bug 1143061
Comment 1 Daniel Walsh 2015-08-04 09:48:36 EDT
restorecon -R -v /usr/man

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