Bug 1372645 - SELinux is preventing systemd-machine from using the 'kill' capabilities.
Summary: SELinux is preventing systemd-machine from using the 'kill' capabilities.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 26
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:94baf046bb96ab4cf174ebac7cc...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-02 09:36 UTC by Vít Ondruch
Modified: 2017-07-17 04:52 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.13.1-260.1.fc26
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-17 04:52:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Vít Ondruch 2016-09-02 09:36:05 UTC
Description of problem:
SELinux is preventing systemd-machine from using the 'kill' capabilities.

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

If you believe that systemd-machine should have the kill capability 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:
# ausearch -c 'systemd-machine' --raw | audit2allow -M my-systemdmachine
# semodule -X 300 -i my-systemdmachine.pp

Additional Information:
Source Context                system_u:system_r:systemd_machined_t:s0
Target Context                system_u:system_r:systemd_machined_t:s0
Target Objects                Unknown [ capability ]
Source                        systemd-machine
Source Path                   systemd-machine
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-209.fc26.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.7.0-2.fc26.x86_64 #1 SMP Wed Jul
                              27 13:39:50 UTC 2016 x86_64 x86_64
Alert Count                   1
First Seen                    2016-09-01 12:32:05 CEST
Last Seen                     2016-09-01 12:32:05 CEST
Local ID                      a5635319-1d25-4147-aa95-a5837e26e5bf

Raw Audit Messages
type=AVC msg=audit(1472725925.28:3864): avc:  denied  { kill } for  pid=12836 comm="systemd-machine" capability=5  scontext=system_u:system_r:systemd_machined_t:s0 tcontext=system_u:system_r:systemd_machined_t:s0 tclass=capability permissive=1


Hash: systemd-machine,systemd_machined_t,systemd_machined_t,capability,kill

Version-Release number of selected component:
selinux-policy-3.13.1-209.fc26.noarch

Additional info:
reporter:       libreport-2.7.2
hashmarkername: setroubleshoot
kernel:         4.7.0-2.fc26.x86_64
type:           libreport

Comment 1 Fedora End Of Life 2017-02-28 10:11:45 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.

Comment 2 Fedora Update System 2017-07-11 17:07:23 UTC
selinux-policy-3.13.1-260.1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-c2721b7375

Comment 3 Fedora Update System 2017-07-12 08:38:35 UTC
selinux-policy-3.13.1-260.1.fc26 has been pushed to the Fedora 26 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-c2721b7375

Comment 4 Fedora Update System 2017-07-17 04:52:12 UTC
selinux-policy-3.13.1-260.1.fc26 has been pushed to the Fedora 26 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.