Bug 393 - sudo's #include functionality doesn't handle cycles
sudo's #include functionality doesn't handle cycles
Status: RESOLVED INVALID
Product: Sudo
Classification: Unclassified
Component: Sudo
1.7.2
All All
: low normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-02-09 10:47 MST by Todd C. Miller
Modified: 2010-06-08 16:08 MDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Todd C. Miller 2010-02-09 10:47:20 MST
Given the following /etc/sudoers file:

#include /etc/sudoers.local

Where the included file also has:

#include /etc/sudoers

sudo will keep opening and parsing the files until it runs out of file descriptors.  It should check the list of currently open include files and refuse to open one that is already open.
Comment 1 Todd C. Miller 2010-02-09 11:12:22 MST
Actually, sudo will only open a max of 128 sudoers files at any one time so it will not consume all descriptors.