Accepting request 318426 from Base:System

1

OBS-URL: https://build.opensuse.org/request/show/318426
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sudo?expand=0&rev=73
This commit is contained in:
Dominique Leuenberger 2015-07-28 09:42:09 +00:00 committed by Git OBS Bridge
commit 9e9c27eb36
6 changed files with 79 additions and 31 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e374e5edf2c11c00d6916a9f51cb0ad15e51c7b028370fa15169b07e61e05a25
size 2515307

3
sudo-1.8.14p3.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a8a697cbb113859058944850d098464618254804cf97961dee926429f00a1237
size 2570892

View File

@ -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;

View File

@ -1,6 +1,8 @@
--- plugins/sudoers/sudoers.in 2014-09-23 12:40:15.000000000 -0400 Index: sudo-1.8.14p3/plugins/sudoers/sudoers.in
+++ sudo-1.8.11p1/plugins/sudoers/sudoers.in 2014-10-10 20:52:15.870635442 -0400 ===================================================================
@@ -32,37 +32,36 @@ --- sudo-1.8.14p3.orig/plugins/sudoers/sudoers.in
+++ sudo-1.8.14p3/plugins/sudoers/sudoers.in
@@ -32,30 +32,23 @@
## ##
## Defaults specification ## Defaults specification
## ##
@ -45,7 +47,10 @@
+## Do not insult users when they enter an incorrect password. +## Do not insult users when they enter an incorrect password.
+Defaults !insults +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. ## sudoreplay and reboot. Use sudoreplay to play back logged sessions.
# Defaults log_output # Defaults log_output
# Defaults!/usr/bin/sudoreplay !log_output # Defaults!/usr/bin/sudoreplay !log_output
@ -62,7 +67,7 @@
## ##
## Runas alias specification ## Runas alias specification
## ##
@@ -78,14 +77,6 @@ @@ -84,14 +83,6 @@ root ALL=(ALL) ALL
## Same thing without a password ## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL # %wheel ALL=(ALL) NOPASSWD: ALL
@ -77,9 +82,11 @@
## Read drop-in files from @sysconfdir@/sudoers.d ## Read drop-in files from @sysconfdir@/sudoers.d
## (the '#' here does not indicate a comment) ## (the '#' here does not indicate a comment)
#includedir @sysconfdir@/sudoers.d #includedir @sysconfdir@/sudoers.d
--- doc/sudoers.mdoc.in 2014-09-23 12:40:15.000000000 -0400 Index: sudo-1.8.14p3/doc/sudoers.mdoc.in
+++ sudo-1.8.11p1/doc/sudoers.mdoc.in 2014-10-10 20:56:18.439618855 -0400 ===================================================================
@@ -1661,7 +1661,7 @@ --- 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 .Em env_keep
list. list.
This flag is This flag is
@ -88,7 +95,7 @@
by default. by default.
.It authenticate .It authenticate
If set, users must authenticate themselves via a password (or other If set, users must authenticate themselves via a password (or other
@@ -1975,7 +1975,7 @@ @@ -2027,7 +2027,7 @@ If set,
.Nm sudo .Nm sudo
will insult users when they enter an incorrect password. will insult users when they enter an incorrect password.
This flag is This flag is
@ -97,7 +104,7 @@
by default. by default.
.It log_host .It log_host
If set, the host name will be logged in the (non-syslog) 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 .Fl u
option. option.
This flag is This flag is

View File

@ -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 Wed Jul 22 18:27:35 UTC 2015 - crrodriguez@opensuse.org

View File

@ -17,7 +17,7 @@
Name: sudo Name: sudo
Version: 1.8.13 Version: 1.8.14p3
Release: 0 Release: 0
Summary: Execute some commands as root Summary: Execute some commands as root
License: ISC License: ISC
@ -31,7 +31,6 @@ Source4: README_313276.test
Patch0: sudoers2ldif-env.patch Patch0: sudoers2ldif-env.patch
# PATCH-OPENSUSE: the "SUSE" branding of the default sudo config # PATCH-OPENSUSE: the "SUSE" branding of the default sudo config
Patch1: sudo-sudoers.patch Patch1: sudo-sudoers.patch
Patch2: sudo-parse_boottime_properly.patch
BuildRequires: audit-devel BuildRequires: audit-devel
BuildRequires: groff BuildRequires: groff
BuildRequires: libselinux-devel BuildRequires: libselinux-devel
@ -72,7 +71,6 @@ Tests for fate#313276
%setup -q %setup -q
%patch0 -p1 %patch0 -p1
%patch1 -p1 %patch1 -p1
%patch2 -p1
%build %build
%ifarch s390 s390x %sparc %ifarch s390 s390x %sparc