Bug 1116520 - SELinux is preventing /usr/lib/systemd/systemd-logind from 'destroy' accesses on the semaphore Unknown.
Summary: SELinux is preventing /usr/lib/systemd/systemd-logind from 'destroy' accesses...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:29ec83082254097a9fa8699bd6c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-07-05 19:09 UTC by Joachim Frieben
Modified: 2015-10-10 14:27 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-10-10 14:27:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Joachim Frieben 2014-07-05 19:09:09 UTC
Description of problem:
SELinux is preventing /usr/lib/systemd/systemd-logind from 'destroy' accesses on the semaphore Unknown.

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

If you believe that systemd-logind should be allowed destroy access on the Unknown sem 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                unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c
                              0.c1023
Target Objects                Unknown [ sem ]
Source                        systemd-logind
Source Path                   /usr/lib/systemd/systemd-logind
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-214-5.fc21.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-63.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.16.0-0.rc3.git3.1.fc21.x86_64 #1
                              SMP Fri Jul 4 15:23:59 UTC 2014 x86_64 x86_64
Alert Count                   2
First Seen                    2014-07-05 20:00:12 CEST
Last Seen                     2014-07-05 20:38:19 CEST
Local ID                      7907afcc-97e3-43da-8f1f-7a78133db034

Raw Audit Messages
type=AVC msg=audit(1404585499.815:906): avc:  denied  { destroy } for  pid=761 comm="systemd-logind" key=1953729362  scontext=system_u:system_r:systemd_logind_t:s0 tcontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tclass=sem permissive=0


type=SYSCALL msg=audit(1404585499.815:906): arch=x86_64 syscall=semctl success=no exit=EACCES a0=18000 a1=0 a2=0 a3=7fff0e7178c0 items=0 ppid=1 pid=761 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=systemd-logind exe=/usr/lib/systemd/systemd-logind subj=system_u:system_r:systemd_logind_t:s0 key=(null)

Hash: systemd-logind,systemd_logind_t,mozilla_plugin_t,sem,destroy

Version-Release number of selected component:
selinux-policy-3.13.1-63.fc21.noarch

Additional info:
reporter:       libreport-2.2.2
hashmarkername: setroubleshoot
kernel:         3.16.0-0.rc3.git3.1.fc21.x86_64
type:           libreport

Comment 1 Jaroslav Reznik 2015-03-03 16:06:21 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22


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