Bugzilla – Bug 393
sudo's #include functionality doesn't handle cycles
Last modified: 2010-06-08 16:08:16 MDT
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.
Actually, sudo will only open a max of 128 sudoers files at any one time so it will not consume all descriptors.