public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: kde-plasma/kscreenlocker/files/
@ 2018-02-21 10:38 Andreas Sturmlechner
  0 siblings, 0 replies; 7+ messages in thread
From: Andreas Sturmlechner @ 2018-02-21 10:38 UTC (permalink / raw
  To: gentoo-commits

commit:     652b50692630aa0f5e9963d66c11ea9d40edb573
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 21 10:38:13 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Feb 21 10:38:27 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=652b5069

kde-plasma/kscreenlocker: Add missing ck-unlock-session

Closes: https://bugs.gentoo.org/648352
Package-Manager: Portage-2.3.19, Repoman-2.3.6

 kde-plasma/kscreenlocker/files/ck-unlock-session | 220 +++++++++++++++++++++++
 1 file changed, 220 insertions(+)

diff --git a/kde-plasma/kscreenlocker/files/ck-unlock-session b/kde-plasma/kscreenlocker/files/ck-unlock-session
new file mode 100644
index 00000000000..6ce6935b067
--- /dev/null
+++ b/kde-plasma/kscreenlocker/files/ck-unlock-session
@@ -0,0 +1,220 @@
+#!/bin/sh
+
+# This script is to make unlocking using OpenRC/Consolekit easier when the KDE Screenlocker breaks.
+#
+# Version: 0.2
+# Date written: February 2, 2018
+# Last modification: February 17, 2018
+#
+# Copyright (C) 2018 Daniel Frey
+# Copyright (C) 2018 Lars Wendler
+#
+# This script is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This script is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+#
+# Some notes:
+#   -The switch processing/argument handling is very basic.
+#   -This script assumes session names start with "Session" when listing
+#    sessions. This is settable via a variable.
+#
+# Possible actions:
+#   -h : Show help screen
+#   -l : List current consolekit sessions
+#   -u : Unlock specified session (one parameter required - the session name)
+#   -a : Attempt to unlock all sessions
+
+# Return code documentation
+#
+#  0: Script executed normally
+#  1: Root access is not present for script
+#  2: No arguments passed
+#  3: Multiple actions requested, can only do one at a time
+#  4: Argument passed was not recognized
+#  5: Multiple arguments passed for unlock single session, only one needed
+#  6: The argument required for unlocksession() is missing (internal error)
+
+SCRIPTNAME="$(basename $0)"
+
+# Return code constants
+readonly ERR_NORMAL_OPERATION=0
+readonly ERR_NO_ROOT=1
+readonly ERR_NO_ARGS=2
+readonly ERR_TOO_MANY_ACTIONS=3
+readonly ERR_INVALID_ARGUMENTS=4
+readonly ERR_TOO_MANY_ARGS=5
+readonly ERR_INTERNAL_ARG_MISSING=6
+
+# Action parameter constants
+readonly ACTION_NONE=0
+readonly ACTION_HELP=1
+readonly ACTION_LIST=2
+readonly ACTION_UNLOCKALL=3
+readonly ACTION_UNLOCK=4
+
+# This is what's used to look for a session via consolekit.
+# By default, assume it is prefixed with "Session".
+SESSION_SEARCH_PREFIX="Session"
+
+# Check to make sure script has root access, if not... abort now!
+if [ "$(id -u)" -ne 0 ]; then
+	echo "This script must be run as root."
+	exit ${ERR_NO_ROOT}
+fi
+
+showhelp() {
+	cat <<EOF
+${SCRIPTNAME}: a script that helps unlock consolekit sessions
+
+Usage: ${SCRIPTNAME} [action] [parameters]
+
+Actions:
+	-l : list current sessions available for unlocking 
+	-u : unlock session specified as a parameter
+	-a : attempt to unlock all current sessions
+	-h : this screen
+
+Parameters:
+	The -u parameter requires a session name to unlock, use -l to 
+	list sessions.
+
+Example:
+	To unlock a single session, use:
+	${SCRIPTNAME} -u Session1
+
+No arguments will show this screen.
+EOF
+}
+
+listsessions() {
+	# Get a list of all sessions, and remove the full colon from the session name
+	ALLSESSIONS=$(ck-list-sessions | grep "^${SESSION_SEARCH_PREFIX}" | awk -F : '{print $1}')
+
+	echo
+	echo "Sessions present on this machine, space-delineated:"
+	echo
+	echo ${ALLSESSIONS}
+	echo
+	echo
+	echo "Session detail (to help locate a specific session:"
+	ck-list-sessions | grep -A 2 "^${SESSION_SEARCH_PREFIX}"
+}
+
+unlocksession() {
+	# This function expects one parameter set (the session to unlock).
+	# Make sure the parameter exists before continuing.
+	if [ -z "${1}" ]; then 
+		showhelp
+		exit ${ERR_INTERNAL_ARG_MISSING}
+	fi
+
+	echo "Attempting to unlock session $1; messages from dbus are not suppressed."
+
+	# Finally, request the unlock.
+	dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/$1 org.freedesktop.ConsoleKit.Session.Unlock
+}
+
+unlockallsessions() {
+	# Get a list of all sessions, and remove the full colon from the session name
+	ALLSESSIONS=$(ck-list-sessions | grep "^${SESSION_SEARCH_PREFIX}" | awk -F : '{print $1}')
+
+	echo "Attempting to unlock all sessions. Messages from dbus are not suppressed."
+	echo
+	# Loop through results, attempt to unlock all sessions.
+	# Count them and report at the end.
+	COUNT=0
+	for i in ${ALLSESSIONS}; do
+		dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/$i org.freedesktop.ConsoleKit.Session.Unlock
+		let "COUNT+=1"
+	done
+
+	echo
+	echo "Attempted to unlock ${COUNT} session(s)."
+}
+
+check_actions() {
+	# Make sure multiple actions are not chosen.
+	if [ ${ACTION} -ne ${ACTION_NONE} ]; then
+		echo "You can only declare one action at a time!"
+		echo ""
+		showhelp
+		exit ${ERR_TOO_MANY_ACTIONS}
+	fi
+}
+
+# Start of "main" routine
+
+# Initialize variables:
+#     ACTION=default 0; used to make sure more than one action are not
+#          specified at the same time. If an invalid argument was passed
+#          (e.g. one without the hyphen prefix) it will be caught as well.
+ACTION="${ACTION_NONE}"
+
+# Show help if no arguments provided at all
+if  [ $# -eq 0 ]; then
+	showhelp
+	exit ${ERR_NO_ARGS}
+fi
+
+# Process arguments passed, setting environment appropriately.
+# During this check, ensure only one action was requested. This
+# script will not do multiple things at a time.
+while getopts “hlau:” OPTION; do
+	case ${OPTION} in
+		h)	# Help action
+			check_actions
+			ACTION=${ACTION_HELP}
+		;;
+                l)	# List action
+			check_actions
+			ACTION="${ACTION_LIST}"
+		;;
+		a)	# Enable all USB hubs/devices action
+			check_actions
+			ACTION="${ACTION_UNLOCKALL}"
+		;;
+		u)	# Enable specific hub/device via find command action
+			check_actions
+			ACTION="${ACTION_UNLOCK}"
+
+			# Save session name passed for later
+			UNLOCKSESSION="${OPTARG}"
+		;;
+		?)	# Unknown parameter
+			showhelp
+			exit ${ERR_INVALID_ARGUMENTS}
+		;;
+	esac
+done
+
+# If script reaches this point, only one action was specified, so it is safe
+# to continue processing.
+case ${ACTION} in
+	${ACTION_HELP})		# help action
+		showhelp
+	;;
+	${ACTION_LIST})		# list action
+		listsessions
+	;;
+	${ACTION_UNLOCKALL}) 	# unlock all sessions
+		unlockallsessions
+	;;
+	${ACTION_UNLOCK})	# unlock single session
+		unlocksession ${UNLOCKSESSION}
+	;;
+	*)
+		echo "Unrecognized action."
+		echo
+		showhelp
+		exit ${ERR_INVALID_ARGUMENTS}
+	;;
+esac
+
+exit ${ERR_NORMAL_OPERATION}


