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

Bug 128024

Summary: dspam 3.6.4 ebuilds sets wrong permissions
Product: Gentoo Linux Reporter: Manuel McLure <manuel>
Component: New packagesAssignee: Alin Năstac (RETIRED) <mrness>
Status: RESOLVED FIXED    
Severity: normal CC: net-mail+disabled, st_lim
Priority: High    
Version: unspecified   
Hardware: All   
OS: Other   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Ebuild that sets proper permissions for dspam executables

Description Manuel McLure 2006-03-29 11:35:11 UTC
The dspam 3.6.4 ebuild sets the permissions on /usr/bin/dspam and /usr/bin/dspam_stats to -r-x--s---  1 root mail, while all of the directories and such get created with user root, group mail, and permissions 02510 (-r-x--s---).

However, the directories and files created by dspam have user dspam and group dspam, so the dspam executable with permissions as above can't write into them if it is executed by anyone but root.

These executables should have group dspam and sgid permissions so they can correctly write to these files.
Comment 1 Manuel McLure 2006-03-29 11:36:09 UTC
Created attachment 83387 [details]
Ebuild that sets proper permissions for dspam executables
Comment 2 Alin Năstac (RETIRED) gentoo-dev 2006-10-29 01:57:04 UTC
takeover the maintainership from st_lim. 
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2006-10-29 02:01:24 UTC
fixed in 3.6.8