Bug 1037617 - SELinux is preventing /usr/bin/mandb from 'search' accesses on the directory /.
Summary: SELinux is preventing /usr/bin/mandb from 'search' accesses on the directory /.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:900642b7250749f83c964b51e03...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-03 13:36 UTC by Brian J. Murrell
Modified: 2013-12-13 05:04 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.12.1-74.15.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-13 05:04:15 UTC
Type: ---


Attachments (Terms of Use)

Description Brian J. Murrell 2013-12-03 13:36:45 UTC
Description of problem:
SELinux is preventing /usr/bin/mandb from 'search' accesses on the directory /.

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

If you believe that mandb should be allowed search access on the  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 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:nfs_t:s0
Target Objects                / [ dir ]
Source                        mandb
Source Path                   /usr/bin/mandb
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           man-db-2.6.3-7.fc19.x86_64
Target RPM Packages           filesystem-3.2-13.fc19.x86_64
Policy RPM                    selinux-policy-3.12.1-74.10.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.11.6-200.fc19.x86_64 #1 SMP Fri
                              Oct 18 22:34:18 UTC 2013 x86_64 x86_64
Alert Count                   3
First Seen                    2013-10-31 03:13:03 EDT
Last Seen                     2013-10-31 03:13:03 EDT
Local ID                      b58f5f70-b8c6-4cbe-8f9f-89c486945bf9

Raw Audit Messages
type=AVC msg=audit(1383203583.46:1204): avc:  denied  { search } for  pid=32094 comm="mandb" name="/" dev="0:46" ino=32938 scontext=system_u:system_r:mandb_t:s0-s0:c0.c1023 tcontext=system_u:object_r:nfs_t:s0 tclass=dir


type=SYSCALL msg=audit(1383203583.46:1204): arch=x86_64 syscall=stat success=no exit=EACCES a0=2064a20 a1=7fff583f5290 a2=7fff583f5290 a3=ffffffff items=0 ppid=32089 pid=32094 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=56 tty=(none) comm=mandb exe=/usr/bin/mandb subj=system_u:system_r:mandb_t:s0-s0:c0.c1023 key=(null)

Hash: mandb,mandb_t,nfs_t,dir,search

Additional info:
reporter:       libreport-2.1.9
hashmarkername: setroubleshoot
kernel:         3.11.9-200.fc19.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-12-04 13:28:43 UTC
Do you have man files stored on an NFS share?

Comment 2 Brian J. Murrell 2013-12-04 13:45:48 UTC
No.

Comment 3 Daniel Walsh 2013-12-04 14:01:36 UTC
c462ff11cd53064de3da0186f18e3ae5a15ecd5e adds a dontaudit for this in git.

Comment 4 Miroslav Grepl 2013-12-04 16:59:25 UTC
back ported to f20.

Comment 5 Brian J. Murrell 2013-12-09 16:24:34 UTC
What about F19 though, where I saw the problem.

Comment 6 Miroslav Grepl 2013-12-10 08:34:33 UTC
Lukas will back port it to F19 and do an update.

Comment 7 Lukas Vrabec 2013-12-10 09:00:51 UTC
back ported.

Comment 8 Fedora Update System 2013-12-11 13:28:17 UTC
selinux-policy-3.12.1-74.15.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-74.15.fc19

Comment 9 Fedora Update System 2013-12-12 02:59:51 UTC
Package selinux-policy-3.12.1-74.15.fc19:
* should fix your issue,
* was pushed to the Fedora 19 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.12.1-74.15.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-23231/selinux-policy-3.12.1-74.15.fc19
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2013-12-13 05:04:15 UTC
selinux-policy-3.12.1-74.15.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


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