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 876924 - haproxy runs as initrc_t
Summary: haproxy runs as initrc_t
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Miroslav Grepl
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On: nopolicy
Blocks: 848829 1040963
TreeView+ depends on / blocked
 
Reported: 2012-11-15 10:17 UTC by Milos Malik
Modified: 2014-06-18 02:17 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.12.1-57.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 10:24:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Milos Malik 2012-11-15 10:17:37 UTC
Description of problem:


Version-Release number of selected component (if applicable):
haproxy-1.4.22-1.el7.x86_64
selinux-policy-3.11.1-51.el7.noarch
selinux-policy-devel-3.11.1-51.el7.noarch
selinux-policy-doc-3.11.1-51.el7.noarch
selinux-policy-minimum-3.11.1-51.el7.noarch
selinux-policy-mls-3.11.1-51.el7.noarch
selinux-policy-targeted-3.11.1-51.el7.noarch

How reproducible:
always

Steps to Reproduce:
# service haproxy restart
Redirecting to /bin/systemctl restart  haproxy.service
# service haproxy status
Redirecting to /bin/systemctl status  haproxy.service
haproxy.service - HAProxy For TCP And HTTP Based Applications
	  Loaded: loaded (/usr/lib/systemd/system/haproxy.service; disabled)
	  Active: active (running) since Thu, 2012-11-15 11:15:22 CET; 6s ago
	 Process: 3045 ExecStart=/usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid (code=exited, status=0/SUCCESS)
	 Process: 3042 ExecStartPre=/usr/sbin/haproxy -c -q -f /etc/haproxy/haproxy.cfg (code=exited, status=0/SUCCESS)
	Main PID: 3046 (haproxy)
	  CGroup: name=systemd:/system/haproxy.service
		  └ 3046 /usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -...

Nov 15 11:15:22 dhcp-24-118.brq.redhat.com systemd[1]: Started HAProxy For TC...
# ps -efZ | grep haproxy
system_u:system_r:initrc_t:s0   haproxy   3046     1  0 11:15 ?        00:00:00 /usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid
unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 root 3062 1512  0 11:15 pts/0 00:00:00 grep --color=auto haproxy
#

Actual results:
* haproxy runs as initrc_t

Expected results:
 * haproxy runs in its own SELinux domain

Comment 1 Miroslav Grepl 2013-06-25 12:26:34 UTC
commit 55130cbd7572990a0a516851e71609e768aaac37
Author: Miroslav Grepl <mgrepl>
Date:   Tue Jun 25 14:25:18 2013 +0200

    A new policy for haproxy and placed it to rhcs.te

Comment 2 Milos Malik 2013-07-17 14:20:56 UTC
Fixed-In-Version value was taken from the changelog.

Comment 4 Miroslav Grepl 2013-07-22 07:11:30 UTC
Well, this is caused by broken semanage-port. (has been fixed)

I am adding fixes to the policy.

Comment 6 Ludek Smid 2014-06-13 10:24:11 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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