masqmail

diff src/permissions.c @ 87:3cbcc46c7d49

added a comment on how to make group uucp trusted too this is intended to be a hack only for those who really need it
author meillo@marmaro.de
date Sat, 19 Jun 2010 18:52:19 +0200
parents ffeff2c33799
children 996b53a50f55
line diff
     1.1 --- a/src/permissions.c	Sat Jun 19 18:50:41 2010 +0200
     1.2 +++ b/src/permissions.c	Sat Jun 19 18:52:19 2010 +0200
     1.3 @@ -51,6 +51,14 @@
     1.4  gboolean
     1.5  is_privileged_user(uid_t uid)
     1.6  {
     1.7 +	/* uncomment these lines if you need the `uucp' group to be trusted too
     1.8 +	struct group* grent = getgrnam("uucp");
     1.9 +
    1.10 +	if (is_ingroup(uid, grent->gr_gid)) {
    1.11 +		return TRUE;
    1.12 +	}
    1.13 +	*/
    1.14 +
    1.15  	return (uid == 0) || (uid == conf.mail_uid) || (is_ingroup(uid, conf.mail_gid));
    1.16  }
    1.17