gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r20745 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r20745 - gnunet/src/util
Date: Sat, 24 Mar 2012 16:24:38 +0100

Author: grothoff
Date: 2012-03-24 16:24:38 +0100 (Sat, 24 Mar 2012)
New Revision: 20745

Modified:
   gnunet/src/util/service.c
Log:
-UID match is sufficient if GID match is required

Modified: gnunet/src/util/service.c
===================================================================
--- gnunet/src/util/service.c   2012-03-24 14:48:56 UTC (rev 20744)
+++ gnunet/src/util/service.c   2012-03-24 15:24:38 UTC (rev 20745)
@@ -626,9 +626,10 @@
       /* UID match required */
       ret = (uc != NULL) && (uc->uid == geteuid ());
     }
-    else if (sctx->match_gid == GNUNET_YES) 
+    else if ( (sctx->match_gid == GNUNET_YES) &&
+             ( (uc == NULL) || (uc->uid != geteuid ()) ) )
     {
-      /* group match required */
+      /* group match required and UID does not match */
       if (uc == NULL) 
       {
        /* no credentials, group match not possible */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]