search for: sunaddr

Displaying 16 results from an estimated 16 matches for "sunaddr".

Did you mean: sunkaddr
2001 May 03
1
[PATCH]: Workaround a security leak on Windows
...@@ -714,6 +714,9 @@ main(int ac, char **av) #ifdef HAVE_SETRLIMIT struct rlimit rlim; #endif +#ifdef HAVE_CYGWIN + int prev_mask; +#endif pid_t pid; char *shell, *format, *pidstr, pidstrbuf[1 + 3 * sizeof pid]; extern int optind; @@ -805,10 +808,19 @@ main(int ac, char **av) memset(&sunaddr, 0, sizeof(sunaddr)); sunaddr.sun_family = AF_UNIX; strlcpy(sunaddr.sun_path, socket_name, sizeof(sunaddr.sun_path)); +#ifdef HAVE_CYGWIN + prev_mask = umask(0177); +#endif if (bind(sock, (struct sockaddr *) & sunaddr, sizeof(sunaddr)) < 0) { perror("bind"); +#ifdef HAVE_C...
2015 Sep 26
5
[RFC][PATCH v2] Support a list of sockets on SSH_AUTH_SOCK
...eturn SSH_ERR_INVALID_FORMAT; } -/* Returns the number of the authentication fd, or -1 if there is none. */ -int -ssh_get_authentication_socket(int *fdp) +static int +get_authentication_socket(const char *authsocket, int *fdp) { - const char *authsocket; int sock, oerrno; struct sockaddr_un sunaddr; - if (fdp != NULL) - *fdp = -1; - - authsocket = getenv(SSH_AUTHSOCKET_ENV_NAME); - if (!authsocket) - return SSH_ERR_AGENT_NOT_PRESENT; - memset(&sunaddr, 0, sizeof(sunaddr)); sunaddr.sun_family = AF_UNIX; strlcpy(sunaddr.sun_path, authsocket, sizeof(sunaddr.sun_path)); @@ -117,7 +1...
2002 Jul 25
0
Please evaluate my patch for Winbind
...d); + close(saved_fd); + } + return fd; + } + /* Connect to winbindd socket */ int winbind_open_pipe_sock(void) *************** *** 158,164 **** if ((winbindd_fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) { return -1; } ! if (connect(winbindd_fd, (struct sockaddr *)&sunaddr, sizeof(sunaddr)) == -1) { close_sock(); --- 179,188 ---- if ((winbindd_fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) { return -1; } ! ! winbindd_fd = make_nonstd_fd( winbindd_fd ); ! ! if (connect(winbindd_fd, (struct sockaddr *)&sunaddr, sizeof(sunaddr))...
2016 Oct 05
3
Socket forwarding with non existent remote directories
Hi openssh dev's, I love an truly appreciate the Socket forwarding feature in OpenSSH 6.7. i use it for forwarding the socket of GnuPG's agent (that handles the secret stuff) to remote machines. Usecase: ====== I am a remote worker and use gnupg agent forwarding to connect to our company infrastructure that makes heavy use of PGP encryption while keeping my key out of the hands of
2012 Dec 21
0
File Attachments for previous bug report
...memset(x2_s_proof, 0, x2_s_proof_len); xfree(x2_s_proof); if (!use_privsep) -------------- next part -------------- --- authfd.c.orig 2012-12-19 17:07:08.292534290 -0800 +++ authfd.c 2012-12-19 17:10:48.240556291 -0800 @@ -102,7 +102,7 @@ if (!authsocket) return -1; - bzero(&sunaddr, sizeof(sunaddr)); + memset(&sunaddr, 0, sizeof(sunaddr)); sunaddr.sun_family = AF_UNIX; strlcpy(sunaddr.sun_path, authsocket, sizeof(sunaddr.sun_path)); -------------- next part -------------- --- authfile.c.orig 2012-12-19 17:11:06.537523347 -0800 +++ authfile.c 2012-12-19 17:12:0...
2016 Apr 23
2
StreamLocal forwarding
...sock < 0) { saved_errno = errno; error("socket: %.100s", strerror(errno)); errno = saved_errno; return -1; } if (unlink_first == 1) { if (unlink(path) != 0 && errno != ENOENT) error("unlink(%s): %.100s", path, strerror(errno)); } if (bind(sock, (struct sockaddr *)&sunaddr, sizeof(sunaddr)) < 0) { saved_errno = errno; error("bind: %.100s", strerror(errno)); close(sock); error("%s: cannot bind to path: %s", __func__, path); errno = saved_errno; return -1; } What am I missing? Rogan
2012 Dec 20
4
Deprecated calls to bzero() and index() found in OpenSSH 6.1p1
...bzero() call with the equivalent memset() call. The patch file is below in (diff -u) format: --- authfd.c.orig 2012-12-19 17:07:08.292534290 -0800 +++ authfd.c 2012-12-19 17:10:48.240556291 -0800 @@ -102,7 +102,7 @@ if (!authsocket) return -1; - bzero(&sunaddr, sizeof(sunaddr)); + memset(&sunaddr, 0, sizeof(sunaddr)); sunaddr.sun_family = AF_UNIX; strlcpy(sunaddr.sun_path, authsocket, sizeof(sunaddr.sun_path)); In file 'authfile.c', I've replaced the bzero() calls with the equivalent memset() calls. The patch file...
2016 May 03
2
StreamLocal forwarding
...rrno)); > > errno = saved_errno; > > return -1; > > } > > if (unlink_first == 1) { > > if (unlink(path) != 0 && errno != ENOENT) > > error("unlink(%s): %.100s", path, strerror(errno)); > > } > > if (bind(sock, (struct sockaddr *)&sunaddr, sizeof(sunaddr)) < 0) { > > saved_errno = errno; > > error("bind: %.100s", strerror(errno)); > > close(sock); > > error("%s: cannot bind to path: %s", __func__, path); > > errno = saved_errno; > > return -1; > > } > > > >...
2001 Feb 10
1
Handling of failed connect()s when ssh-agent is busy
...Socket failed"); if (newauthsockdir != NULL) { unlink(authsocket); chdir("/"); rmdir(newauthsockdir); xfree(newauthsockdir); } xfree(authsocketdir); return -1; } if (connect(sock, (struct sockaddr *)&sunaddr, AF_UNIX_SIZE(sunaddr)) < 0) { close(sock); if (newauthsockdir != NULL) { unlink(authsocket); chdir("/"); rmdir(newauthsockdir); xfree(newauthsockdir); } xfree(authsocketdir); return -1;...
2003 Sep 26
1
Mysql probs..
G'day.. I'm trying to compile samba with the expsam=mysql. but it gives back an error: sswitch/wb_common.c: In function winbind_named_pipe_sock': nsswitch/wb_common.c:136: storage size of `sunaddr' isn't known make: *** [nsswitch/wb_common.o] Error 1 mysql is working fine so no probs there.. even without-winbind compilation it keeps rerturning... got a idea ?? Collen
2000 Feb 14
0
[openssh-1.2.2] some porting notes for SunOS 4.1.4
...pt IPTOS_THROUGHPUT: %.100s", strerror(errno)); +#endif /* IPTOS_THROUGHPUT */ } } ======================================================================== --- ssh-agent.c.orig-1.2.2 Mon Jan 3 07:41:05 2000 +++ ssh-agent.c Sun Feb 13 15:35:23 2000 @@ -507,6 +507,7 @@ struct sockaddr_un sunaddr; pid_t pid; char *shell, *format, *pidstr, pidstrbuf[1 + 3 * sizeof pid]; + extern int optind; /* check if RSA support exists */ if (rsa_alive() == 0) { ======================================================================== --- scp.c.orig-1.2.2 Thu Jan 13 23:45:51 2000 +++ scp.c Sun Feb...
2000 May 12
0
SunOS 4.x port
...sigemptyset(&sa.sa_mask); +#ifdef SA_RESTART sa.sa_flags = SA_RESTART; +#endif sigaction(SIGALRM, &sa, NULL); alarmtimer(1); } else if (flag == 1) { --- ssh-agent.c.DIST Mon May 1 04:59:51 2000 +++ ssh-agent.c Fri May 5 12:22:05 2000 @@ -507,6 +507,7 @@ struct sockaddr_un sunaddr; pid_t pid; char *shell, *format, *pidstr, pidstrbuf[1 + 3 * sizeof pid]; + extern int optind; /* check if RSA support exists */ if (rsa_alive() == 0) {
2017 Jun 16
2
[PATCH] allow relative path in streamlocal forwarding
...sock; mode_t omask; + char *listen_path; switch (type) { case SSH_CHANNEL_UNIX_LISTENER: @@ -3042,22 +3096,39 @@ channel_setup_fwd_listener_streamlocal(int type, struct Forward *fwd, error("No forward path name."); return 0; } - if (strlen(fwd->listen_path) > sizeof(sunaddr.sun_path)) { - error("Local listening path too long: %s", fwd->listen_path); + + if (fwd->listen_path[0] != '/') { + if (fwd_opts->streamlocal_bind_root_directory == NULL) { + error("Relative path is not enabled."); + return 0; + } + listen_path = expand...
2000 Jan 19
3
AIX openssh patches
...GNOME ssh-askpass AC_ARG_WITH(gnome-askpass, *** ssh-agent.c.DIST Mon Jan 3 07:41:05 2000 --- ssh-agent.c Wed Jan 19 11:01:59 2000 *************** *** 416,422 **** after_select(fd_set *readset, fd_set *writeset) { unsigned int i; ! int len, sock; char buf[1024]; struct sockaddr_un sunaddr; --- 416,427 ---- after_select(fd_set *readset, fd_set *writeset) { unsigned int i; ! #ifdef _AIX ! unsigned long len; ! #else ! int len; ! #endif ! int sock; char buf[1024]; struct sockaddr_un sunaddr; *** ssh-keygen.c.DIST Wed Nov 24 19:54:59 1999 --- ssh-keygen.c Wed Jan 19...
2003 Dec 01
0
No subject
...in/passwd" -DSMB_PASSWD_FILE="/etc/samba/private/ smbpasswd" -DTDB_PASSWD_FILE="/etc/samba/private/smbpasswd.tdb" Using LIBS = -ldl -lnsl -lcrypt Compiling nsswitch/wb_common.c nsswitch/wb_common.c: In function `open_pipe_sock': nsswitch/wb_common.c:79: storage size of `sunaddr' isn't known make: *** [nsswitch/wb_common.o] Error 1 My Machine: Redhat-7.0 with kernel 2.4.5 gcc-2.96 make-3.79.1 glibc-2.2.2 samba-2.2.1 It has worked before but I had to reinstall my machine and now it doesnt work. If there is a certain library I must install or something like that t...
2003 Dec 01
0
No subject
...ba-request@lists.samba.org?subject=unsubscribe> List-Archive: http://lists.samba.org/pipermail/samba/ dear sir: WHEN I UPGRADE SAMBA 2.0 TO 2.2.1a ,THERE ARE COMPILING ERRORS : "nsswitch/wb_common.c:In function 'open_pipe_sock': "nsswitch/wb_common.c:79:storage size of 'sunaddr' is not known" WHY WAS THAT HAPPEND.I DON'T HAVE A IDEA. PLEASE HELP ME Return-Path: <deborah.santomauro@lmco.com> Delivered-To: samba@lists.samba.org Received: from mailgw1a.lmco.com (mailgw1a.lmco.com [192.31.106.7]) by lists.samba.org (Postfix) with ESMTP id DC7634D7F; Mo...