X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fptlrpc%2Fgss%2Fgss_keyring.c;h=a6dc099395aa2eec54385dbafa3b9a5dc706d195;hb=cec72a356891eaa729314a7bc89c4b2aaef0a31b;hp=1aa2f6fd47ed60e5f7bcec25987510f4db991649;hpb=711e142d055fda62be482f74f2f73acac5e7e453;p=fs%2Flustre-release.git diff --git a/lustre/ptlrpc/gss/gss_keyring.c b/lustre/ptlrpc/gss/gss_keyring.c index 1aa2f6f..a6dc099 100644 --- a/lustre/ptlrpc/gss/gss_keyring.c +++ b/lustre/ptlrpc/gss/gss_keyring.c @@ -721,7 +721,23 @@ struct ptlrpc_cli_ctx * gss_sec_lookup_ctx_kr(struct ptlrpc_sec *sec, /* update reverse handle for root user */ sec2gsec(sec)->gs_rvs_hdl = gss_get_next_ctx_index(); - co_flags = "r"; + switch (sec->ps_part) { + case LUSTRE_SP_MDT: + co_flags = "m"; + break; + case LUSTRE_SP_OST: + co_flags = "o"; + break; + case LUSTRE_SP_MGC: + co_flags = "rmo"; + break; + case LUSTRE_SP_CLI: + co_flags = "r"; + break; + case LUSTRE_SP_MGS: + default: + LBUG(); + } } /* in case of setuid, key will be constructed as owner of fsuid/fsgid, @@ -925,8 +941,7 @@ void flush_spec_ctx_cache_kr(struct ptlrpc_sec *sec, static int gss_sec_flush_ctx_cache_kr(struct ptlrpc_sec *sec, - uid_t uid, - int grace, int force) + uid_t uid, int grace, int force) { ENTRY;