Bug 1482241 - SELinux is preventing systemd-logind from using the 'dac_read_search' capabilities.
Summary: SELinux is preventing systemd-logind from using the 'dac_read_search' capabil...
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 25
Hardware: x86_64
OS: Unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
Whiteboard: abrt_hash:3ff06b86fc6bee08fe337bf928f...
Depends On:
TreeView+ depends on / blocked
Reported: 2017-08-16 20:26 UTC by Gene Snider
Modified: 2017-12-12 10:15 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2017-12-12 10:15:28 UTC
Type: ---

Attachments (Terms of Use)

Description Gene Snider 2017-08-16 20:26:03 UTC
Description of problem:
SELinux is preventing systemd-logind from using the 'dac_read_search' capabilities.

*****  Plugin dac_override (91.4 confidence) suggests   **********************

If you want to help identify if domain needs this access or you have a file with the wrong permissions on your system
Then turn on full auditing to get path information about the offending file and generate the error again.

Turn on full auditing
# auditctl -w /etc/shadow -p w
Try to recreate AVC. Then execute
# ausearch -m avc -ts recent
If you see PATH record check ownership/permissions on file, and fix it,
otherwise report as a bugzilla.

*****  Plugin catchall (9.59 confidence) suggests   **************************

If you believe that systemd-logind should have the dac_read_search capability by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
allow this access for now by executing:
# ausearch -c 'systemd-logind' --raw | audit2allow -M my-systemdlogind
# semodule -X 300 -i my-systemdlogind.pp

Additional Information:
Source Context                system_u:system_r:systemd_logind_t:s0
Target Context                system_u:system_r:systemd_logind_t:s0
Target Objects                Unknown [ capability ]
Source                        systemd-logind
Source Path                   systemd-logind
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-225.19.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.12.5-200.fc25.x86_64 #1 SMP Mon
                              Aug 7 23:51:45 UTC 2017 x86_64 x86_64
Alert Count                   66
First Seen                    2017-08-16 13:06:44 PDT
Last Seen                     2017-08-16 13:20:42 PDT
Local ID                      fcbce1b2-74b5-41e2-b24d-2377621cca90

Raw Audit Messages
type=AVC msg=audit(1502914842.608:282): avc:  denied  { dac_read_search } for  pid=861 comm="systemd-logind" capability=2  scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:system_r:systemd_logind_t:s0 tclass=capability permissive=0

Hash: systemd-logind,systemd_logind_t,systemd_logind_t,capability,dac_read_search

Version-Release number of selected component:

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.12.5-200.fc25.x86_64
type:           libreport

Potential duplicate: bug 1476477

Comment 1 Peter Oliver 2017-08-26 11:13:42 UTC
This appears to be fixed by https://bodhi.fedoraproject.org/updates/FEDORA-2017-837f04c39a

Comment 2 Steve 2017-08-28 17:13:31 UTC
(In reply to Peter Oliver from comment #1)
> This appears to be fixed by
> https://bodhi.fedoraproject.org/updates/FEDORA-2017-837f04c39a


Comment 3 Fedora End Of Life 2017-11-16 18:36:56 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 4 Fedora End Of Life 2017-12-12 10:15:28 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this

Thank you for reporting this bug and we are sorry it could not be fixed.

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