X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fptlrpc%2Fsec.c;h=a65e4305390e8fc48cbf1436ef5de2eaffedffce;hp=068bfd333dc9e8c0cb1b91a223452df55a31ad1f;hb=c0fa0ba4a8efcd774f1fe27986a0217c76dedf6d;hpb=aba68250a67a10104c534bd726f67b31a7f35692 diff --git a/lustre/ptlrpc/sec.c b/lustre/ptlrpc/sec.c index 068bfd3..a65e430 100644 --- a/lustre/ptlrpc/sec.c +++ b/lustre/ptlrpc/sec.c @@ -1217,7 +1217,7 @@ int sptlrpc_cli_unwrap_early_reply(struct ptlrpc_request *req, rc = do_cli_unwrap_reply(early_req); if (rc) { DEBUG_REQ(D_ADAPTTO, early_req, - "error %d unwrap early reply", rc); + "unwrap early reply: rc = %d", rc); GOTO(err_ctx, rc); } @@ -2158,18 +2158,21 @@ static int sptlrpc_svc_check_from(struct ptlrpc_request *req, int svc_rc) switch (req->rq_sp_from) { case LUSTRE_SP_CLI: if (req->rq_auth_usr_mdt || req->rq_auth_usr_ost) { + /* The below message is checked in sanity-sec test_33 */ DEBUG_REQ(D_ERROR, req, "faked source CLI"); svc_rc = SECSVC_DROP; } break; case LUSTRE_SP_MDT: if (!req->rq_auth_usr_mdt) { + /* The below message is checked in sanity-sec test_33 */ DEBUG_REQ(D_ERROR, req, "faked source MDT"); svc_rc = SECSVC_DROP; } break; case LUSTRE_SP_OST: if (!req->rq_auth_usr_ost) { + /* The below message is checked in sanity-sec test_33 */ DEBUG_REQ(D_ERROR, req, "faked source OST"); svc_rc = SECSVC_DROP; } @@ -2178,6 +2181,7 @@ static int sptlrpc_svc_check_from(struct ptlrpc_request *req, int svc_rc) case LUSTRE_SP_MGC: if (!req->rq_auth_usr_root && !req->rq_auth_usr_mdt && !req->rq_auth_usr_ost) { + /* The below message is checked in sanity-sec test_33 */ DEBUG_REQ(D_ERROR, req, "faked source MGC/MGS"); svc_rc = SECSVC_DROP; }