Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90468 - gld runs not under a least privilege user by default config
Summary: gld runs not under a least privilege user by default config
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Default Configs (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Security
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-26 02:02 UTC by Alexander Stoll
Modified: 2005-04-27 05:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Stoll 2005-04-26 02:02:55 UTC
Gld, a standalone greylisting daemon for postfix, runs not as a dedicated, least privileged user on the system in default config. As demonstrated by bug #88904 , this puts the system at a totally unneeded higher risk. A dedicated user should be generated on the system at package install - for example like the djbdns package already does.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
If default config is not altered, the daemon runs at root privilege exposing the
whole system to an unnescessary risk.

Expected Results:  
A dedicated user "gld" should be generated on the system at package install and
the existence of such a user verified at upgrade and used by default config
"gld.conf.sample".
Comment 1 Thierry Carrez (RETIRED) gentoo-dev 2005-04-26 02:30:41 UTC
This should have been fixed by the recent gld GLSA... Recent versions of gld should by default (1) listen to loopback addresses only, (2) run as user/group nobody, since the ebuild makes modifications to the /etc/gld.conf.sample file:

dosed 's:^LOOPBACKONLY=.*:LOOPBACKONLY=1:' /etc/gld.conf.sample
dosed 's:^#USER=.*:USER=nobody:' /etc/gld.conf.sample
dosed 's:^#GROUP=.*:GROUP=nobody:' /etc/gld.conf.sample
Comment 2 Alexander Stoll 2005-04-27 02:59:58 UTC
OK, if you think adding a special user is to paranoic, please close this bug.
Thanks for looking into this.
Comment 3 Thierry Carrez (RETIRED) gentoo-dev 2005-04-27 05:02:55 UTC
Well, running as nobody in the default config is sufficiently secure for us. However, you might post an ebuild enhancement request (assigned to package maintainer) to switch to a specific user, as it will be even more secure.