*
* Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
*
- * Copyright (c) 2011, 2016, Intel Corporation.
+ * Copyright (c) 2011, 2015, Intel Corporation.
*
* Author: Eric Mei <ericm@clusterfs.com>
*/
sec->ps_import = class_import_get(imp);
spin_lock_init(&sec->ps_lock);
INIT_LIST_HEAD(&sec->ps_gc_list);
+ sec->ps_sepol_mtime = 0;
+ sec->ps_sepol_checknext = ktime_set(0, 0);
+ sec->ps_sepol[0] = '\0';
if (!svcctx) {
sec->ps_gc_interval = GSS_GC_INTERVAL;
if (rc != SECSVC_OK)
RETURN(rc);
- if (grctx->src_ctx->gsc_usr_mds || grctx->src_ctx->gsc_usr_oss ||
- grctx->src_ctx->gsc_usr_root)
- CWARN("create svc ctx %p: user from %s authenticated as %s\n",
- grctx->src_ctx, libcfs_nid2str(req->rq_peer.nid),
- grctx->src_ctx->gsc_usr_mds ? "mds" :
- (grctx->src_ctx->gsc_usr_oss ? "oss" : "root"));
- else
- CWARN("create svc ctx %p: accept user %u from %s\n",
- grctx->src_ctx, grctx->src_ctx->gsc_uid,
- libcfs_nid2str(req->rq_peer.nid));
+ if (grctx->src_ctx->gsc_usr_mds || grctx->src_ctx->gsc_usr_oss ||
+ grctx->src_ctx->gsc_usr_root)
+ CWARN("create svc ctx %p: user from %s authenticated as %s\n",
+ grctx->src_ctx, libcfs_nid2str(req->rq_peer.nid),
+ grctx->src_ctx->gsc_usr_root ? "root" :
+ (grctx->src_ctx->gsc_usr_mds ? "mds" :
+ (grctx->src_ctx->gsc_usr_oss ? "oss" : "null")));
+ else
+ CWARN("create svc ctx %p: accept user %u from %s\n",
+ grctx->src_ctx, grctx->src_ctx->gsc_uid,
+ libcfs_nid2str(req->rq_peer.nid));
if (gw->gw_flags & LUSTRE_GSS_PACK_USER) {
if (reqbuf->lm_bufcount < 4) {
{
int rc;
- rc = gss_init_lproc();
+ rc = gss_init_tunables();
if (rc)
return rc;
rc = gss_init_cli_upcall();
if (rc)
- goto out_lproc;
+ goto out_tunables;
rc = gss_init_svc_upcall();
if (rc)
gss_exit_svc_upcall();
out_cli_upcall:
gss_exit_cli_upcall();
-out_lproc:
- gss_exit_lproc();
+out_tunables:
+ gss_exit_tunables();
return rc;
}
cleanup_kerberos_module();
gss_exit_svc_upcall();
gss_exit_cli_upcall();
- gss_exit_lproc();
+ gss_exit_tunables();
}
MODULE_AUTHOR("OpenSFS, Inc. <http://www.lustre.org/>");