Skip to content

Commit

Permalink
LU-9578 llite: use security context if it's enabled in the kernel
Browse files Browse the repository at this point in the history
if it's disabled, then Lustre stop to work properly (can not create
files, etc)

Lustre-change: https://review.whamcloud.com/27364
Lustre-commmit: 61f26ea

Change-Id: I1e431ec95a2b0613b43893567eb6d1a64ec832de
Signed-off-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Chris Horn <hornc@cray.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/29737
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
  • Loading branch information
Alex Zhuravlev authored and jhammond-intel committed Nov 15, 2017
1 parent 7736aa8 commit b9e299a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lustre/llite/llite_lib.c
Expand Up @@ -258,7 +258,7 @@ static int client_common_fill_super(struct super_block *sb, char *md, char *dt,
if (sbi->ll_flags & LL_SBI_ALWAYS_PING)
data->ocd_connect_flags &= ~OBD_CONNECT_PINGLESS;

#ifdef HAVE_SECURITY_DENTRY_INIT_SECURITY
#if defined(HAVE_SECURITY_DENTRY_INIT_SECURITY) && defined(CONFIG_SECURITY)
data->ocd_connect_flags2 |= OBD_CONNECT2_FILE_SECCTX;
#endif /* HAVE_SECURITY_DENTRY_INIT_SECURITY */

Expand Down

0 comments on commit b9e299a

Please sign in to comment.