Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
+++ This bug was initially created as a clone of Bug #1315996 +++
Description of problem:
mcstransd[30718]: segfault at 0 ip 00007f406bd2c301 sp 00007ffebebefdc8 error 4 in libc-2.12.so[7f406bcab000+18a000]
mcstransd[43443]: segfault at 0 ip 00007fd5663ac301 sp 00007ffc71b37e18 error 4 in libc-2.12.so[7fd56632b000+18a000]
mcstransd[46223]: segfault at 0 ip 00007f87a8307301 sp 00007fffb9135408 error 4 in libc-2.12.so[7f87a8286000+18a000]
Version-Release number of selected component (if applicable):
RHEL-6.8
libselinux-2.0.94-7.el6.x86_64
libselinux-devel-2.0.94-7.el6.x86_64
libselinux-python-2.0.94-7.el6.x86_64
libselinux-ruby-2.0.94-7.el6.x86_64
libselinux-utils-2.0.94-7.el6.x86_64
mcstrans-0.3.1-4.el6.x86_64
How reproducible:
always
Steps to Reproduce:
0) get a RHEL-6.8 machine with active targeted policy
1) use /etc/selinux/targeted/secolor.conf file with following content:
color black = #000000
color green = #008000
color yellow = #ffff00
color blue = #0000ff
color white = #ffffff
color red = #ff0000
color orange = #ffa500
color tan = #d2b48c
user unconfined_u = #ff0000 green
role unconfined_r = red #ffffff
type unconfined_t = red orange
user user_u = black green
role user_r = white black
type user_t = tan red
user xguest_u = black yellow
role xguest_r = black red
type xguest_t = black green
user sysadm_u = white black
range s0:c0.c1023 = black white
user * = black white
role * = black white
type * = black white
2) start mcstransd
3) run following command as common user or as root:
echo -en 'import selinux\nselinux.selinux_raw_context_to_color("user_u:user_r:")\n' | python
4) check the status of mcstrans daemon
Actual results:
* it segfaulted
Expected results:
* it's running
Red Hat Enterprise Linux version 6 is entering the Production 2 phase of its lifetime and this bug doesn't meet the criteria for it, i.e. only high severity issues will be fixed. Please see https://access.redhat.com/support/policy/updates/errata/ for further information.
This issue is being tracked in Red Hat Enterprise Linux version 7.