Bug 1013195
| Summary: | When rhn_check initiates reboot, shutdown runs with incorrect SELinux context | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Jan Hutař <jhutar> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.4 | CC: | cperry, dwalsh, dyordano, jhutar, lvrabec, mgrepl, mkollar, mmalik, plautrba, pvrabec, ssekidde |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | selinux-policy-3.7.19-265.el6 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-07-22 07:07:09 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 924189 | ||
|
Description
Jan Hutař
2013-09-28 08:37:54 UTC
This does not happen on RHEL5. rhn-client-tools-0.4.20.1-6.el5 selinux-policy-targeted-2.4.6-346.el5 SysVinit-2.86-17.el5 Is this a regression from RHEL-6.3? No, using RHEL-6.3 I see the same: upstart-0.6.5-12.el6.x86_64 # ls -alZ /var/run/shutdown.pid -rw-r--r--. root root unconfined_u:object_r:rpm_var_run_t:s0 /var/run/shutdown.pid # ps axZ | grep shutdown unconfined_u:system_r:rpm_t:s0-s0:c0.c1023 14032 pts/0 S 0:00 /sbin/shutdown -r +3 unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 14036 pts/0 S+ 0:00 grep shutdown # shutdown -c shutdown: Cannot find pid of running shutdown All right, I'm postponing this to RHEL-6.6 This would be better handled as selinux-policy. Milos,
could you re-test it with
$cat mypol.te
policy_module(mypol, 1.0)
require{
type rpm_t;
}
shutdown_domtrans(rpm_t)
I'm not familiar with Satellite, but Jan can test it, right? commit 4ca661aa4513877395986c692da350e57fa5b04c
Author: Miroslav Grepl <mgrepl>
Date: Sun Apr 12 11:46:28 2015 +0200
Allow rhn_check running as rpm to domtrans to shutdown domain
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-2015-1375.html |