58f79a2
diff -up openssh-7.4p1/ssh-agent.1.pkcs11-whitelist openssh-7.4p1/ssh-agent.1
58f79a2
--- openssh-7.4p1/ssh-agent.1.pkcs11-whitelist	2017-01-03 10:41:01.916331710 +0100
58f79a2
+++ openssh-7.4p1/ssh-agent.1	2017-01-03 10:40:06.549366029 +0100
58f79a2
@@ -129,7 +129,7 @@ that may be added using the
58f79a2
 option to
58f79a2
 .Xr ssh-add 1 .
58f79a2
 The default is to allow loading PKCS#11 libraries from
58f79a2
-.Dq /usr/lib/*,/usr/local/lib/* .
58f79a2
+.Dq /usr/lib*/*,/usr/local/lib*/* .
58f79a2
 PKCS#11 libraries that do not match the whitelist will be refused.
58f79a2
 See PATTERNS in
58f79a2
 .Xr ssh_config 5
58f79a2
diff -up openssh-7.4p1/ssh-agent.c.pkcs11-whitelist openssh-7.4p1/ssh-agent.c
58f79a2
--- openssh-7.4p1/ssh-agent.c.pkcs11-whitelist	2017-01-03 10:41:09.324327118 +0100
58f79a2
+++ openssh-7.4p1/ssh-agent.c	2017-01-03 10:40:21.212356939 +0100
58f79a2
@@ -89,7 +89,7 @@
58f79a2
 #endif
58f79a2
 
58f79a2
 #ifndef DEFAULT_PKCS11_WHITELIST
58f79a2
-# define DEFAULT_PKCS11_WHITELIST "/usr/lib/*,/usr/local/lib/*"
58f79a2
+# define DEFAULT_PKCS11_WHITELIST "/usr/lib*/*,/usr/local/lib*/*"
58f79a2
 #endif
58f79a2
 
58f79a2
 typedef enum {