Bug 1316724
Summary: | SELinux prevents kdm from accessing /sbin/poweroff | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Orion Poplawski <orion> | |
Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> | |
Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> | |
Severity: | low | Docs Contact: | ||
Priority: | medium | |||
Version: | 7.2 | CC: | lvrabec, mgrepl, mmalik, orion, plautrba, pvrabec, ssekidde | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | selinux-policy-3.13.1-69.el7 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1330970 (view as bug list) | Environment: | ||
Last Closed: | 2016-11-04 02:44:40 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: |
Description
Orion Poplawski
2016-03-10 22:14:12 UTC
Orion, could test a local policy to see if you are able to do shutdown? --- policy_module(myxdm, 1.0) require { type xdm_t; } #============= xdm_t ============== systemd_status_power_services(xdm_t) --- # make -f /usr/share/selinux/devel/Makefile myxdm.pp # semodule -i myxdm.pp So it turns out that it doesn't prevent kdm from being able to do a shutdown, so not a real problem. Addid myxdm does remove the denial though. Are you getting any AVCs? Not after adding myxdm.pp. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-2283.html |