Bug 693642

Summary: ldap-agent-bin segfaults during start when denied access to /var/lib/net-snmp
Product: Red Hat Enterprise Linux 6 Reporter: Karel Srot <ksrot>
Component: 389-ds-baseAssignee: Rich Megginson <rmeggins>
Status: CLOSED WONTFIX QA Contact: Chandrasekar Kannan <ckannan>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: benl, dpal, jgalipea
Target Milestone: rcKeywords: screened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-13 23:32:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
abrt crash details none

Description Karel Srot 2011-04-05 07:50:44 UTC
Created attachment 489931 [details]
abrt crash details

Description of problem:

This was originaly caused by selinux-policy which denied the access to /var/lib/net-snmp (see bug 675782). This is already fixed and with proper policy you won't face this problem. 
But I don't think that ldap-agent-bin should segfault anyway.

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


How reproducible:
always

Steps to Reproduce:
1. install 389-ds-base
2. configure and start dirsrv using setup-ds.pl script
3. set up dirsrv server in /etc/dirsrv/config/ldap-agent.conf
4. start and kill "ldap-agent /etc/dirsrv/config/ldap-agent.conf"
   this is just to create necessary directories && files
5. chcon -R -t var_lib_t /var/lib/net-snmp/
6. ldap-agent /etc/dirsrv/config/ldap-agent.conf
  
Actual results:
ldap-agent: Not started after 15 seconds!  Check log file for details.
ldap-agent-bin segfaults

Expected results:
proper start

Additional info:
attached abrt logs