Bug 1315996 - mcstrans daemon segfaults when secon -C asks for incomplete context
Summary: mcstrans daemon segfaults when secon -C asks for incomplete context
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: mcstrans
Version: 7.2
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Petr Lautrbach
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-09 08:36 UTC by Milos Malik
Modified: 2017-06-29 12:57 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1316680 1699784 (view as bug list)
Environment:
Last Closed: 2017-06-29 12:57:02 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Milos Malik 2016-03-09 08:36:58 UTC
Description of problem:
[ 1014.283237] mcstransd[3117]: segfault at 0 ip 00007f80fe4b4341 sp 00007fff0a957348 error 4 in libc-2.17.so[7f80fe42e000+1b6000]
[ 1102.068204] mcstransd[3220]: segfault at 0 ip 00007f00ee66f341 sp 00007ffda6c364a8 error 4 in libc-2.17.so[7f00ee5e9000+1b6000]
[ 1198.803799] mcstransd[3312]: segfault at 0 ip 00007fe2a5a5c341 sp 00007fff46704b98 error 4 in libc-2.17.so[7fe2a59d6000+1b6000]
[ 1400.158179] mcstransd[3466]: segfault at 0 ip 00007ff84432c341 sp 00007ffdc72a2938 error 4 in libc-2.17.so[7ff8442a6000+1b6000]
[ 2083.961114] mcstransd[6323]: segfault at 0 ip 00007f6e9718a341 sp 00007ffd06e78a18 error 4 in libc-2.17.so[7f6e97104000+1b6000]

Version-Release number of selected component (if applicable):
RHEL-7.2
mcstrans-0.3.4-5.el7.x86_64
policycoreutils-2.2.5-20.el7.x86_64

How reproducible:
always

Steps to Reproduce:
0) get a RHEL-7.2 machine with active targeted policy
1) use the second example from the manual page of secolor.conf to create /etc/selinux/targeted/secolor.conf file
2) start mcstransd
3) run following command as common user or as root:
secon -C user_u:user_r:user_t:
4) check the status of mcstrans daemon

Actual results:
 * it segfaulted

Expected results:
 * it's running


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