From: Sebastien Buisson Date: Wed, 5 Jun 2024 13:50:41 +0000 (+0200) Subject: LU-17000 gss: update init_channel initialization X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=69e7c5eaccfb718cdd28ebd8769b34209385f544;p=fs%2Flustre-release.git LU-17000 gss: update init_channel initialization Only root needs write access to 'sptlrpc.gss.init_channel', so adjust permissions accordingly when sysfs file is created. Lustre-change: https://review.whamcloud.com/55322 Lustre-commit: TBD (from 44c147a3bdf8d44ef3e36c86018bacacec542341) DDN-Bug-Id: EX-9705 Test-Parameters: kerberos=true testlist=sanity-krb5 Signed-off-by: Sebastien Buisson Change-Id: I6539ade1a9d815664f6659a5c1ee25e7f1f7df0e Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/55320 Tested-by: Andreas Dilger Tested-by: jenkins Reviewed-by: Andreas Dilger Reviewed-by: Yang Sheng --- diff --git a/lustre/ptlrpc/gss/lproc_gss.c b/lustre/ptlrpc/gss/lproc_gss.c index 03ce79b..007b5b3 100644 --- a/lustre/ptlrpc/gss/lproc_gss.c +++ b/lustre/ptlrpc/gss/lproc_gss.c @@ -434,7 +434,7 @@ static struct ldebugfs_vars gss_debugfs_vars[] = { .fops = &gss_proc_oos_fops }, { .name = "init_channel", .fops = &gss_proc_secinit, - .proc_mode = 0222 }, + .proc_mode = 0200 }, { NULL } };