OBS User unknown 2007-08-29 20:45:09 +00:00 committed by Git OBS Bridge
parent a95e6b9f9a
commit a0fd879071
4 changed files with 42 additions and 3 deletions

View File

@ -1,6 +1,6 @@
--- configure.in
+++ configure.in
@@ -2133,7 +2133,7 @@
@@ -2203,7 +2203,7 @@
SUDO_LIBS="${SUDO_LIBS}${LDAP_LIBS}"
LIBS="$_LIBS"

View File

@ -1,3 +1,30 @@
--- logging.c
+++ logging.c
@@ -465,7 +465,7 @@
#ifndef NO_ROOT_MAILER
static char *root_envp[] = {
"HOME=/",
- "PATH=/usr/bin:/bin",
+ "PATH=/usr/sbin:/bin:/usr/bin:/sbin",
"LOGNAME=root",
"USERNAME=root",
"USER=root",
--- pathnames.h.in
+++ pathnames.h.in
@@ -41,9 +41,10 @@
#define _PATH_DEVNULL "/dev/null"
#endif /* _PATH_DEVNULL */
-#ifndef _PATH_DEFPATH
-#define _PATH_DEFPATH "/usr/bin:/bin"
-#endif /* _PATH_DEFPATH */
+/*
+ * _PATH_DEFPATH included from <paths.h> contains only "/usr/bin:/bin"
+ */
+#define _PATH_DEFPATH "/usr/sbin:/bin:/usr/bin:/sbin"
/*
* NOTE: _PATH_SUDOERS is usually overriden by the Makefile.
--- env.c
+++ env.c
@@ -529,7 +529,7 @@

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Aug 28 11:41:51 CEST 2007 - prusnak@suse.cz
- build --without-secure-path
- hardcoded secure path changed to /usr/sbin:/bin:/usr/bin:/sbin
(secure_path.diff)
- user can now add PATH variable to env_keep in /etc/sudoers
-------------------------------------------------------------------
Tue Aug 14 11:02:58 CEST 2007 - prusnak@suse.cz

View File

@ -14,7 +14,7 @@ Name: sudo
BuildRequires: openldap2-devel pam-devel postfix
PreReq: coreutils
Version: 1.6.9p2
Release: 7
Release: 13
Autoreqprov: on
Group: System/Base
License: BSD 3-Clause
@ -88,7 +88,6 @@ export LDFLAGS="-pie"
--without-secure-path \
--with-passprompt='%%p\x27s password:'
make %{?jobs:-j%jobs}
# --with-secure-path=%{_sbindir}:/bin:%{_bindir}:/sbin \
%install
make DESTDIR=$RPM_BUILD_ROOT install
@ -119,6 +118,11 @@ rm -rf $RPM_BUILD_ROOT
/var/run/sudo
%changelog
* Tue Aug 28 2007 - prusnak@suse.cz
- build --without-secure-path
- hardcoded secure path changed to /usr/sbin:/bin:/usr/bin:/sbin
(secure_path.diff)
- user can now add PATH variable to env_keep in /etc/sudoers
* Tue Aug 14 2007 - prusnak@suse.cz
- added XDG_SESSION_COOKIE to env_keep variables [#298943]
- fixed supplemental group matching (groupmatch.patch)