From b9e299a98dd8d7fd9b5754dcc9aff565b3004abd Mon Sep 17 00:00:00 2001 From: Alex Zhuravlev Date: Thu, 1 Jun 2017 11:20:12 +0400 Subject: [PATCH] LU-9578 llite: use security context if it's enabled in the kernel if it's disabled, then Lustre stop to work properly (can not create files, etc) Lustre-change: https://review.whamcloud.com/27364 Lustre-commmit: 61f26ea47f96632a90702f2b404e845a01498612 Change-Id: I1e431ec95a2b0613b43893567eb6d1a64ec832de Signed-off-by: Alex Zhuravlev Reviewed-by: Andreas Dilger Reviewed-by: Chris Horn Reviewed-by: James Simmons Reviewed-by: Sebastien Buisson Signed-off-by: Minh Diep Reviewed-on: https://review.whamcloud.com/29737 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: John L. Hammond --- lustre/llite/llite_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index 0824fa2..40b57d9 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -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 */ -- 1.8.3.1