From e299df1e9eeae5d20f3b8a544a5f4be4fd30872c Mon Sep 17 00:00:00 2001 From: Sebastien Buisson Date: Thu, 15 Feb 2018 23:24:37 +0900 Subject: [PATCH] LU-7854 gss: install lgssc.conf under /etc/request-key.d/ GSS keys for Lustre are generated via the lgss_keyring user-space tool. But request-key system tool needs to know how to call lgss_keyring in order to generate keys for Lustre. This is done by adding the file lgssc.conf file under /etc/request-key.d/, with the following content: create lgssc * * /usr/sbin/lgss_keyring %o %k %t %d %c %u %g %T %P %S This file is not packaged if gss keyring is explicitely disabled at configure time. Test-Parameters: trivial Signed-off-by: Sebastien Buisson Change-Id: Ibf2eb04584f6a100a57bf00070335cf4cf2c620c Reviewed-on: https://review.whamcloud.com/31317 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: John L. Hammond Reviewed-by: Jeremy Filizetti Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- lustre.spec.in | 5 +++++ lustre/conf/Makefile.am | 7 ++++++- lustre/conf/lgssc.conf | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 lustre/conf/lgssc.conf diff --git a/lustre.spec.in b/lustre.spec.in index 9723eb8..89f45ea 100644 --- a/lustre.spec.in +++ b/lustre.spec.in @@ -379,6 +379,11 @@ echo '%{_sysconfdir}/init.d/lnet' >>lustre.files %endif %endif +CONFIGURE_ARGS="%{?configure_args}" +if [ -z "$(echo $CONFIGURE_ARGS | grep "\-\-disable\-gss\-keyring")" ]; then + echo '%config(noreplace) %{_sysconfdir}/request-key.d/lgssc.conf' >>lustre.files +fi + %if %{with servers} mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/ocf/resource.d/lustre/ install -m 0755 contrib/scripts/pacemaker/* $RPM_BUILD_ROOT%{_prefix}/lib/ocf/resource.d/lustre/ diff --git a/lustre/conf/Makefile.am b/lustre/conf/Makefile.am index 59b1005..d452924 100644 --- a/lustre/conf/Makefile.am +++ b/lustre/conf/Makefile.am @@ -34,7 +34,7 @@ EXTRA_DIST = lustre.dtd slapd-lustre.conf lustre2ldif.xsl top.ldif \ 99-lustre.rules lustre ldev.conf ko2iblnd.conf lsvcgss \ - lnet_routes.conf lnet.conf + lnet_routes.conf lnet.conf lgssc.conf ldapconfdir = $(sysconfdir)/openldap sysconf_DATA = lnet.conf @@ -63,3 +63,8 @@ endif modprobedir = $(sysconfdir)/modprobe.d modprobe_DATA = ko2iblnd.conf + +if GSS_KEYRING +requestkeydir = $(sysconfdir)/request-key.d +requestkey_DATA = lgssc.conf +endif diff --git a/lustre/conf/lgssc.conf b/lustre/conf/lgssc.conf new file mode 100644 index 0000000..0b7b15a --- /dev/null +++ b/lustre/conf/lgssc.conf @@ -0,0 +1 @@ +create lgssc * * /usr/sbin/lgss_keyring %o %k %t %d %c %u %g %T %P %S -- 1.8.3.1