Bug 969485 - mcollective service contexts
mcollective service contexts
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: selinux-policy (Show other bugs)
All Linux
unspecified Severity unspecified
: rc
: ---
Assigned To: Miroslav Grepl
Milos Malik
Depends On:
  Show dependency treegraph
Reported: 2013-05-31 10:13 EDT by Markus Nussdorfer
Modified: 2013-11-21 05:30 EST (History)
3 users (show)

See Also:
Fixed In Version: selinux-policy-3.7.19-203.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-11-21 05:30:07 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Markus Nussdorfer 2013-05-31 10:13:44 EDT
Description of problem:

openshift semodules causes troubles with service restarts through mcollective service plugin

Version-Release number of selected component (if applicable):


packages from puppetlabs

How reproducible:

system running with selinux enabled

Steps to Reproduce:
1. service mcollective start

   ps -efZ mcollective
   system_u:system_r:openshift_initrc_t:s0-s0:c0.c1023 root 29398 1  0 May17 ? 00:20:24 ruby /usr/sbin/mcollectived --pid=/var/run/mcollectived.pid --config=/etc/mcollective/server.cfg

2. mco service abrtd restart

Actual results:
ps -efZ|grep abrtd
   system_u:system_r:openshift_initrc_t:s0-s0:c0.c1023 root 30589 1  0 May28 ? 00:00:00 /usr/sbin/abrtd

Expected results:
ps -efZ|grep abrtd
   system_u:system_r:abrt_t:s0-s0:c0.c1023 root 1826  1  0 02:33 ?        00:00:00 /usr/sbin/abrtd

Additional info:

Tested with different services and show the same results
all restarted processes run under the same context as mcollectived and causes severe problems.
in case of ssh no login possible

When disabling openshift and openshift-origin, the restarted processes get the correct context

semodule -d openshift openshift-origin

ps -efZ|grep mcollective
unconfined_u:system_r:initrc_t:s0 root    9516     1  0 10:57 ?        00:00:12 ruby /usr/sbin/mcollectived --pid=/var/run/mcollectived.pid --config=/etc/mcollective/server.cfg
Comment 2 Miroslav Grepl 2013-06-04 08:16:15 EDT
Could you please re-test it with the following local policy

# cat mypol.te

 type openshift_initrc_t;


and execute

# make -f /usr/share/selinux/devel/Makefile mypol.pp
# semodule -i mypol.pp

and run your test scenario. Thank you.
Comment 3 Markus Nussdorfer 2013-06-04 17:44:00 EDT
(In reply to Miroslav Grepl from comment #2)

Did the tests with the module and it is working as expected.

Thanks Markus
Comment 4 Miroslav Grepl 2013-06-05 07:04:20 EDT
I added fixes.
Comment 11 errata-xmlrpc 2013-11-21 05:30:07 EST
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.


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