18 Oct
2004
18 Oct
'04
11:12 a.m.
On 18.10.2004, at 08:32, Gregory Bond wrote:
I've had a bit more of a play and I understand it a bit better. Looks like restrict_access_by_env() is being called in 2 different contexts the auth daemon). The call as root fails because the program tries
- once to establish the "dovecot" user , once as root (presumably in
setgid() to prove it can't, but as root this works.
Ah, I see. I didn't realize that root's gid might not be 0.
{if (getgid() == 0 || getegid() == 0 || setgid(0) == 0)
setgid(0) == 0)) {if (getgid() == 0 || getegid() == 0 || (uid != 0 &&
Looks good, committing.