<html style="direction: ltr;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style id="bidiui-paragraph-margins" type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body bidimailui-charset-is-forced="true" style="direction: ltr;">
<p><br>
</p>
<div class="moz-cite-prefix">On 09/01/2022 04:13, shimi wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAKnt4U_XRU9GbvNnAoeGLjrDykVPC50kvBgj4ps-Nfp3AXkOgA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="auto">
<div>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sat, 8 Jan 2022, 13:24
Shachar Shemesh, <<a href="mailto:shachar@shemesh.biz"
moz-do-not-send="true" class="moz-txt-link-freetext">shachar@shemesh.biz</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="direction:ltr">
<p>You can probably find it under
/proc/$SSH_AGENT_PID/fd.</p>
<p><br>
</p>
<p>With that said, I'm not sure whether that brings you
any closer to recovering it. Maybe a move (the
syscall, not the command line) from there to
$SSH_AUTH_SOCK?</p>
</div>
</blockquote>
</div>
</div>
<div dir="auto">Wouldn't ln -s
/proc/$SSH_AGENT_PID/fd/<socket fd> $SSH_AUTH_SOCK
achieve the /purpose/ of the OP (even if without actually
creating a socket file)? Assuming I understand correctly the
purpose...</div>
<div dir="auto"><br>
</div>
</div>
</blockquote>
<p>The permissions are all wrong for the task. The directory only
has X permission for root (which disqualifies this solution right
there and then), and the file itself too.</p>
<p><br>
</p>
<p>Now, files under proc don't necessarily behave the way their
permissions suggest they should (hence my suggestion to use the
rename syscall. It does not, normally, work across filesystems,
but it might in this case). In this case, however, you really
don't have access as a normal user.</p>
<p><br>
</p>
<p>Shachar</p>
<br>
</body>
</html>