Bug 1310398 - SELinux is preventing systemd-logind from 'write' accesses on the fifo_file 21.ref.
Summary: SELinux is preventing systemd-logind from 'write' accesses on the fifo_file 2...
Keywords:
Status: CLOSED DUPLICATE of bug 1308771
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:e5fb6895aa031e0dc38c76d6fad...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-21 10:35 UTC by Giulio 'juliuxpigface'
Modified: 2016-02-21 10:41 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-02-21 10:41:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Giulio 'juliuxpigface' 2016-02-21 10:35:20 UTC
Description of problem:
This pops up after the login on a live system (Fedora 20160220 Rawhide Workstation)
SELinux is preventing systemd-logind from 'write' accesses on the fifo_file 21.ref.

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

If you believe that systemd-logind should be allowed write access on the 21.ref fifo_file 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 systemd-logind /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:systemd_logind_t:s0
Target Context                system_u:object_r:default_t:s0
Target Objects                21.ref [ fifo_file ]
Source                        systemd-logind
Source Path                   systemd-logind
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-171.fc24.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.5.0-0.rc4.git3.1.fc24.x86_64 #1
                              SMP Fri Feb 19 19:38:12 UTC 2016 x86_64 x86_64
Alert Count                   13
First Seen                    2016-02-21 04:43:07 EST
Last Seen                     2016-02-21 05:23:53 EST
Local ID                      ec02cc32-5973-4929-99b1-b6b715d95235

Raw Audit Messages
type=AVC msg=audit(1456050233.988:699): avc:  denied  { write } for  pid=1065 comm="systemd-logind" name="21.ref" dev="tmpfs" ino=131466 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=fifo_file permissive=1


Hash: systemd-logind,systemd_logind_t,default_t,fifo_file,write

Version-Release number of selected component:
selinux-policy-3.13.1-171.fc24.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.5.0-0.rc4.git3.1.fc24.x86_64
type:           libreport

Comment 1 Giulio 'juliuxpigface' 2016-02-21 10:41:18 UTC
I believe this (and lots of other denials) are all caused by the mislabelling of /run/systemd/inhibit.

Therefore, I close this and mark as duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1308771

*** This bug has been marked as a duplicate of bug 1308771 ***


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