kentpeacock / rpms / openssh

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