Bug 171725 - mail-filter/dspam: dspamc should be setuid
Bug#: 171725 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: mrness@gentoo.org Reported By: jonas@websystem.se
Component: Ebuilds
URL: 
Summary: mail-filter/dspam: dspamc should be setuid
Keywords:  
Status Whiteboard: 
Opened: 2007-03-21 21:21 0000
Description:   Opened: 2007-03-21 21:21 0000
When installing with the daemon use-flag the dspamc binary is installed and it
should have setuid also, else it can't read dspam.conf.

Reproducible: Always

------- Comment #1 From Alin Năstac 2007-03-22 09:45:14 0000 -------
But /usr/bin/dspam is installed with sgid
  tsr ~ # ls -l /usr/bin/dspam
  -r-x--s--x 1 root dspam 62892 2007-01-08 17:42 /usr/bin/dspam
and dspam.conf has the following permissions
  tsr dspam # ls -l /etc/mail/dspam/dspam.conf
  -rw-r----- 1 root dspam 27770 2007-01-08 17:42 /etc/mail/dspam/dspam.conf

Unless I am missing something here, this should be enough.

------- Comment #2 From Jonas Jonsson 2007-03-22 11:00:07 0000 -------
Well.. Almost...

It was /usr/bin/dspamc (Observe the c at the end) I was talking about. The
dspam binary is working as it should. dspamc is a lightweight version of dspam
that only  has the --client stuff not the rest. 

------- Comment #3 From Alin Năstac 2007-03-22 14:49:42 0000 -------
fixed in dspam-3.6.8-r3. 
thanks!