search for: monitor_mm

Displaying 20 results from an estimated 46 matches for "monitor_mm".

2002 Mar 25
2
compile failure
...nitor_wrap.c: In function `mm_request_receive': monitor_wrap.c:91: warning: int format, different type arg (arg 3) monitor_wrap.c:100: warning: int format, different type arg (arg 3) which have to do with fatal() calls and int not being the same as ssize_t... But the next one is the problem: monitor_mm.h:28:22: sys/tree.h: No such file or directory then all heck breaks loose. What's sys/tree.h supposed to be? Dr. Tom Holroyd "I am, as I said, inspired by the biological phenomena in which chemical forces are used in repetitious fashion to produce all kinds of weird effects (one of whic...
2002 Jul 27
1
Patch to OpenSSH-3.4p1/monitor_mm.c for Linux 2.0
I had to modify the file monitor_mm.c to get the privledge separation to work for Linux 2.0.36 (and above) and am passing on the patch to you; if there is a better place to send this, please let me know. I've included a new #define (USE_MMAP_DEV_ZERO) to select this patch, but am not including the patch to config.h---if there...
2002 Jun 25
2
Help wanted: configure test for busted mmap
Linux 2.2 (and probably others) have a deficient mmap which has caused a number of problems (e.g. bug #285). A workaround is in development, but it would be helpful to have a configure test to detect the bad mmaps(). Any takers? -d
2002 Apr 03
0
[Bug 201] New: Building openssh from CVS fails on AIX 4.2.1
...H Version: -current Platform: PPC OS/Version: AIX Status: NEW Severity: normal Priority: P2 Component: sshd AssignedTo: openssh-unix-dev at mindrot.org ReportedBy: dtucker at zip.com.au While compiling from CVS, monitor_mm.c on AIX 4.2.1, gcc gives the following error: monitor_mm.c: In function `mm_create': monitor_mm.c:87: `MAP_FAILED' undeclared (first use in this function) monitor_mm.c:87: (Each undeclared identifier is reported only once monitor_mm.c:87: for each function it appears in.) make: *** [moni...
2002 Jun 25
2
Linux 2.2 + borken mmap() round 1
...; +if (p == (char *)-1) + exit(1); +exit(0); +} + ], + [ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_MMAP_ANON_SHARED) + ], + [ AC_MSG_RESULT(no) ] +) +fi + dnl IRIX and Solaris 2.5.1 have dirname() in libgen AC_CHECK_FUNCS(dirname, [AC_CHECK_HEADERS(libgen.h)] ,[ AC_CHECK_LIB(gen, dirname,[ Index: monitor_mm.c =================================================================== RCS file: /var/cvs/openssh/monitor_mm.c,v retrieving revision 1.10 diff -u -r1.10 monitor_mm.c --- monitor_mm.c 7 Jun 2002 01:57:25 -0000 1.10 +++ monitor_mm.c 25 Jun 2002 00:16:09 -0000 @@ -84,13 +84,11 @@ */ mm->mmalloc...
2002 Apr 05
14
PLEASE TEST snapshots
The next OpenSSH release is close, too. If you want OpenSSH 3.2 to be the best version of OpenSSH, then please test the snapshots. If you like to see new features in future OpenSSH releases, then test the snapshots. If you are running OpenBSD then please test the OpenBSD snapshots. If you are running the portable OpenSSH release then please test the nightly snapshots from
2002 Dec 18
1
[Bug 458] sshd crashes with "fatal: mm_malloc: size too big"
http://bugzilla.mindrot.org/show_bug.cgi?id=458 ------- Additional Comments From us- at gmx.de 2002-12-19 03:16 ------- Sorry, typo: The irix version is 6.5.17 not 6.5.18 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
2003 Sep 05
3
[Bug 458] sshd crashes with "fatal: mm_malloc: size too big"
...IX |All Platform|MIPS |All ------- Additional Comments From dtucker at zip.com.au 2003-09-05 14:23 ------- I had to reformat Guido's post to read it: "Same Problem on Solaris 8 Build 32-Bit, gcc 2.95-3 It seems that line 170 in monitor_mm.c is the problem: if (size > SIZE_T_MAX - MM_MINSIZE + 1) fatal("mm_malloc: size too big"); size seems to be a different type (uint32) in defines.h: #ifndef SIZE_T_MAX # define SIZE_T_MAX ULONG_MAX #endif /* SIZE_T_MAX */ #ifndef HAVE_SIZE_T typedef unsigned int size_t; # define...
2002 Jun 25
1
[Bug 259] UsePrivilegeSeparation crashed sshd under Linux 2.2
...18:09 ------- Linux 2.2 defines MAP_ANON in <bits/mman.h>, however it can seen in /usr/src/linux/mm/mmap.c (lines 200 onwards) that if MAP_ANON is used then the system call will return -EINVAL. The following is a quick hack to get openssh to compile on linux 2.2: diff -ur openssh-3.3p1-orig/monitor_mm.c openssh-3.3p1/monitor_mm.c --- openssh-3.3p1-orig/monitor_mm.c Fri Jun 7 03:57:25 2002 +++ openssh-3.3p1/monitor_mm.c Tue Jun 25 10:06:06 2002 @@ -84,6 +84,7 @@ */ mm->mmalloc = mmalloc; +#undef MAP_ANON #if defined(HAVE_MMAP) && defined(MAP_ANON) add...
2003 Sep 16
1
[Bug 642] Can't build build OpenSSH 3.7 on OpenBSD 3.0
...n /usr/src/usr.bin/ssh. ---- Step "make depend" had these "No such file or directory" messages. ===> sshd mkdep -a -DHAVE_LOGIN_CAP -DBSD_AUTH -I/usr/src/usr.bin/ssh/sshd/.. -DLIBWRAP In file included from /usr/src/usr.bin/ssh/sshd/../sshd.c:79: /usr/src/usr.bin/ssh/sshd/../monitor_mm.h:30: sys/tree.h: No such file or directory In file included from /usr/src/usr.bin/ssh/sshd/../monitor_mm.c:34: /usr/src/usr.bin/ssh/sshd/../monitor_mm.h:30: sys/tree.h: No such file or directory In file included from /usr/src/usr.bin/ssh/sshd/../monitor.c:51: /usr/src/usr.bin/ssh/sshd/../monitor_m...
2002 Mar 20
1
privsep
i think our strategy for privsep is to just keep portable sync'd closely with openbsd's tree, even though things will be broken wrt privsep for many platforms. then we just get primary one's working and work out issues as we go along. i'll start to work on sun and hp-ux again tomorrow.
2004 Oct 06
2
[Bug 940] xmmap.c noequality compile error on Digital UNIX 4.0F PK7
...error on DigitalUNIX 4.0F |error on Digital UNIX 4.0F |PK7 |PK7 ------- Additional Comments From anenni at isisw.com 2004-10-06 22:24 ------- With the change you suggested xmmap.c compiles with no warning at all. Making all gives the same error with monitor_mm.c cc -std1 -g -I. -I. -I/usr/local/ssl/include -I/usr/local/include -DSSHDIR=\"/usr/local/etc\" -D_PATH_SSH_PROGRAM=\"/usr/local/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/usr/local/libexec/sftp-server\&quo...
2002 Apr 07
5
[Bug 205] PrivSep needs to be a compile-time option
http://bugzilla.mindrot.org/show_bug.cgi?id=205 ------- Additional Comments From mouring at eviladmin.org 2002-04-07 10:28 ------- Created an attachment (id=64) This patch (does not include configure.ac patch) should allow non-mmap platforms to compile, but will not allow them to use privsep period. One has to do more R&D to figure out where to disable compression on sshd since
2003 Oct 28
2
Privilege separation
...n --- openssh-3.7.1p2.privsep/Makefile.in Mon Sep 22 05:00:12 2003 +++ openssh-3.7.1p2/Makefile.in Sat Oct 4 22:38:24 2003 @@ -80,8 +80,7 @@ auth-chall.o auth2-chall.o groupaccess.o \ auth-skey.o auth-bsdauth.o auth2-hostbased.o auth2-kbdint.o \ auth2-none.o auth2-passwd.o auth2-pubkey.o \ - monitor_mm.o monitor.o monitor_wrap.o monitor_fdpass.o \ - kexdhs.o kexgexs.o \ + @PRIVSEP_OBJS@ kexdhs.o kexgexs.o \ auth-krb5.o \ auth2-gss.o gss-serv.o gss-serv-krb5.o \ loginrec.o auth-pam.o auth-sia.o md5crypt.o diff -adurN openssh-3.7.1p2.privsep/acconfig.h openssh-3.7.1p2/acconfig.h --- openssh-3...
2005 Sep 12
3
Problems Compiling OpenSSH 4.2p1 on Tru64 UNIX 5.1b
...auth-rhosts.o auth-passwd.o auth-rsa.o auth-rh-rsa.o sshpty.o sshlogin.o servconf.o serverloop.o auth.o auth1.o auth2.o auth-options.o session.o auth-chall.o auth2-chall.o groupaccess.o auth-skey.o auth-bsdauth.o auth2-hostbased.o auth2-kbdint.o auth2-none.o auth2-passwd.o auth2-pubkey.o monitor_mm.o monitor.o monitor_wrap.o kexdhs.o kexgexs.o auth-krb5.o auth2-gss.o gss-serv.o gss-serv-krb5.o loginrec.o auth-pam.o auth-shadow.o auth-sia.o md5crypt.o audit.o audit-bsm.o -L. -Lopenbsd-compat/ -L/usr/local/include -lssh -lopenbsd-compat -lcrypto -lrt -lz -lsecurity -ldb -lm -laud ld...
2007 Mar 23
2
openssh 4.6p1 bug / IRIX
...sshd.o auth-rhosts.o auth-passwd.o auth-rsa.o auth-rh-rsa.o sshpty.o sshlogin.o servconf.o serverloop.o auth.o auth1.o auth2.o auth-options.o session.o auth-chall.o auth2-chall.o groupaccess.o auth-skey.o auth-bsdauth.o auth2-hostbased.o auth2-kbdint.o auth2-none.o auth2-passwd.o auth2-pubkey.o monitor_mm.o monitor.o monitor_wrap.o kexdhs.o kexgexs.o auth-krb5.o auth2-gss.o gss-serv.o gss-serv-krb5.o loginrec.o auth-pam.o auth-shadow.o auth-sia.o md5crypt.o audit.o audit-bsm.o platform.o -L. -Lopenbsd-compat/ -L/usr/local/lib -L/usr/local2/lib -L/usr/nekoware/lib -L/usr/freeware/lib32 -lssh -lo...
2006 Jan 08
3
Allow --without-privsep build.
.../0 static Gssctxt *gsscontext = NULL; #endif +#ifdef USE_PRIVSEP + /* Imports */ extern ServerOptions options; extern u_int utmp_len; @@ -1916,3 +1918,5 @@ mm_answer_gss_userok(int sock, Buffer *m return (authenticated); } #endif /* GSSAPI */ + +#endif /* USE_PRIVSEP */ --- openssh-4.2p1/monitor_mm.c~ 2004-10-06 14:15:44.000000000 +0100 +++ openssh-4.2p1/monitor_mm.c 2006-01-07 18:39:36.000000000 +0000 @@ -35,6 +35,8 @@ RCSID("$OpenBSD: monitor_mm.c,v 1.9 2004 #include "log.h" #include "monitor_mm.h" +#ifdef USE_PRIVSEP + static int mm_compare(struct mm_share *a...
2002 Jun 26
2
MAP_ANON replacement?
...n MAP_ANON is set in flags, and fd is set to -1, mmap() provides a direct path to return anonymous pages to the caller. This operation is equivalent to passing mmap() an open file descriptor on /dev/zero with MAP_ANON elided from the flags argument. Thus, I suppose in monitor_mm.c (of 3.3p1), the lines 88-89 address = mmap(NULL, size, PROT_WRITE|PROT_READ, MAP_ANON|MAP_SHARED, -1, 0); could be replaced by { static int mmfd = -1; if(mmfd < 0) mmfd = open("/dev/zero", O_RDWR); address = mmap(NULL, size, PROT_WRITE|PROT_READ, MAP_SHARED,...
2002 Jul 18
1
address = xmmap(size);
monitor_mm.c, line = 94 in openssh-SNAP-20020718 A value of type "int" cannot be assigned to an entity of type "void *". address = xmmap(size); ^ -- ayamura Ayamura KIKUCHI, M.D., Ph.D.
2002 Jun 25
3
3.3p1 patch for Solaris 2.6
...use_privsep = 1; -#if !defined(HAVE_MMAP) || !defined(MAP_ANON) +#if !defined(HAVE_MMAP) if (use_privsep && options->compression == 1) { error("This platform does not support both privilege " "separation and compression"); --- work.i386/openssh-3.3p1/monitor_mm.c- Tue Jun 25 23:42:02 2002 +++ work.i386/openssh-3.3p1/monitor_mm.c Tue Jun 25 23:43:11 2002 @@ -71,6 +71,9 @@ { void *address; struct mm_master *mm; +#if defined(HAVE_MMAP) && !defined(MAP_ANON) + int fd; +#endif if (mmalloc == NULL) mm = xmalloc(sizeof(struct mm_master)); @@...