[neon/kde/kdesu/Neon/release] debian: add patch from Kubuntu for https://bugs.kde.org/452532

Jonathan Esk-Riddell null at kde.org
Fri May 27 15:57:17 BST 2022


Git commit 1892be5d12e2b7513b859973163648483376fc7d by Jonathan Esk-Riddell.
Committed on 27/05/2022 at 14:57.
Pushed by jriddell into branch 'Neon/release'.

add patch from Kubuntu for https://bugs.kde.org/452532

A  +4    -0    debian/kdesu-sudoers
M  +1    -0    debian/libkf5su-data.install
A  +11   -0    debian/libkf5su-data.postinst

https://invent.kde.org/neon/kde/kdesu/commit/1892be5d12e2b7513b859973163648483376fc7d

diff --git a/debian/kdesu-sudoers b/debian/kdesu-sudoers
new file mode 100644
index 0000000..2700bc0
--- /dev/null
+++ b/debian/kdesu-sudoers
@@ -0,0 +1,4 @@
+# Workaround for KDE bug https://bugs.kde.org/452532
+# To be installed with permissions root:root 440 in /etc/sudoeors.d/
+
+Defaults!/usr/lib/*/libexec/kf5/kdesu_stub !use_pty
diff --git a/debian/libkf5su-data.install b/debian/libkf5su-data.install
index 154dd11..ba21a05 100644
--- a/debian/libkf5su-data.install
+++ b/debian/libkf5su-data.install
@@ -1,2 +1,3 @@
+debian/kdesu-sudoers etc/sudoers.d/
 usr/share/locale/*/*/kdesud5.mo
 usr/share/qlogging-categories5/
diff --git a/debian/libkf5su-data.postinst b/debian/libkf5su-data.postinst
new file mode 100644
index 0000000..a1f17ad
--- /dev/null
+++ b/debian/libkf5su-data.postinst
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+# make sure kdesu-sudoers has the correct permissions and owner/group
+if [ -f /etc/sudoers.d/kdesu-sudoers ];then
+    chown root:root /etc/sudoers.d/kdesu-sudoers
+    chmod 440 /etc/sudoers.d/kdesu-sudoers
+fi
+
+#DEBHELPER#


More information about the Neon-commits mailing list