search for: have_getluid

Displaying 6 results from an estimated 6 matches for "have_getluid".

2001 Feb 21
2
SCO 5.0.5 setluid patch
...so I hope you'll be kind if the diff is crude. More importantly, I hope that where I moved it to is correct! -- Darryl Ideal Computer Group Inc. thor 314 : /u/sco/source/openssh-2.5.1p1 # diff session.c session.drk.c 1024a1025,1031 > /* DRK: moved this stuff up higher */ > #if defined(HAVE_GETLUID) && defined(HAVE_SETLUID) > /* Sets login uid for accounting */ > if (getluid() == -1 && setluid(pw->pw_uid) == -1) > error("setluid: %s", strerror(errno)); > #endif /* defined(HAVE_GETLUID) && defined(HAVE_SETLUID) */ >...
2010 Nov 05
2
test request: SCO with setluid() (i686-pc-sco3.2v5.0.7, possibly others)
.../platform.c,v retrieving revision 1.14 diff -u -p -r1.14 platform.c --- platform.c 5 Nov 2010 03:47:01 -0000 1.14 +++ platform.c 5 Nov 2010 04:08:42 -0000 @@ -109,6 +109,14 @@ platform_setusercontext(struct passwd *p } } # endif /* USE_PAM */ + +#if !defined(HAVE_LOGIN_CAP) && defined(HAVE_GETLUID) && defined(HAVE_SETLUID) + if (getuid() == 0 || geteuid() == 0) { + /* Sets login uid for accounting */ + if (getluid() == -1 && setluid(pw->pw_uid) == -1) + error("setluid: %s", strerror(errno)); + } +#endif } /* Index: session.c ==============================...
2002 Jun 25
3
BSD/OS with privsep
...t; 0) { + int flags = LOGIN_SETALL & ~LOGIN_SETPATH; +#ifdef __bsdi__ + if (getpid() != getpgrp()) + flags &= ~LOGIN_SETLOGIN; +#endif + if (setusercontext(lc, pw, pw->pw_uid, flags) < 0) { perror("unable to set user context"); exit(1); } #else # if defined(HAVE_GETLUID) && defined(HAVE_SETLUID) /* Sets login uid for accounting */ if (getluid() == -1 && setluid(pw->pw_uid) == -1) error("setluid: %s", strerror(errno)); # endif /* defined(HAVE_GETLUID) && defined(HAVE_SETLUID) */
2001 Feb 08
5
Daily snapshots...
All, How can I get at the daily snapshots? When I go to the website, www.openssh.com, and follow the Linux link to portable.html and then go to request the daily snapshot from http://bass.directhit.com/openssh_snap/, I get prompted for a user id and password. Needless to say, I ain't got. That's real useful. Use to be, I could get the snapshots from the ftp site. Then things
2003 Dec 30
8
[Bug 651] SCO 3.2v4.2 and OpenSSH 3.7.1p1 --> connection hangs and does not close (ssh2 only)
http://bugzilla.mindrot.org/show_bug.cgi?id=651 ------- Additional Comments From vikashb at comparexafrica.co.za 2003-12-30 16:39 ------- tried openssh-SNAP-20031223 does not compile: (cd openbsd-compat && make) gcc -g -O2 -Wall -Wpointer-arith -Wno-uninitialized -I. -I.. -I. -I./.. -I/usr/local/ssl/include -Dftruncate=chsize -I/usr/local/include -DHAVE_CONFIG_H -c
2005 Sep 19
1
ssh hangs or gives Segmentation fault
...HAVE_FCHOWN 1 #define HAVE_FEATURES_H 1 /* #undef HAVE_FLOATINGPOINT_H */ #define HAVE_FREEADDRINFO 1 #define HAVE_FUTIMES 1 #define HAVE_GAI_STRERROR 1 #define HAVE_GETADDRINFO 1 /* #undef HAVE_GETAUDIT */ /* #undef HAVE_GETAUDIT_ADDR */ #define HAVE_GETCWD 1 #define HAVE_GETGROUPLIST 1 /* #undef HAVE_GETLUID */ #define HAVE_GETNAMEINFO 1 #define HAVE_GETOPT 1 #define HAVE_GETOPT_H 1 /* #undef HAVE_GETPEEREID */ /* #undef HAVE_GETPWANAM */ #define HAVE_GETRLIMIT 1 /* #undef HAVE_GETRUSAGE */ #define HAVE_GETTIMEOFDAY 1 #define HAVE_GETTTYENT 1 #define HAVE_GETUTENT 1 #define HAVE_GETUTID 1 #define HAVE_...