Blame SOURCES/nfs-utils-1.3.0-nfsidmap-timeout.patch

851484
diff -up nfs-utils-1.3.0/utils/nfsidmap/nfsidmap.c.save nfs-utils-1.3.0/utils/nfsidmap/nfsidmap.c
851484
--- nfs-utils-1.3.0/utils/nfsidmap/nfsidmap.c.save	2015-11-24 09:29:53.332040370 -0500
851484
+++ nfs-utils-1.3.0/utils/nfsidmap/nfsidmap.c	2015-11-24 09:30:06.579249849 -0500
851484
@@ -24,7 +24,7 @@ char *usage="Usage: %s [-v] [-c || [-u|-
851484
 
851484
 #define PROCKEYS "/proc/keys"
851484
 #ifndef DEFAULT_KEYRING
851484
-#define DEFAULT_KEYRING "id_resolver"
851484
+#define DEFAULT_KEYRING ".id_resolver"
851484
 #endif
851484
 
851484
 #ifndef PATH_IDMAPDCONF
851484
@@ -315,6 +315,9 @@ int main(int argc, char **argv)
851484
 			key, type, value, timeout);
851484
 	}
851484
 
851484
+	/* Become a possesor of the to-be-instantiated key to set the key's timeout */
851484
+	request_key("keyring", DEFAULT_KEYRING, NULL, KEY_SPEC_THREAD_KEYRING);
851484
+
851484
 	if (strcmp(type, "uid") == 0)
851484
 		rc = id_lookup(value, key, USER);
851484
 	else if (strcmp(type, "gid") == 0)