FS#29938 - sudo 1.8.5-1 doesn't honor #includedir for sudoers.d directory

Attached to Project: Arch Linux
Opened by Muflone (muflone) - Friday, 18 May 2012, 13:36 GMT
Last edited by Ionut Biru (wonder) - Friday, 18 May 2012, 13:55 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To No-one
Architecture i686
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Upgrading sudo from 1.8.4.p4-1 to 1.8.5-1 the sudoers.d directory (specified in the default /etc/sudoers file) is not read anymore.

Additional info:
* package version(s)
testing/sudo 1.8.5-1

* config and/or log files etc.
In /etc/sudoers the last line is:
#includedir /etc/sudoers.d

In my /etc/sudoers.d/ I have a single file called 00-root which contains:
root ALL=(ALL) ALL

Steps to reproduce:
Copy the 00-root file in /etc/sudoers.d and make sure the /etc/sudoers has the #includedir to include the sudoers.d directory.
Execute strace -e trace=file sudo whoami
and look the used files, there's no trace of /etc/sudoers.d/00-root and the error "root in not in the sudoers file." is shown.

Reverting the sudo package to the 1.8.4.p4-1 version everything works fine again.
This task depends upon

Closed by  Ionut Biru (wonder)
Friday, 18 May 2012, 13:55 GMT
Reason for closing:  Fixed
Additional comments about closing:  sudo 1.8.5.p1-1
Comment by Muflone (muflone) - Friday, 18 May 2012, 13:39 GMT
files used for the test
Comment by Muflone (muflone) - Friday, 18 May 2012, 13:39 GMT
strace output
Comment by Ionut Biru (wonder) - Friday, 18 May 2012, 13:55 GMT
this is already fixed in testing in 1.8.5p1

Loading...