# HG changeset patch # User meillo@marmaro.de # Date 1276966339 -7200 # Node ID 3cbcc46c7d495a699e953b2a4e596ba5b6c5917c # Parent 92673a185addf04f0ae7dde6d944b8ed6bfa8000 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 diff -r 92673a185add -r 3cbcc46c7d49 src/permissions.c --- a/src/permissions.c Sat Jun 19 18:50:41 2010 +0200 +++ b/src/permissions.c Sat Jun 19 18:52:19 2010 +0200 @@ -51,6 +51,14 @@ gboolean is_privileged_user(uid_t uid) { + /* uncomment these lines if you need the `uucp' group to be trusted too + struct group* grent = getgrnam("uucp"); + + if (is_ingroup(uid, grent->gr_gid)) { + return TRUE; + } + */ + return (uid == 0) || (uid == conf.mail_uid) || (is_ingroup(uid, conf.mail_gid)); }