RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 834994 - rhnsd runs as initrc_t
Summary: rhnsd runs as initrc_t
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: selinux-policy
Version: 6.3
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Miroslav Grepl
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks: 832330 846002
TreeView+ depends on / blocked
 
Reported: 2012-06-25 08:10 UTC by Milos Malik
Modified: 2013-02-21 08:36 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.7.19-156.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 846002 (view as bug list)
Environment:
Last Closed: 2013-02-21 08:36:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
basic policy for rhnsd (1.66 KB, application/x-tbz)
2012-06-25 11:26 UTC, Milos Malik
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0314 0 normal SHIPPED_LIVE selinux-policy bug fix and enhancement update 2013-02-20 20:35:01 UTC

Description Milos Malik 2012-06-25 08:10:47 UTC
Description of problem:


Version-Release number of selected component (if applicable):
selinux-policy-targeted-3.7.19-155.el6_3.noarch
selinux-policy-doc-3.7.19-155.el6_3.noarch
selinux-policy-minimum-3.7.19-155.el6_3.noarch
selinux-policy-mls-3.7.19-155.el6_3.noarch
selinux-policy-3.7.19-155.el6_3.noarch

How reproducible:
always

Steps to Reproduce:
# yum -y install rhnsd
# run_init service rhnsd restart
# ps -efZ | grep rhnsd
  
Actual results:
system_u:system_r:initrc_t:s0   root     28048     1  0 03:36 ?        00:00:00 rhnsd

Expected results:
* rhnsd runs in its own SELinux domain

Comment 2 Milos Malik 2012-06-25 11:26:38 UTC
Created attachment 594162 [details]
basic policy for rhnsd

Comment 3 Milos Malik 2012-06-25 11:28:55 UTC
No AVCs appeared even if I used start, stop, restart actions.

Comment 4 Miroslav Grepl 2012-06-25 12:12:29 UTC
Could we treat it with rhsmcertd policy?

# chcon -t rhsmcertd_exec_t `which rhnsd`

Comment 5 RHEL Program Management 2012-07-10 08:18:58 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 6 RHEL Program Management 2012-07-11 01:57:05 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development.  This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.

Comment 7 Milos Malik 2012-07-17 11:40:24 UTC
(In reply to comment #4)
> Could we treat it with rhsmcertd policy?
> 
> # chcon -t rhsmcertd_exec_t `which rhnsd`

It seems so. I see no AVCs after "service rhnsd restart".

Comment 8 Milos Malik 2012-07-17 11:42:56 UTC
... and the daemon runs as rhsmcertd_t in enforcing mode.

Comment 9 Miroslav Grepl 2012-07-17 12:09:28 UTC
Great.

Comment 10 Šimon Lukašík 2012-09-19 16:08:03 UTC
(In reply to comment #8)
> ... and the daemon runs as rhsmcertd_t in enforcing mode.

Users tend to not care about running. They care about serving.

Comment 13 errata-xmlrpc 2013-02-21 08:36:26 UTC
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.

http://rhn.redhat.com/errata/RHBA-2013-0314.html


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