[Pvfs2-cvs] commit by nlmills in pvfs2/src/client/sysint:
sys-getattr.sm
CVS commit program
cvs at parl.clemson.edu
Mon Jul 28 16:50:55 EDT 2008
Update of /anoncvs/pvfs2/src/client/sysint
In directory parlweb1:/tmp/cvs-serv8925/src/client/sysint
Modified Files:
Tag: cu-security-branch
sys-getattr.sm
Log Message:
made getattr conform to current conventions. fixed bugs in capability
verification and hash lookup.
Index: sys-getattr.sm
===================================================================
RCS file: /anoncvs/pvfs2/src/client/sysint/sys-getattr.sm,v
diff -p -u -r1.110.4.6 -r1.110.4.7
--- sys-getattr.sm 24 Jul 2008 20:41:42 -0000 1.110.4.6
+++ sys-getattr.sm 28 Jul 2008 20:50:54 -0000 1.110.4.7
@@ -23,7 +23,6 @@
#include "pint-cached-config.h"
#include "PINT-reqproto-encode.h"
#include "pvfs2-internal.h"
-#include "security-types.h"
#include "security-util.h"
/* pvfs2_client_getattr_sm
@@ -439,11 +438,14 @@ static PINT_sm_action getattr_object_get
int ret = -PVFS_EINVAL;
PVFS_object_ref object_ref;
PINT_sm_msgpair_state *msg_p;
+ const PVFS_capability *capability;
gossip_debug(GOSSIP_CLIENT_DEBUG, "(%p) %s\n", sm_p, __func__);
js_p->error_code = 0;
+ capability = PINT_null_capability();
+
PINT_msgpair_init(&sm_p->msgarray_op);
msg_p = &sm_p->msgarray_op.msgpair;
@@ -455,6 +457,7 @@ static PINT_sm_action getattr_object_get
/* setup the msgpair to do a getattr operation */
PINT_SERVREQ_GETATTR_FILL(
msg_p->req,
+ *capability,
*sm_p->newcred_p,
object_ref.fs_id,
object_ref.handle,
@@ -668,12 +671,15 @@ static PINT_sm_action getattr_datafile_g
int ret = -PVFS_EINVAL;
PVFS_object_attr *attr = NULL;
PINT_sm_msgpair_state *msg_p;
+ const PVFS_capability *capability;
int index;
js_p->error_code = 0;
attr = &sm_p->getattr.attr;
assert(attr);
+
+ capability = PINT_null_capability();
ret = PINT_msgpairarray_init(&sm_p->msgarray_op, attr->u.meta.dfile_count);
if(ret != 0)
@@ -694,6 +700,7 @@ static PINT_sm_action getattr_datafile_g
PINT_SERVREQ_GETATTR_FILL(
msg_p->req,
+ *capability,
*sm_p->newcred_p,
sm_p->getattr.object_ref.fs_id,
attr->u.meta.dfile_array[index],
More information about the Pvfs2-cvs
mailing list