Displaying 10 results from an estimated 10 matches for "child_get_env".
2003 Aug 22
14
[Bug 252] Patch for use of /etc/default/login
http://bugzilla.mindrot.org/show_bug.cgi?id=252
dtucker at zip.com.au changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #212 is|0 |1
obsolete| |
------- Additional Comments From dtucker at zip.com.au 2003-08-22 14:14 -------
2005 May 12
0
[PATCH] Trusted IRIX Support
...4,1583 ----
#endif
}
+ #ifdef WITH_IRIX_CAP
+ /* Set the user's capabilities before running their RC files!!
+ Only if we won't use login(1), as login handles setting
+ capabilities itself */
+ if (!options.use_login) {
+ if(child_get_env(env,"CAP") == NULL)
+ irix_set_cap("all=");
+ else
+ irix_set_cap(child_get_env(env,"CAP"));
+ }
+ #endif /* WITH_IRIX_CAP */
+
+ #ifdef WITH_IRIX_MAC
+ /* Set the user's mac label befo...
2003 Sep 29
1
Bus Error with OpenSSH 3.7.1p2 on Solaris 8, SPARC 64-bit, YASSP
I had a problem much like the one that Matthias Koeppe
experienced. I would only get the BUS error when
running in a YASSP-modified system, though. The
binary worked fine on a non-YASSP host.
I applied his change to use a long for the mask, and
it works now.
Cheers,
-Thomas
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
2005 May 19
2
[Bug 1043] Trusted IRIX Support
http://bugzilla.mindrot.org/show_bug.cgi?id=1043
Summary: Trusted IRIX Support
Product: Portable OpenSSH
Version: 4.0p1
Platform: MIPS
OS/Version: IRIX
Status: NEW
Severity: normal
Priority: P2
Component: sshd
AssignedTo: bitbucket at mindrot.org
ReportedBy: josterm at raytheon.com
sshd
2003 Oct 07
2
Fwd: Re: Bus Error with OpenSSH 3.7.1p2 on Solaris 8, SPARC 64-bit, YASSP
...ar **tmpenv = NULL, *var;
> u_int i, tmpenvsize = 0;
> - mode_t mask;
> + u_long mask;
>
> /*
> * We don't want to copy the whole file to the
> child's environment,
> @@ -936,7 +936,7 @@ read_etc_default_login(char
> ***env, u_in
>
> if ((var = child_get_env(tmpenv, "UMASK")) !=
> NULL)
> if (sscanf(var, "%5lo", &mask) == 1)
> - umask(mask);
> + umask((mode_t)mask);
>
> for (i = 0; tmpenv[i] != NULL; i++)
> xfree(tmpenv[i]);
>
__________________________________
Do you Yahoo!?
The New Yah...
2003 Sep 25
1
Bus Error with openssh 3.7.1p1 on 64-bit Sparc/Solaris
...Thu Sep 25 18:50:00 2003
@@ -915,6 +915,7 @@
u_int i;
size_t tmpenvsize = 0;
mode_t mask;
+ unsigned long long_mask;
/*
* We don't want to copy the whole file to the child's environment,
@@ -931,8 +932,10 @@
child_set_env(env, envsize, "PATH", var);
if ((var = child_get_env(tmpenv, "UMASK")) != NULL)
- if (sscanf(var, "%5lo", &mask) == 1)
+ if (sscanf(var, "%5lo", &long_mask) == 1) {
+ mask = (mode_t) long_mask;
umask(mask);
+ }
for (i = 0; tmpenv[i] != NULL; i++)
xfree(tmpenv[i]);
--
Matthias Koeppe -- http://w...
2014 Aug 14
0
Problem with enabling /etc/default(s)/login on Cygwin
...h on Windows. The path contains
- * important components pointing to the system directories,
- * needed for loading shared libraries. So the path better
- * remains intact here.
- */
# ifdef HAVE_ETC_DEFAULT_LOGIN
read_etc_default_login(&env, &envsize, pw->pw_uid);
path = child_get_env(env, "PATH");
@@ -1204,7 +1197,6 @@ do_setup_env(Session *s, const char *she
s->pw->pw_uid == 0 ?
SUPERUSER_PATH : _PATH_STDPATH);
}
-# endif /* HAVE_CYGWIN */
#endif /* HAVE_LOGIN_CAP */
snprintf(buf, sizeof buf, "%.200s/%.50s",
--
Corinna Vinsch...
2004 Jan 07
1
openssh 3.7.1p2 fault on solaris 9 for sparc when built as 64-bit
I built OpenSSH as a 64-bit binary on Solaris 9, using gcc 3.3.2,
OpenSSL 0.9.7c and zlib 1.2.1. sshd starts up normally, and will begin
the login session, however, some time after it reads /etc/default/login,
it faults and kills the connection. There are no error messages logged
to syslog (with LogLevel set to DEBUG) or with the -ddd option.
Here's a truss of the failure:
8132:
2003 Sep 16
2
openssh 3.7p1 bus error on sparcv9
...ver, when reading
from /etc/default/login, I get a bus error. I am able to get sshd to
work by commenting out these lines in session.c:
1015,1018c1015
< # ifdef HAVE_ETC_DEFAULT_LOGIN
< read_etc_default_login(&env, &envsize, pw->pw_uid);
< path = child_get_env(env, "PATH");
< # endif /* HAVE_ETC_DEFAULT_LOGIN */
Here is an truss of the failure:
1904: open("/etc/default/login", O_RDONLY) = 7
1904: fstat(7, 0xFFFFFFFF7FFFD7F0) = 0
1904: ioctl(7, TCGETA, 0xFFFFFFFF7FFFD72C) Err#25 ENOT...
2003 Oct 21
2
Fwd: Re: Bus Error with OpenSSH 3.7.1p2 on Solaris 8, SPARC 64-bit
The story of this problem, AFAIK, is that Solaris 8 YASSP and JASS and vigilant/paranoid sysadmins have been known to set a restricitve umask in /etc/default/login. OpenSSH compatibility for Solaris 8 has been spotty at times for sparcv9 targets. This time, when a sparcv9 binary tries to sscanf(3C) the numeric umask as a long octal and put it in a mode_t, SIGBUS happens.
What this looks like in