Bug 1514903 - SELinux is preventing mandb from 'read' accesses on the Datei /etc/passwd.
Summary: SELinux is preventing mandb from 'read' accesses on the Datei /etc/passwd.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 27
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:7cc966c2781eaa48e6b78ef3133...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-19 11:28 UTC by Heiko Adams
Modified: 2019-05-22 13:39 UTC (History)
7 users (show)

Fixed In Version: selinux-policy-3.13.1-283.17.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-28 23:53:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Heiko Adams 2017-11-19 11:28:57 UTC
Description of problem:
SELinux is preventing mandb from 'read' accesses on the Datei /etc/passwd.

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

If sie denken, dass es mandb standardmäßig erlaubt sein sollte, read Zugriff auf passwd file zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
allow this access for now by executing:
# ausearch -c 'mandb' --raw | audit2allow -M my-mandb
# semodule -X 300 -i my-mandb.pp

Additional Information:
Source Context                system_u:system_r:mandb_t:s0
Target Context                system_u:object_r:passwd_file_t:s0
Target Objects                /etc/passwd [ file ]
Source                        mandb
Source Path                   mandb
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           setup-2.10.10-1.fc27.noarch
Policy RPM                    selinux-policy-3.13.1-283.16.fc27.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.13.13-300.fc27.x86_64 #1 SMP Wed
                              Nov 15 15:47:50 UTC 2017 x86_64 x86_64
Alert Count                   4
First Seen                    2017-11-18 20:05:11 CET
Last Seen                     2017-11-19 12:27:09 CET
Local ID                      2cfc97c3-9c83-4375-97da-13c1ff26dac3

Raw Audit Messages
type=AVC msg=audit(1511090829.574:459): avc:  denied  { read } for  pid=7289 comm="mandb" name="passwd" dev="dm-0" ino=3023479 scontext=system_u:system_r:mandb_t:s0 tcontext=system_u:object_r:passwd_file_t:s0 tclass=file permissive=0


Hash: mandb,mandb_t,passwd_file_t,file,read

Version-Release number of selected component:
selinux-policy-3.13.1-283.16.fc27.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.3
hashmarkername: setroubleshoot
kernel:         4.13.13-300.fc27.x86_64
type:           libreport

Comment 1 Kamil Páral 2017-11-20 08:26:43 UTC
Description of problem:
Happened during "dnf update".

Version-Release number of selected component:
selinux-policy-3.13.1-283.16.fc27.noarch

Additional info:
reporter:       libreport-2.9.3
hashmarkername: setroubleshoot
kernel:         4.13.12-300.fc27.x86_64
type:           libreport

Comment 2 Colin J Thomson 2017-11-21 19:35:57 UTC
Description of problem:
Happens when using DNF to update

Version-Release number of selected component:
selinux-policy-3.13.1-283.16.fc27.noarch

Additional info:
reporter:       libreport-2.9.3
hashmarkername: setroubleshoot
kernel:         4.13.14-300.fc27.x86_64
type:           libreport

Comment 3 Fedora Update System 2017-11-22 08:54:15 UTC
selinux-policy-3.13.1-283.17.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-d05b1a2ab9

Comment 4 Colin J Thomson 2017-11-22 14:30:41 UTC
selinux-policy-3.13.1-283.17.fc27 fixes this for me. Thanks..

Comment 5 Fedora Update System 2017-11-22 21:40:48 UTC
selinux-policy-3.13.1-283.17.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-d05b1a2ab9

Comment 6 Fedora Update System 2017-11-28 23:53:14 UTC
selinux-policy-3.13.1-283.17.fc27 has been pushed to the Fedora 27 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.