bmh10 / rpms / openssh

Forked from rpms/openssh 2 days ago
Clone

Blame SOURCES/openssh-7.4p1-pkcs11-whitelist.patch

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