Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 265291

Summary: app-admin/sudo-1.7.0 segfaults on many error cases
Product: Gentoo Linux Reporter: T Chan <something-bz>
Component: Current packagesAssignee: Diego Elio Pettenò (RETIRED) <flameeyes>
Status: VERIFIED TEST-REQUEST    
Severity: critical    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch

Description T Chan 2009-04-07 11:58:58 UTC
sudo consistently segfaults when /etc/sudoers is not mode 0400 (a slightly dubious mode, but oh well).

Reproducible: Always

Steps to Reproduce:
1. Login as root
2. chmod 0644 /etc/sudoers
3. sudo

Actual Results:  
# sudo
sudo: /etc/sudoers is mode 0644, should be 0440
Segmentation fault

Expected Results:  
# ./sudo
sudo: /etc/sudoers is mode 0644, should be 0440
sudo: no valid sudoers sources found, quitting
Comment 1 T Chan 2009-04-07 12:00:22 UTC
Created attachment 187560 [details, diff]
Patch
Comment 2 Peter Alfredsen (RETIRED) gentoo-dev 2009-04-07 13:31:48 UTC
Bugs with patches, we love them.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-04-08 17:39:19 UTC
Can you please confirm this with 1.7.1_rc1? It doesn't seem to segfault, and it's now in ~arch.
Comment 4 T Chan 2009-04-10 17:19:48 UTC
Works for me.