changeset 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 92673a185add
children 39014fc31dbe
files src/permissions.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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));
 }