[PVFS2-CVS] commit by rbross in pvfs2/src/server: prelude.sm

CVS commit program cvs at parl.clemson.edu
Thu Jan 20 12:00:57 EST 2005


Update of /projects/cvsroot/pvfs2/src/server
In directory parlweb:/tmp/cvs-serv18777/src/server

Modified Files:
	prelude.sm 
Log Message:
Modified permission checking to allow for reading of attributes of an object
any time someone has obtained the handle.  Permission checking is actually
performed on the parent directory for these cases.


Index: prelude.sm
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/server/prelude.sm,v
diff -p -u -r1.49 -r1.50
--- prelude.sm	20 Jan 2005 15:22:31 -0000	1.49
+++ prelude.sm	20 Jan 2005 17:00:57 -0000	1.50
@@ -234,10 +234,17 @@ static int prelude_perm_check(
             {
                 js_p->error_code = 0;
             }
-            else
+	    else if (s_op->req->op == PVFS_SERV_GETATTR)
+	    {
+		/* getting attributes is always ok -- permission
+		 * is checked on the parent directory at read time
+		 */
+		js_p->error_code = 0;
+	    }
+            else /* setattr */
             {
                 /*
-                  NOTE: on other file systems, getattr/setattr doesn't
+                  NOTE: on other file systems, setattr doesn't
                   seem to require read permissions by the user, group
                   OR other, so long as the user or group matches (or
                   is root)



More information about the PVFS2-CVS mailing list