From 685fdbfa5f598cb06f13c2422d3ecad848a17cbefcceda5b0988ca6499d5bc83 Mon Sep 17 00:00:00 2001 From: Kristyna Streitova Date: Fri, 24 Jul 2015 11:38:45 +0000 Subject: [PATCH] Accepting request 318161 from home:kstreitova:branches:Base:System - update to 1.8.14p3: * changes in 1.8.14p3 * Fixed a bug introduced in sudo 1.8.14p2 that prevented sudo from working when no tty was present. Bug #706. * Fixed tty detection on newer AIX systems where dev_t is 64-bit. * changes in 1.8.14p2 * Fixed a bug introduced in sudo 1.8.14 that prevented the lecture file from being created. Bug #704. * changes in 1.8.14p1 * Fixed a bug introduced in sudo 1.8.14 that prevented the sssd backend from working. Bug #703. * changes in 1.8.14 * Log messages on Mac OS X now respect sudoers_locale when sudo is build with NLS support. * The sudo manual pages now pass mandoc -Tlint with no warnings. * Fixed a compilation problem on systems with the sig2str() function that do not define SIG2STR_MAX in signal.h. * Worked around a compiler bug that resulted in unexpected behavior when returning an int from a function declared to return bool without an explicit cast. * Worked around a bug in Mac OS X 10.10 BSD auditing where the au_preselect() fails for AUE_sudo events but succeeds for AUE_DARWIN_sudo. * Fixed a hang on Linux systems with glibc when sudo is linked with jemalloc. * When the user runs a command as a user ID that is not present in the password database via the -u flag, the command is now run with the group ID of the invoking user instead of group ID 0. * Fixed a compilation problem on systems that don't pull in definitions of uid_t and gid_t without sys/types.h or unistd.h. OBS-URL: https://build.opensuse.org/request/show/318161 OBS-URL: https://build.opensuse.org/package/show/Base:System/sudo?expand=0&rev=87 --- sudo-1.8.13.tar.gz | 3 -- sudo-1.8.14p3.tar.gz | 3 ++ sudo-parse_boottime_properly.patch | 15 -------- sudo-sudoers.patch | 27 ++++++++------ sudo.changes | 58 ++++++++++++++++++++++++++++++ sudo.spec | 4 +-- 6 files changed, 79 insertions(+), 31 deletions(-) delete mode 100644 sudo-1.8.13.tar.gz create mode 100644 sudo-1.8.14p3.tar.gz delete mode 100644 sudo-parse_boottime_properly.patch diff --git a/sudo-1.8.13.tar.gz b/sudo-1.8.13.tar.gz deleted file mode 100644 index 7d23492..0000000 --- a/sudo-1.8.13.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e374e5edf2c11c00d6916a9f51cb0ad15e51c7b028370fa15169b07e61e05a25 -size 2515307 diff --git a/sudo-1.8.14p3.tar.gz b/sudo-1.8.14p3.tar.gz new file mode 100644 index 0000000..f39fd4b --- /dev/null +++ b/sudo-1.8.14p3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a8a697cbb113859058944850d098464618254804cf97961dee926429f00a1237 +size 2570892 diff --git a/sudo-parse_boottime_properly.patch b/sudo-parse_boottime_properly.patch deleted file mode 100644 index b611f3f..0000000 --- a/sudo-parse_boottime_properly.patch +++ /dev/null @@ -1,15 +0,0 @@ -From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=762465 - -Index: sudo-1.8.13/plugins/sudoers/boottime.c -=================================================================== ---- sudo-1.8.13.orig/plugins/sudoers/boottime.c 2015-03-18 18:05:51.000000000 +0100 -+++ sudo-1.8.13/plugins/sudoers/boottime.c 2015-05-14 14:48:33.855294076 +0200 -@@ -79,6 +79,8 @@ get_boottime(struct timespec *ts) - if (fp != NULL) { - while ((len = getline(&line, &linesize, fp)) != -1) { - if (strncmp(line, "btime ", 6) == 0) { -+ if (line[len - 1] == '\n') -+ line[len - 1] = '\0'; - long long llval = strtonum(line + 6, 1, LLONG_MAX, NULL); - if (llval > 0) { - ts->tv_sec = (time_t)llval; diff --git a/sudo-sudoers.patch b/sudo-sudoers.patch index d5ef1d8..ed0dc0f 100644 --- a/sudo-sudoers.patch +++ b/sudo-sudoers.patch @@ -1,6 +1,8 @@ ---- plugins/sudoers/sudoers.in 2014-09-23 12:40:15.000000000 -0400 -+++ sudo-1.8.11p1/plugins/sudoers/sudoers.in 2014-10-10 20:52:15.870635442 -0400 -@@ -32,37 +32,36 @@ +Index: sudo-1.8.14p3/plugins/sudoers/sudoers.in +=================================================================== +--- sudo-1.8.14p3.orig/plugins/sudoers/sudoers.in ++++ sudo-1.8.14p3/plugins/sudoers/sudoers.in +@@ -32,30 +32,23 @@ ## ## Defaults specification ## @@ -45,7 +47,10 @@ +## Do not insult users when they enter an incorrect password. +Defaults !insults + - ## Uncomment to enable logging of a command's output, except for + ## Uncomment to use a hard-coded PATH instead of the user's to find commands + # Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" + ## +@@ -66,9 +59,15 @@ ## sudoreplay and reboot. Use sudoreplay to play back logged sessions. # Defaults log_output # Defaults!/usr/bin/sudoreplay !log_output @@ -62,7 +67,7 @@ ## ## Runas alias specification ## -@@ -78,14 +77,6 @@ +@@ -84,14 +83,6 @@ root ALL=(ALL) ALL ## Same thing without a password # %wheel ALL=(ALL) NOPASSWD: ALL @@ -77,9 +82,11 @@ ## Read drop-in files from @sysconfdir@/sudoers.d ## (the '#' here does not indicate a comment) #includedir @sysconfdir@/sudoers.d ---- doc/sudoers.mdoc.in 2014-09-23 12:40:15.000000000 -0400 -+++ sudo-1.8.11p1/doc/sudoers.mdoc.in 2014-10-10 20:56:18.439618855 -0400 -@@ -1661,7 +1661,7 @@ +Index: sudo-1.8.14p3/doc/sudoers.mdoc.in +=================================================================== +--- sudo-1.8.14p3.orig/doc/sudoers.mdoc.in ++++ sudo-1.8.14p3/doc/sudoers.mdoc.in +@@ -1711,7 +1711,7 @@ is present in the .Em env_keep list. This flag is @@ -88,7 +95,7 @@ by default. .It authenticate If set, users must authenticate themselves via a password (or other -@@ -1975,7 +1975,7 @@ +@@ -2027,7 +2027,7 @@ If set, .Nm sudo will insult users when they enter an incorrect password. This flag is @@ -97,7 +104,7 @@ by default. .It log_host If set, the host name will be logged in the (non-syslog) -@@ -2436,7 +2436,7 @@ +@@ -2508,7 +2508,7 @@ database as an argument to the .Fl u option. This flag is diff --git a/sudo.changes b/sudo.changes index 3b35254..53b0276 100644 --- a/sudo.changes +++ b/sudo.changes @@ -1,3 +1,61 @@ +------------------------------------------------------------------- +Thu Jul 23 10:09:08 UTC 2015 - kstreitova@suse.com + +- update to 1.8.14p3: + * changes in 1.8.14p3 + * Fixed a bug introduced in sudo 1.8.14p2 that prevented sudo + from working when no tty was present. Bug #706. + * Fixed tty detection on newer AIX systems where dev_t is 64-bit. + * changes in 1.8.14p2 + * Fixed a bug introduced in sudo 1.8.14 that prevented the + lecture file from being created. Bug #704. + * changes in 1.8.14p1 + * Fixed a bug introduced in sudo 1.8.14 that prevented the sssd + backend from working. Bug #703. + * changes in 1.8.14 + * Log messages on Mac OS X now respect sudoers_locale when sudo + is build with NLS support. + * The sudo manual pages now pass mandoc -Tlint with no warnings. + * Fixed a compilation problem on systems with the sig2str() + function that do not define SIG2STR_MAX in signal.h. + * Worked around a compiler bug that resulted in unexpected + behavior when returning an int from a function declared to + return bool without an explicit cast. + * Worked around a bug in Mac OS X 10.10 BSD auditing where the + au_preselect() fails for AUE_sudo events but succeeds for + AUE_DARWIN_sudo. + * Fixed a hang on Linux systems with glibc when sudo is linked + with jemalloc. + * When the user runs a command as a user ID that is not present + in the password database via the -u flag, the command is now + run with the group ID of the invoking user instead of group ID 0. + * Fixed a compilation problem on systems that don't pull in + definitions of uid_t and gid_t without sys/types.h or unistd.h. + * Fixed a compilation problem on newer AIX systems which use a + struct st_timespec for time stamps in struct stat that differs + from struct timespec. Bug #702. + * The example directory is now configurable via --with-exampledir + and defaults to DATAROOTDIR/examples/sudo on BSD systems. + * The /usr/lib/tmpfiles.d/sudo.conf file is now installed as part + of "make install" when systemd is in use. + * Fixed a linker problem on some systems with libintl. Bug #690. + * Fixed compilation with compilers that don't support __func__ or + __FUNCTION__. + * Sudo no longer needs to uses weak symbols to support localization + in the warning functions. A registration function is used instead. + * Fixed a setresuid() failure in sudoers on Linux kernels where + uid changes take the nproc resource limit into account. + * Fixed LDAP netgroup queries on AIX. + * Sudo will now display the custom prompt on Linux systems with + PAM even if the "Password: " prompt is not localized by the + PAM module. Bug #701. + * Double-quoted values in an LDAP sudoOption are now supported + for consistency with file-based sudoers. + * Fixed a bug that prevented the btime entry in /proc/stat from + being parsed on Linux. + * update sudo-sudoers.patch + * remove sudo-parse_boottime_properly.patch (it's not longer needed) + ------------------------------------------------------------------- Wed Jul 22 18:27:35 UTC 2015 - crrodriguez@opensuse.org diff --git a/sudo.spec b/sudo.spec index 147ac06..e76fbaa 100644 --- a/sudo.spec +++ b/sudo.spec @@ -17,7 +17,7 @@ Name: sudo -Version: 1.8.13 +Version: 1.8.14p3 Release: 0 Summary: Execute some commands as root License: ISC @@ -31,7 +31,6 @@ Source4: README_313276.test Patch0: sudoers2ldif-env.patch # PATCH-OPENSUSE: the "SUSE" branding of the default sudo config Patch1: sudo-sudoers.patch -Patch2: sudo-parse_boottime_properly.patch BuildRequires: audit-devel BuildRequires: groff BuildRequires: libselinux-devel @@ -72,7 +71,6 @@ Tests for fate#313276 %setup -q %patch0 -p1 %patch1 -p1 -%patch2 -p1 %build %ifarch s390 s390x %sparc