Displaying 5 results from an estimated 5 matches for "agentsocket".
2023 Jun 17
2
[PATCH] ssh-agent: add systemd socket-based activation
..."cleanup");
if (socket_name[0])
unlink(socket_name);
@@ -2000,7 +2012,7 @@ int
main(int ac, char **av)
{
int c_flag = 0, d_flag = 0, D_flag = 0, k_flag = 0, s_flag = 0;
- int sock, ch, result, saved_errno;
+ int sock = 0, ch, result, saved_errno;
char *shell, *format, *pidstr, *agentsocket = NULL;
#ifdef HAVE_SETRLIMIT
struct rlimit rlim;
@@ -2015,6 +2027,9 @@ main(int ac, char **av)
struct pollfd *pfd = NULL;
size_t npfd = 0;
u_int maxfds;
+#ifdef WITH_SYSTEMD
+ int nfds = 0;
+#endif
/* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */
sanitise_stdfd();...
2002 Jun 27
1
OpenSSH 3.3p1 on SunOS 4.1.4
...(P, environ, cnt * sizeof(char *));
environ = P;
}
environ[cnt + 1] = NULL;
*** ssh-agent.c.orig Fri Jun 21 02:41:52 2002
--- ssh-agent.c Wed Jun 26 18:18:48 2002
***************
*** 939,944 ****
--- 939,945 ----
char *shell, *format, *pidstr, pidstrbuf[1 + 3 * sizeof pid];
char *agentsocket = NULL;
extern int optind;
+ extern char *optarg;
fd_set *readsetp = NULL, *writesetp = NULL;
SSLeay_add_all_algorithms();
2010 Aug 26
5
[Bug 1809] New: ssh-agent doesnt respect $TMPDIR
...P2
Component: ssh-agent
AssignedTo: unassigned-bugs at mindrot.org
ReportedBy: vapier at gentoo.org
Created attachment 1913
--> https://bugzilla.mindrot.org/attachment.cgi?id=1913
openssh-ssh-agent-tmpdir.patch
the ssh-agent program hardcodes the /tmp/ path:
if (agentsocket == NULL) {
/* Create private directory for agent socket */
strlcpy(socket_dir, "/tmp/ssh-XXXXXXXXXX", sizeof socket_dir);
this doesnt respect a user's TMPDIR preference and can obviously break
if /tmp/ is screwed up (full/whatever), but TMPDIR is pointing to a
usable lo...
2007 Aug 21
1
ssh-agent security
...;);
exit(1);
}
@@ -1047,7 +1093,7 @@
init_rng();
seed_rng();
- while ((ch = getopt(ac, av, "cdksa:t:")) != -1) {
+ while ((ch = getopt(ac, av, "cdksa:i:t:")) != -1) {
switch (ch) {
case 'c':
if (s_flag)
@@ -1070,6 +1116,10 @@
case 'a':
agentsocket = optarg;
break;
+ case 'i':
+ run_inform = 1;
+ snprintf(inform_cmd, sizeof inform_cmd, "%s", optarg);
+ break;
case 't':
if ((lifetime = convtime(optarg)) == -1) {
fprintf(stderr, "Invalid lifetime\n");
2007 Feb 23
1
ssh-agent does not immediately clean timeouted keys from memory
during my seminar of advanced exploitation techniques (SEAT, [1]) i
developed some methods to crack into system via DMA (e.g. via firewire).
as part of this i developed a program that steals loaded ssh private
keys from ssh-agents. i was astonished to find that the keys are not
immediately removed from the agent when a timeout occurs, but only the
next time the agent is queried via its socket. i