Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 561336

Summary: segfault when #include directive is used in cycles
Product: Red Hat Enterprise Linux 5 Reporter: Aleš Mareček <amarecek>
Component: sudoAssignee: Daniel Kopeček <dkopecek>
Status: CLOSED ERRATA QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: urgent Docs Contact:
Priority: high    
Version: 5.4CC: dkopecek, ebenes, pvrabec, sgrubb
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 598363 (view as bug list) Environment:
Last Closed: 2010-03-30 08:16:00 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:
Bug Depends On:    
Bug Blocks: 598363    

Description Aleš Mareček 2010-02-03 13:17:00 UTC
Description of problem:
Sudo segfaults when #include directive is used in cycles.

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


How reproducible:
always

Steps to Reproduce:
1. Create new file (for example: /etc/sudoers.local (mode 0440)).
2. Edit this new file and set:
 - user privileges (for example: operator    ALL=(ALL) ALL)
 - #include /etc/sudoers
3. edit /etc/sudoers and set: #include /etc/sudoers.local
4. run command under sudo (for example: sudo)
  
Actual results:
Memory stack is printed and it segfaults.


Expected results:
Warning message expected with no segfault.

Additional info:

Comment 7 Daniel Kopeček 2010-02-09 15:55:36 UTC
thread on sudo-workers mailing list:
http://www.sudo.ws/pipermail/sudo-workers/2010-February/000702.html

Comment 12 errata-xmlrpc 2010-03-30 08:16:00 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0212.html