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

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