^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: kde-plasma/kscreenlocker/files/
@ 2024-10-02 17:54 Andreas Sturmlechner
  0 siblings, 0 replies; 7+ messages in thread
From: Andreas Sturmlechner @ 2024-10-02 17:54 UTC (permalink / raw
  To: gentoo-commits

commit:     6063508d257a833058d44f06d31ca5defb7f8903
Author:     Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Thu Sep 26 16:49:28 2024 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Oct  2 17:54:14 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6063508d

kde-plasma/kscreenlocker: remove unused files

Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 kde-plasma/kscreenlocker/files/kde-np.pam | 10 ----------
 kde-plasma/kscreenlocker/files/kde.pam    | 11 -----------
 2 files changed, 21 deletions(-)

diff --git a/kde-plasma/kscreenlocker/files/kde-np.pam b/kde-plasma/kscreenlocker/files/kde-np.pam
deleted file mode 100644
index f5499e6dc45f..000000000000
--- a/kde-plasma/kscreenlocker/files/kde-np.pam
+++ /dev/null
@@ -1,10 +0,0 @@
-#%PAM-1.0
-
-auth       required     pam_nologin.so
-auth	   required     pam_permit.so
-
-account    include      system-local-login
-
-password   include      system-local-login
-
-session    include      system-local-login

diff --git a/kde-plasma/kscreenlocker/files/kde.pam b/kde-plasma/kscreenlocker/files/kde.pam
deleted file mode 100644
index 24d19de0d3d8..000000000000
--- a/kde-plasma/kscreenlocker/files/kde.pam
+++ /dev/null
@@ -1,11 +0,0 @@
-#%PAM-1.0
-
-auth       required     pam_nologin.so
-
-auth       include      system-local-login
-
-account    include      system-local-login
-
-password   include      system-local-login
-
-session    include      system-local-login


^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: kde-plasma/kscreenlocker/files/
@ 2023-12-26 10:39 Andreas Sturmlechner
  0 siblings, 0 replies; 7+ messages in thread
From: Andreas Sturmlechner @ 2023-12-26 10:39 UTC (permalink / raw
  To: gentoo-commits

commit:     796f6ed40a2141619cd9f25230291adf7937f3ce
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 26 10:38:38 2023 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Dec 26 10:39:05 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=796f6ed4

kde-plasma/kscreenlocker: Add missing pam files

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 kde-plasma/kscreenlocker/files/kde6-fingerprint.pam | 13 +++++++++++++
 kde-plasma/kscreenlocker/files/kde6-smartcard.pam   | 13 +++++++++++++
 kde-plasma/kscreenlocker/files/kde6.pam             |  9 +++++++++
 3 files changed, 35 insertions(+)

diff --git a/kde-plasma/kscreenlocker/files/kde6-fingerprint.pam b/kde-plasma/kscreenlocker/files/kde6-fingerprint.pam
new file mode 100644
index 000000000000..38267de65e32
--- /dev/null
+++ b/kde-plasma/kscreenlocker/files/kde6-fingerprint.pam
@@ -0,0 +1,13 @@
+#%PAM-1.0
+
+auth        required    pam_shells.so
+auth        required    pam_nologin.so
+auth        required    pam_faillock.so preauth
+auth        required    pam_fprintd.so
+auth        required    pam_env.so
+
+account     include     system-local-login
+
+password    include     system-local-login
+
+session     include     system-local-login

diff --git a/kde-plasma/kscreenlocker/files/kde6-smartcard.pam b/kde-plasma/kscreenlocker/files/kde6-smartcard.pam
new file mode 100644
index 000000000000..f887c7823432
--- /dev/null
+++ b/kde-plasma/kscreenlocker/files/kde6-smartcard.pam
@@ -0,0 +1,13 @@
+#%PAM-1.0
+
+auth        required    pam_shells.so
+auth        required    pam_nologin.so
+auth        required    pam_faillock.so preauth
+auth        required    pam_pkcs11.so wait_for_card card_only
+auth        required    pam_env.so
+
+account     include     system-local-login
+
+password    include     system-local-login
+
+session     include     system-local-login

diff --git a/kde-plasma/kscreenlocker/files/kde6.pam b/kde-plasma/kscreenlocker/files/kde6.pam
new file mode 100644
index 000000000000..ce9e84d58840
--- /dev/null
+++ b/kde-plasma/kscreenlocker/files/kde6.pam
@@ -0,0 +1,9 @@
+#%PAM-1.0
+
+auth     include  system-local-login
+
+account  include  system-local-login
+
+password include  system-local-login
+
+session  include  system-local-login


^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: kde-plasma/kscreenlocker/files/
@ 2020-09-06 16:46 Andreas Sturmlechner
  0 siblings, 0 replies; 7+ messages in thread
From: Andreas Sturmlechner @ 2020-09-06 16:46 UTC (permalink / raw
  To: gentoo-commits

commit:     89f85d04cb59c58b139bb7ffcb0dafb6e746f67c
Author:     Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Sat Sep  5 17:06:26 2020 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Sep  6 16:45:36 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89f85d04

kde-plasma/kscreenlocker: remove unused patch

Package-Manager: Portage-3.0.5, Repoman-3.0.1
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/17430
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../files/kscreenlocker-5.19.5-ck-unlock.patch     | 32 ----------------------
 1 file changed, 32 deletions(-)

diff --git a/kde-plasma/kscreenlocker/files/kscreenlocker-5.19.5-ck-unlock.patch b/kde-plasma/kscreenlocker/files/kscreenlocker-5.19.5-ck-unlock.patch
deleted file mode 100644
index bb15eba72b8..00000000000
--- a/kde-plasma/kscreenlocker/files/kscreenlocker-5.19.5-ck-unlock.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From 1bac5f6e50bc3255ab0e4c9183e7456f53acfdd5 Mon Sep 17 00:00:00 2001
-From: Andreas Sturmlechner <asturm@gentoo.org>
-Date: Sat, 1 Aug 2020 20:05:17 +0200
-Subject: [PATCH] Provide ConsoleKit switch irrespective of HAVE_LOGINCTL
-
----
- CMakeLists.txt | 2 --
- 1 file changed, 2 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 60d3ee1..aaebc82 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -92,7 +92,6 @@ set_package_properties(loginctl PROPERTIES
-     )
- set(HAVE_LOGINCTL ${loginctl_FOUND})
- 
--if ( NOT HAVE_LOGINCTL )
-     find_package(ConsoleKit)
-     set_package_properties(ConsoleKit PROPERTIES
-         URL "https://github.com/ConsoleKit2/ConsoleKit2"
-@@ -100,7 +99,6 @@ if ( NOT HAVE_LOGINCTL )
-         TYPE RECOMMENDED
-         )
-     set(HAVE_CONSOLEKIT ${ConsoleKit_FOUND})
--endif ()
- 
- if (HAVE_LOGINCTL OR HAVE_CONSOLEKIT)
-     set(HAVE_UNLOCK_CAPABILITY TRUE)
--- 
-2.28.0
-


^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: kde-plasma/kscreenlocker/files/
@ 2019-01-06 12:06 Andreas Sturmlechner
  0 siblings, 0 replies; 7+ messages in thread
From: Andreas Sturmlechner @ 2019-01-06 12:06 UTC (permalink / raw
  To: gentoo-commits

commit:     4577e40cdfe0081fb957497705d9759861512791
Author:     Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Sun Jan  6 10:33:31 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Jan  6 12:06:20 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4577e40c

kde-plasma/kscreenlocker: remove unused patch

Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../files/kscreenlocker-consolekit-unlock.patch             | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/kde-plasma/kscreenlocker/files/kscreenlocker-consolekit-unlock.patch b/kde-plasma/kscreenlocker/files/kscreenlocker-consolekit-unlock.patch
deleted file mode 100644
index b0e4011d2b8..00000000000
--- a/kde-plasma/kscreenlocker/files/kscreenlocker-consolekit-unlock.patch
+++ /dev/null
@@ -1,13 +0,0 @@
---- a/abstractlocker.cpp
-+++ b/abstractlocker.cpp
-@@ -52,9 +52,8 @@ void BackgroundWindow::paintEvent(QPaintEvent* )
-         auto text = ki18n("The screen locker is broken and unlocking is not possible anymore.\n"
-                           "In order to unlock switch to a virtual terminal (e.g. Ctrl+Alt+F2),\n"
-                           "log in and execute the command:\n\n"
--                          "loginctl unlock-session %1\n\n"
-+                          "ck-unlock-session\n\n"
-                           "Afterwards switch back to the running session (Ctrl+Alt+F%2).");
--        text = text.subs(QString::fromLocal8Bit(qgetenv("XDG_SESSION_ID")));
-         text = text.subs(QString::fromLocal8Bit(qgetenv("XDG_VTNR")));
-         p.setPen(Qt::white);
-         QFont f = p.font();


^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: kde-plasma/kscreenlocker/files/
@ 2018-02-21 10:12 Andreas Sturmlechner
  0 siblings, 0 replies; 7+ messages in thread
From: Andreas Sturmlechner @ 2018-02-21 10:12 UTC (permalink / raw
  To: gentoo-commits

commit:     aeb1aeca6ee0f499872f9f165a01aacdcc6a1a75
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 21 10:11:41 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Feb 21 10:12:02 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aeb1aeca

kde-plasma/kscreenlocker: Add missing patch

Closes: https://bugs.gentoo.org/648352
Package-Manager: Portage-2.3.19, Repoman-2.3.6

 .../files/kscreenlocker-consolekit-unlock.patch             | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/kde-plasma/kscreenlocker/files/kscreenlocker-consolekit-unlock.patch b/kde-plasma/kscreenlocker/files/kscreenlocker-consolekit-unlock.patch
new file mode 100644
index 00000000000..b0e4011d2b8
--- /dev/null
+++ b/kde-plasma/kscreenlocker/files/kscreenlocker-consolekit-unlock.patch
@@ -0,0 +1,13 @@
+--- a/abstractlocker.cpp
++++ b/abstractlocker.cpp
+@@ -52,9 +52,8 @@ void BackgroundWindow::paintEvent(QPaintEvent* )
+         auto text = ki18n("The screen locker is broken and unlocking is not possible anymore.\n"
+                           "In order to unlock switch to a virtual terminal (e.g. Ctrl+Alt+F2),\n"
+                           "log in and execute the command:\n\n"
+-                          "loginctl unlock-session %1\n\n"
++                          "ck-unlock-session\n\n"
+                           "Afterwards switch back to the running session (Ctrl+Alt+F%2).");
+-        text = text.subs(QString::fromLocal8Bit(qgetenv("XDG_SESSION_ID")));
+         text = text.subs(QString::fromLocal8Bit(qgetenv("XDG_VTNR")));
+         p.setPen(Qt::white);
+         QFont f = p.font();


^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: kde-plasma/kscreenlocker/files/
@ 2015-12-09 11:42 Michael Palimaka
  0 siblings, 0 replies; 7+ messages in thread
From: Michael Palimaka @ 2015-12-09 11:42 UTC (permalink / raw
  To: gentoo-commits

commit:     d6d4bdf399386122e41f688a32c7f0803d51419c
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Wed Dec  9 11:42:17 2015 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Wed Dec  9 11:42:45 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6d4bdf3

kde-plasma/kscreenlocker: add missing files

Gentoo-bug: 567788

Package-Manager: portage-2.2.26

 kde-plasma/kscreenlocker/files/kde-np.pam                | 10 ++++++++++
 kde-plasma/kscreenlocker/files/kde.pam                   | 11 +++++++++++
 .../files/kscreenlocker-5.4.90-no-SUID-no-GUID.patch     | 16 ++++++++++++++++
 3 files changed, 37 insertions(+)

diff --git a/kde-plasma/kscreenlocker/files/kde-np.pam b/kde-plasma/kscreenlocker/files/kde-np.pam
new file mode 100644
index 0000000..f5499e6
--- /dev/null
+++ b/kde-plasma/kscreenlocker/files/kde-np.pam
@@ -0,0 +1,10 @@
+#%PAM-1.0
+
+auth       required     pam_nologin.so
+auth	   required     pam_permit.so
+
+account    include      system-local-login
+
+password   include      system-local-login
+
+session    include      system-local-login

diff --git a/kde-plasma/kscreenlocker/files/kde.pam b/kde-plasma/kscreenlocker/files/kde.pam
new file mode 100644
index 0000000..24d19de
--- /dev/null
+++ b/kde-plasma/kscreenlocker/files/kde.pam
@@ -0,0 +1,11 @@
+#%PAM-1.0
+
+auth       required     pam_nologin.so
+
+auth       include      system-local-login
+
+account    include      system-local-login
+
+password   include      system-local-login
+
+session    include      system-local-login

diff --git a/kde-plasma/kscreenlocker/files/kscreenlocker-5.4.90-no-SUID-no-GUID.patch b/kde-plasma/kscreenlocker/files/kscreenlocker-5.4.90-no-SUID-no-GUID.patch
new file mode 100644
index 0000000..dc26f5f
--- /dev/null
+++ b/kde-plasma/kscreenlocker/files/kscreenlocker-5.4.90-no-SUID-no-GUID.patch
@@ -0,0 +1,16 @@
+diff --git a/kcheckpass/CMakeLists.txt b/kcheckpass/CMakeLists.txt
+index a63fa1403e897e70989dc2e1ba7eed4bc69cbb51..12d1bfb3c690eca1acf344045a92eb942669da83 100644
+--- a/kcheckpass/CMakeLists.txt
++++ b/kcheckpass/CMakeLists.txt
+@@ -22,10 +22,6 @@ endif ()
+ 
+ set_property(TARGET kcheckpass APPEND_STRING PROPERTY COMPILE_FLAGS " -U_REENTRANT")
+ target_link_libraries(kcheckpass ${UNIXAUTH_LIBRARIES} ${SOCKET_LIBRARIES})
+-install(TARGETS kcheckpass DESTINATION ${KDE_INSTALL_LIBEXECDIR})
+-install(CODE "
+-    set(KCP_PATH \"\$ENV{DESTDIR}${KDE_INSTALL_LIBEXECDIR}/kcheckpass\")
+-    execute_process(COMMAND sh -c \"chown root '\${KCP_PATH}' && chmod +s '\${KCP_PATH}'\")
+-")
++install(TARGETS kcheckpass DESTINATION ${LIBEXEC_INSTALL_DIR})
+ 
+ #EXTRA_DIST = README


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-10-02 17:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-21 10:38 [gentoo-commits] repo/gentoo:master commit in: kde-plasma/kscreenlocker/files/ Andreas Sturmlechner
  -- strict thread matches above, loose matches on Subject: below --
2024-10-02 17:54 Andreas Sturmlechner
2023-12-26 10:39 Andreas Sturmlechner
2020-09-06 16:46 Andreas Sturmlechner
2019-01-06 12:06 Andreas Sturmlechner
2018-02-21 10:12 Andreas Sturmlechner
2015-12-09 11:42 Michael Palimaka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox