From d514bd6fef131ef1fb474122019a8354c67856fc Mon Sep 17 00:00:00 2001 From: Josef Ridky Date: Mar 01 2017 09:42:21 +0000 Subject: Resolves: #1427775 - fix problem with local authentication --- diff --git a/amanda-3.4.2-local-security-gid.patch b/amanda-3.4.2-local-security-gid.patch new file mode 100644 index 0000000..87ff91c --- /dev/null +++ b/amanda-3.4.2-local-security-gid.patch @@ -0,0 +1,12 @@ +diff -urNp old/common-src/local-security.c new/common-src/local-security.c +--- old/common-src/local-security.c 2017-01-31 16:05:21.000000000 +0100 ++++ new/common-src/local-security.c 2017-02-17 13:22:59.318412325 +0100 +@@ -277,7 +277,7 @@ runlocal( + initgroups(CLIENT_LOGIN, gid); + } + if (gid != 0) +- setregid(uid, gid); ++ setregid(gid, gid); + if (uid != 0) + setreuid(uid, uid); + #endif diff --git a/amanda.spec b/amanda.spec index 6ae2c13..54fc2e0 100644 --- a/amanda.spec +++ b/amanda.spec @@ -26,13 +26,15 @@ Source16: kamanda@.service Patch1: amanda-3.1.1-xattrs.patch Patch2: amanda-3.1.1-tcpport.patch Patch3: amanda-3.2.0-config-dir.patch -#Bugfix - solved problem with permission error message (#1257686) +# Bugfix - solved problem with permission error message (#1257686) Patch4: amanda-3.3.9-hash-permission.patch # Fails to build on non-x86 due to sse-related things. This patch comes from # upstream. Patch5: amanda-3.4.2-fix-sse.patch # Patch from upstream to fix segfault in planner. Patch6: amanda-3.4.2-planner-segfault.patch +# Fix problem with local authentication +Patch7: amanda-3.4.2-local-security-gid.patch License: BSD and GPLv3+ and GPLv2+ and GPLv2 Group: Applications/System @@ -442,6 +444,9 @@ make check %changelog +* Wed Mar 1 2017 Josef Ridky - 3.4.2-4 +- Fix issue with local authentication (#1427775) + * Mon Feb 20 2017 Jason L Tibbitts III - 3.4.2-3 - Add patch from upstream to fix a segfault in planner. Hopefully fixes https://bugzilla.redhat.com/show_bug.cgi?id=1423471