Sync
authorAndrew McNab <andrew.mcnab@manchester.ac.uk>
Mon, 26 Jun 2006 13:03:30 +0000 (13:03 +0000)
committerAndrew McNab <andrew.mcnab@manchester.ac.uk>
Mon, 26 Jun 2006 13:03:30 +0000 (13:03 +0000)
org.gridsite.core/src/slashgrid.c

index 6395a9d..de86328 100644 (file)
@@ -1041,6 +1041,16 @@ GRSTgaclPerm get_gaclPerm(struct fuse_context *fuse_ctx, char *path)
 
 // eventually want a UID cache here...
 
+/*
+// want root to be able to read anything, and to write to anything under
+// local_root - need to test if talking about a symbolic link??
+  if (fuse_ctx->uid == 0) 
+    {
+      if (debugmode) syslog(LOG_DEBUG, 
+              "get_gaclPerm returns perm=%d for root user", GRST_PERM_ALL);
+      return GRST_PERM_ALL;
+    }
+*/
   dn = mapdir_uid_to_dn(fuse_ctx->uid);
   
   if (dn != NULL)