summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'kde-plasma/kcheckpass/files/kcheckpass-4.4.2-no-SUID-no-GUID.patch')
-rw-r--r--kde-plasma/kcheckpass/files/kcheckpass-4.4.2-no-SUID-no-GUID.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/kde-plasma/kcheckpass/files/kcheckpass-4.4.2-no-SUID-no-GUID.patch b/kde-plasma/kcheckpass/files/kcheckpass-4.4.2-no-SUID-no-GUID.patch
new file mode 100644
index 000000000000..78520d4acc4b
--- /dev/null
+++ b/kde-plasma/kcheckpass/files/kcheckpass-4.4.2-no-SUID-no-GUID.patch
@@ -0,0 +1,15 @@
+Index: kcheckpass/CMakeLists.txt
+===================================================================
+--- kcheckpass/CMakeLists.txt (revision 1112521)
++++ kcheckpass/CMakeLists.txt (working copy)
+@@ -23,10 +23,6 @@
+ macro_add_compile_flags(kcheckpass -U_REENTRANT)
+ target_link_libraries(kcheckpass ${KDE4_KDEFAKES_LIBS} ${UNIXAUTH_LIBRARIES} ${SOCKET_LIBRARIES})
+ install(TARGETS kcheckpass DESTINATION ${LIBEXEC_INSTALL_DIR})
+-install(CODE "
+- set(KCP_PATH \"\$ENV{DESTDIR}${LIBEXEC_INSTALL_DIR}/kcheckpass\")
+- EXECUTE_PROCESS(COMMAND sh -c \"chown root '\${KCP_PATH}' && chmod +s '\${KCP_PATH}'\")
+-")
+
+ install_pam_service(kcheckpass)
+