Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1230443

Summary: SELinux is preventing systemd-logind from 'getattr' accesses on the file /dev/shm/sem.9334581e-7251-4ef7-a8ec-5bfe8e89ff68.
Product: [Fedora] Fedora Reporter: adalsaady
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:5874832d314201e26c9d4802090a14523697b303e53b5a752ba59833e4384b16
Fixed In Version: selinux-policy-3.13.1-128.2.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-27 22:33:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description adalsaady 2015-06-10 23:06:01 UTC
Description of problem:
SELinux is preventing systemd-logind from 'getattr' accesses on the file /dev/shm/sem.9334581e-7251-4ef7-a8ec-5bfe8e89ff68.

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

If you believe that systemd-logind should be allowed getattr access on the sem.9334581e-7251-4ef7-a8ec-5bfe8e89ff68 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:initrc_state_t:s0
Target Objects                /dev/shm/sem.9334581e-7251-4ef7-a8ec-5bfe8e89ff68
                              [ 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-126.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.0.4-303.fc22.i686 #1 SMP Thu May
                              28 13:10:30 UTC 2015 i686 i686
Alert Count                   1
First Seen                    2015-06-08 03:27:02 AST
Last Seen                     2015-06-08 03:27:02 AST
Local ID                      76faf4ad-fa77-4a85-bb48-f095b2c8da66

Raw Audit Messages
type=AVC msg=audit(1433723222.125:510): avc:  denied  { getattr } for  pid=670 comm="systemd-logind" path="/dev/shm/sem.9334581e-7251-4ef7-a8ec-5bfe8e89ff68" dev="tmpfs" ino=22377 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:initrc_state_t:s0 tclass=file permissive=0


Hash: systemd-logind,systemd_logind_t,initrc_state_t,file,getattr

Version-Release number of selected component:
selinux-policy-3.13.1-126.fc22.noarch

Additional info:
reporter:       libreport-2.5.1
hashmarkername: setroubleshoot
kernel:         4.0.4-303.fc22.i686
type:           libreport

Potential duplicate: bug 1210654

Comment 1 Miroslav Grepl 2015-06-17 12:12:27 UTC
commit ac8b0cefe50b304519398da0b7bbb7ec093fb784
Author: Miroslav Grepl <mgrepl>
Date:   Wed Jun 17 14:12:10 2015 +0200

    systemd-logind accesses /dev/shm. BZ(1230443

Comment 2 Fedora Update System 2015-06-19 07:51:31 UTC
selinux-policy-3.13.1-128.2.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/selinux-policy-3.13.1-128.2.fc22

Comment 3 Fedora Update System 2015-06-21 00:34:16 UTC
Package selinux-policy-3.13.1-128.2.fc22:
* should fix your issue,
* was pushed to the Fedora 22 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.13.1-128.2.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-10299/selinux-policy-3.13.1-128.2.fc22
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2015-06-27 22:33:57 UTC
selinux-policy-3.13.1-128.2.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.