From 0d59f1a2c1e88495d1d697acabb572f67ccc211e Mon Sep 17 00:00:00 2001 From: Sebastien Buisson Date: Tue, 7 Jul 2020 23:59:08 +0900 Subject: [PATCH] LU-13754 gss: open sptlrpc init channel in R+W mode Linux 5.3 changed struct cache_detail readers to writers. As this mechanism is used by GSS authentication in Lustre via SunRPC, we need to make sure lsvcgssd daemon does open /proc/net/rpc/auth.sptlrpc.init/channel in R+W mode. It also affects CentOS/RHEL 7.8, as the kernel commit was ported to these distros. Test-Parameters: trivial Test-Parameters: env=SHARED_KEY=true,SANITY_EXCEPT="56w 405" mdscount=2 mdtcount=4 osscount=2 ostcount=8 testlist=sanity,recovery-small,sanity-sec Signed-off-by: Sebastien Buisson Change-Id: If88802d4f2bc3168dda4f79fe57f2f44ac7ef39e Reviewed-on: https://review.whamcloud.com/39297 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Petros Koutoupis Reviewed-by: John L. Hammond Reviewed-by: Oleg Drokin --- lustre/utils/gss/svcgssd_main_loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/utils/gss/svcgssd_main_loop.c b/lustre/utils/gss/svcgssd_main_loop.c index 18f7985..bfd0624 100644 --- a/lustre/utils/gss/svcgssd_main_loop.c +++ b/lustre/utils/gss/svcgssd_main_loop.c @@ -73,7 +73,7 @@ svcgssd_run() int save_err; while (f == NULL) { - f = fopen(gss_rpc_channel_path, "rw"); + f = fopen(gss_rpc_channel_path, "r+"); if (f == NULL) { printerr(4, "failed to open %s: %s\n", gss_rpc_channel_path, strerror(errno)); -- 1.8.3.1