search for: mm_init_compression

Displaying 4 results from an estimated 4 matches for "mm_init_compression".

2011 Jun 03
1
unconitionally use socketpair?
...=================================================================== RCS file: /usr/local/src/security/openssh/cvs/openssh/monitor.c,v retrieving revision 1.147 diff -u -p -r1.147 monitor.c --- monitor.c 29 May 2011 11:39:38 -0000 1.147 +++ monitor.c 3 Jun 2011 01:05:31 -0000 @@ -1853,13 +1853,8 @@ mm_init_compression(struct mm_master *mm static void monitor_socketpair(int *pair) { -#ifdef HAVE_SOCKETPAIR if (socketpair(AF_UNIX, SOCK_STREAM, 0, pair) == -1) fatal("%s: socketpair", __func__); -#else - fatal("%s: UsePrivilegeSeparation=yes not supported", - __func__); -#endif FD_C...
2006 Jan 08
3
Allow --without-privsep build.
..." +#include "config.h" +#ifndef USE_PRIVSEP +#define use_privsep 0 +#define PRIVSEP(x) (x) +#else extern int use_privsep; #define PRIVSEP(x) (use_privsep ? mm_##x : x) @@ -111,4 +116,6 @@ void *mm_zalloc(struct mm_master *, u_in void mm_zfree(struct mm_master *, void *); void mm_init_compression(struct mm_master *); +#endif /* USE_PRIVSEP */ + #endif /* _MM_H_ */ --- openssh-4.2p1/servconf.c~ 2005-08-12 13:11:37.000000000 +0100 +++ openssh-4.2p1/servconf.c 2006-01-07 18:13:42.000000000 +0000 @@ -102,8 +102,10 @@ initialize_server_options(ServerOptions options->authorized_keys_file...
2011 Jun 02
2
preauth privsep logging via monitor
..., strerror(errno)); + if (pfd[1].revents) { + /* + * Drain all log messages before processing next + * monitor request. + */ + monitor_read_log(pmonitor); + continue; + } + if (pfd[0].revents) + break; /* Continues below */ + } buffer_init(&m); @@ -1851,17 +1940,30 @@ mm_init_compression(struct mm_master *mm } while (0) static void -monitor_socketpair(int *pair) +monitor_openfds(struct monitor *mon, int do_logfds) { #ifdef HAVE_SOCKETPAIR - if (socketpair(AF_UNIX, SOCK_STREAM, 0, pair) == -1) - fatal("%s: socketpair", __func__); + int pair[2]; + + if (socketpair(A...
2003 Oct 28
2
Privilege separation
...ssh-3.7.1p2/monitor_wrap.h Sat Oct 4 22:46:55 2003 @@ -30,6 +30,7 @@ #include "key.h" #include "buffer.h" +#ifndef DISABLE_PRIVSEP extern int use_privsep; #define PRIVSEP(x) (use_privsep ? mm_##x : x) @@ -102,4 +103,7 @@ void mm_zfree(struct mm_master *, void *); void mm_init_compression(struct mm_master *); +#else /* DISABLE_PRIVSEP */ +#define PRIVSEP(x) x +#endif /* DISABLE_PRIVSEP */ #endif /* _MM_H_ */ diff -adurN openssh-3.7.1p2.privsep/servconf.c openssh-3.7.1p2/servconf.c --- openssh-3.7.1p2.privsep/servconf.c Tue Sep 23 13:24:21 2003 +++ openssh-3.7.1p2/servconf.c Sun O...