summaryrefslogtreecommitdiff
path: root/security/plasma6-kwallet-pam/files
diff options
context:
space:
mode:
Diffstat (limited to 'security/plasma6-kwallet-pam/files')
-rw-r--r--security/plasma6-kwallet-pam/files/patch-pam__kwallet.c12
-rw-r--r--security/plasma6-kwallet-pam/files/patch-pam__kwallet__init10
2 files changed, 22 insertions, 0 deletions
diff --git a/security/plasma6-kwallet-pam/files/patch-pam__kwallet.c b/security/plasma6-kwallet-pam/files/patch-pam__kwallet.c
new file mode 100644
index 000000000000..84d1e9568396
--- /dev/null
+++ b/security/plasma6-kwallet-pam/files/patch-pam__kwallet.c
@@ -0,0 +1,12 @@
+---pam_kwallet.c 2019-08-28 10:45:20.619019000 +0200
+--- pam_kwallet.c.orig 2021-09-16 08:40:28 UTC
++++ pam_kwallet.c
+@@ -367,7 +367,7 @@ static void execute_kwallet(pam_handle_t *pamh, struct
+ struct sockaddr_un local = {};
+ local.sun_family = AF_UNIX;
+
+- if (strlen(fullSocket) > sizeof(local.sun_path)) {
++ if (strlen(fullSocket) >= sizeof(local.sun_path)) {
+ syslog(LOG_ERR, "%s: socket path %s too long to open",
+ logPrefix, fullSocket);
+ free(fullSocket);
diff --git a/security/plasma6-kwallet-pam/files/patch-pam__kwallet__init b/security/plasma6-kwallet-pam/files/patch-pam__kwallet__init
new file mode 100644
index 000000000000..ccc444322cbb
--- /dev/null
+++ b/security/plasma6-kwallet-pam/files/patch-pam__kwallet__init
@@ -0,0 +1,10 @@
+--- pam_kwallet_init.orig 2019-08-09 12:51:25.200806000 +0200
++++ pam_kwallet_init 2019-08-09 12:51:41.765221000 +0200
+@@ -1,6 +1,6 @@
+ #!/bin/sh
+
+ if test -n "$PAM_KWALLET5_LOGIN" ; then
+- env | socat STDIN UNIX-CONNECT:$PAM_KWALLET5_LOGIN
++ env | nc -U "$PAM_KWALLET5_LOGIN" | :
+ fi
+