Lines Matching refs:cred

98 static int nfs4_do_setattr(struct inode *inode, const struct cred *cred,
103 const struct cred *cred,
107 const struct cred *);
109 const struct cred *, bool);
382 const struct cred *cred)
386 ops->test_and_free_expired(server, stateid, cred);
391 const struct cred *cred)
394 nfs4_test_and_free_stateid(server, stateid, cred);
399 const struct cred *cred)
404 __nfs4_free_revoked_stateid(server, &tmp, cred);
826 static void nfs4_probe_sequence(struct nfs_client *client, const struct cred *cred,
829 struct rpc_task *task = _nfs41_proc_sequence(client, cred, slot, true);
2658 static int nfs4_opendata_access(const struct cred *cred,
2681 nfs_access_add_cache(state->inode, &cache, cred);
2829 const struct cred *cred)
2837 const struct cred *cred)
2851 status = nfs41_test_stateid(server, stateid, cred);
2862 nfs41_free_stateid(server, stateid, cred, true);
2871 const struct cred *cred = NULL;
2893 if (delegation->cred)
2894 cred = get_cred(delegation->cred);
2897 status = nfs41_test_and_free_expired_stateid(server, &stateid, cred);
2904 put_cred(cred);
2941 const struct cred *cred = lsp->ls_state->owner->so_cred;
2951 cred);
2985 const struct cred *cred = state->owner->so_cred;
2990 status = nfs41_test_and_free_expired_stateid(server, stateid, cred);
3154 const struct cred *cred = ctx->cred;
3164 sp = nfs4_get_state_owner(server, cred, GFP_KERNEL);
3210 status = nfs4_do_setattr(state->inode, cred,
3318 const struct cred *cred,
3326 .rpc_cred = cred,
3328 const struct cred *delegation_cred = NULL;
3374 static int nfs4_do_setattr(struct inode *inode, const struct cred *cred,
3409 err = _nfs4_do_setattr(inode, &arg, &res, cred, ctx);
4016 xprtdata.cred = nfs4_get_clid_cred(clp);
4020 if (xprtdata.cred)
4021 put_cred(xprtdata.cred);
4048 const struct cred *cred;
4054 cred = ops->get_state_renewal_cred(clp);
4055 if (cred == NULL) {
4056 cred = nfs4_get_clid_cred(clp);
4057 if (cred == NULL)
4072 cred);
4090 put_cred(cred);
4408 const struct cred *cred = NULL;
4432 cred = ctx->cred;
4439 status = nfs4_do_setattr(inode, cred, fattr, sattr, ctx, NULL);
4623 const struct cred *cred)
4637 .rpc_cred = cred,
4658 const struct cred *cred)
4665 err = _nfs4_proc_access(inode, entry, cred);
5166 .rpc_cred = nr_arg->cred,
5799 static int nfs4_proc_async_renew(struct nfs_client *clp, const struct cred *cred, unsigned renew_flags)
5804 .rpc_cred = cred,
5823 static int nfs4_proc_renew(struct nfs_client *clp, const struct cred *cred)
5828 .rpc_cred = cred,
6466 * @cred: credential to use for this call
6472 unsigned short port, const struct cred *cred,
6485 .rpc_cred = cred,
6540 * @cred: credential to use for this call
6546 const struct cred *cred)
6551 .rpc_cred = cred,
6695 static int _nfs4_proc_delegreturn(struct inode *inode, const struct cred *cred, const nfs4_stateid *stateid, int issync)
6702 .rpc_cred = cred,
6740 cred);
6770 int nfs4_proc_delegreturn(struct inode *inode, const struct cred *cred, const nfs4_stateid *stateid, int issync)
6776 err = _nfs4_proc_delegreturn(inode, cred, stateid, issync);
7019 .rpc_cred = ctx->cred,
8094 struct page *page, const struct cred *cred)
8117 .rpc_cred = cred,
8151 struct page *page, const struct cred *cred)
8171 .rpc_cred = cred,
8207 * @cred: credential to use for this operation
8222 struct page *page, const struct cred *cred)
8240 cred);
8255 static int _nfs40_proc_fsid_present(struct inode *inode, const struct cred *cred)
8272 .rpc_cred = cred,
8301 static int _nfs41_proc_fsid_present(struct inode *inode, const struct cred *cred)
8314 .rpc_cred = cred,
8337 * @cred: credential to use for this operation
8348 int nfs4_proc_fsid_present(struct inode *inode, const struct cred *cred)
8366 status = ops->fsid_present(inode, cred);
8378 * Considerations sections. Otherwise, just use the user cred with the
8410 const struct cred *cred = NULL;
8416 cred = nfs4_get_clid_cred(clp);
8417 msg.rpc_cred = cred;
8428 put_cred(cred);
8442 /* try to use integrity protection with machine cred */
8450 * the current filesystem's rpc_client and the user cred.
8529 const struct cred *cred)
8543 .rpc_cred = cred,
8592 const struct cred *cred;
8602 return nfs4_proc_bind_one_conn_to_session(clnt, xprt, p->clp, p->cred);
8605 int nfs4_proc_bind_conn_to_session(struct nfs_client *clp, const struct cred *cred)
8609 .cred = cred,
8688 * we're already using the machine cred for exchange_id
8689 * and will never use a different cred.
8771 nfs4_run_exchange_id(struct nfs_client *clp, const struct cred *cred,
8776 .rpc_cred = cred,
8869 static int _nfs4_proc_exchange_id(struct nfs_client *clp, const struct cred *cred,
8878 task = nfs4_run_exchange_id(clp, cred, sp4_how, NULL);
8940 int nfs4_proc_exchange_id(struct nfs_client *clp, const struct cred *cred)
8948 status = _nfs4_proc_exchange_id(clp, cred, SP4_MACH_CRED);
8954 return _nfs4_proc_exchange_id(clp, cred, SP4_NONE);
8988 task = nfs4_run_exchange_id(adata->clp, adata->cred, sp4_how, xprt);
9014 const struct cred *cred)
9019 .rpc_cred = cred,
9033 const struct cred *cred)
9039 ret = _nfs4_proc_destroy_clientid(clp, cred);
9054 const struct cred *cred;
9063 cred = nfs4_get_clid_cred(clp);
9064 ret = nfs4_proc_destroy_clientid(clp, cred);
9065 put_cred(cred);
9274 const struct cred *cred)
9289 .rpc_cred = cred,
9327 int nfs4_proc_create_session(struct nfs_client *clp, const struct cred *cred)
9342 status = _nfs4_proc_create_session(clp, cred);
9365 const struct cred *cred)
9370 .rpc_cred = cred,
9463 const struct cred *cred,
9470 .rpc_cred = cred,
9506 static int nfs41_proc_async_sequence(struct nfs_client *clp, const struct cred *cred, unsigned renew_flags)
9513 task = _nfs41_proc_sequence(clp, cred, NULL, false);
9522 static int nfs4_proc_sequence(struct nfs_client *clp, const struct cred *cred)
9527 task = _nfs41_proc_sequence(clp, cred, NULL, true);
9617 const struct cred *cred)
9622 .rpc_cred = cred,
9789 .rpc_cred = lgp->cred,
9903 put_cred(lrp->cred);
9920 .rpc_cred = lrp->cred,
9963 const struct cred *cred)
9977 .rpc_cred = cred,
9996 const struct cred *cred)
10003 _nfs4_proc_getdeviceinfo(server, pdev, cred),
10054 put_cred(data->cred);
10072 .rpc_cred = data->cred,
10142 const struct cred *cred = NULL;
10148 cred = nfs4_get_clid_cred(server->nfs_client);
10149 msg.rpc_cred = cred;
10156 put_cred(cred);
10173 /* try to use integrity protection with machine cred */
10182 * the current filesystem's rpc_client and the user cred.
10271 const struct cred *cred)
10282 .rpc_cred = cred,
10324 * @cred: credential
10332 const struct cred *cred)
10339 err = _nfs41_test_stateid(server, stateid, cred);
10393 * @cred: credential
10400 const struct cred *cred,
10405 .rpc_cred = cred,
10445 const struct cred *cred = lsp->ls_state->owner->so_cred;
10447 nfs41_free_stateid(server, &lsp->ls_stateid, cred, false);