bugzilla-daemon at bugzilla.mindrot.org
2011-Apr-01 23:50 UTC
[Bug 1886] New: Please move /tmp/ssh-XXXXXXXXXXXX directory to /var/run
https://bugzilla.mindrot.org/show_bug.cgi?id=1886
Summary: Please move /tmp/ssh-XXXXXXXXXXXX directory to
/var/run
Product: Portable OpenSSH
Version: 5.8p1
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: ssh-agent
AssignedTo: unassigned-bugs at mindrot.org
ReportedBy: josh at joshtriplett.org
ssh-agent creates $SSH_AUTH_SOCK within a temporary directory of the
form /tmp/ssh-XXXXXXXXXXXX. These directories often stick around and
don't get cleaned up. (Right now I have piles of them just from the
past month.) These directories seem like a perfect fit for /var/run,
rather than /tmp, since they exist primarily to provide a socket.
Moving them to /var/run should not break anything (since $SSH_AUTH_SOCK
would point to the new location), and should allow these directories to
get automatically cleaned up. Furthermore, this reduces clutter in
/tmp.
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2011-Apr-02 00:51 UTC
[Bug 1886] Please move /tmp/ssh-XXXXXXXXXXXX directory to /var/run
https://bugzilla.mindrot.org/show_bug.cgi?id=1886
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |djm at mindrot.org
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #1 from Damien Miller <djm at mindrot.org> 2011-04-02 11:51:59
EST ---
/var/run is not user-writable on most Unix variants. Furthermore,
safely reaping stale files from /tmp is a long solved problem
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2011-Apr-02 01:15 UTC
[Bug 1886] Please move /tmp/ssh-XXXXXXXXXXXX directory to /var/run
https://bugzilla.mindrot.org/show_bug.cgi?id=1886 --- Comment #2 from Josh Triplett <josh at joshtriplett.org> 2011-04-02 12:15:40 EST --- (In reply to comment #1)> /var/run is not user-writable on most Unix variants.ssh-agent could simply fall back to /tmp if /var/run fails.> Furthermore, > safely reaping stale files from /tmp is a long solved problemNot entirely. Some systems remove old files from /tmp at boot time, but that can result in unexpected data loss. Furthermore, tmpreaper at least avoids removing sockets unless explicitly requested. -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2011-Apr-02 08:26 UTC
[Bug 1886] Please move /tmp/ssh-XXXXXXXXXXXX directory to $XDG_RUNTIME_DIR if set
https://bugzilla.mindrot.org/show_bug.cgi?id=1886
Josh Triplett <josh at joshtriplett.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Please move |Please move
|/tmp/ssh-XXXXXXXXXXXX |/tmp/ssh-XXXXXXXXXXXX
|directory to /var/run |directory to
| |$XDG_RUNTIME_DIR if set
Status|RESOLVED |REOPENED
Resolution|WONTFIX |
--- Comment #3 from Josh Triplett <josh at joshtriplett.org> 2011-04-02
19:26:03 EST ---
A correction: this directory should move into $XDG_RUNTIME_DIR if set.
That variable will point to a user-writable (and user-specific)
directory; if unset, ssh can fall back to $TMPDIR or /tmp as it does
now.
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2011-Apr-12 05:19 UTC
[Bug 1886] Please move /tmp/ssh-XXXXXXXXXXXX directory to $XDG_RUNTIME_DIR if set
https://bugzilla.mindrot.org/show_bug.cgi?id=1886
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |INVALID
--- Comment #4 from Damien Miller <djm at mindrot.org> 2011-04-12 15:19:39
EST ---
Recent ssh-agent already honors TMPDIR for this.
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2011-Apr-12 07:27 UTC
[Bug 1886] Please move /tmp/ssh-XXXXXXXXXXXX directory to $XDG_RUNTIME_DIR if set
https://bugzilla.mindrot.org/show_bug.cgi?id=1886 --- Comment #5 from Josh Triplett <josh at joshtriplett.org> 2011-04-12 17:27:02 EST --- $XDG_RUNTIME_DIR, when configured, normally points to a user-private directory separate from $TMPDIR. ssh-agent should use $XDG_RUNTIME_DIR in preference to $TMPDIR if set, and fall back to $TMPDIR. -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2011-Sep-06 05:33 UTC
[Bug 1886] Please move /tmp/ssh-XXXXXXXXXXXX directory to $XDG_RUNTIME_DIR if set
https://bugzilla.mindrot.org/show_bug.cgi?id=1886
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #6 from Damien Miller <djm at mindrot.org> 2011-09-06 15:33:04
EST ---
close resolved bugs now that openssh-5.9 has been released
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
Apparently Analagous Threads
- [PATCH] chrreplace: Don't skip the first character
- [PATCH] chrreplace: Don't skip the first character
- [PATCH v4 00/10] x86: Support compiling out userspace IO (iopl and ioperm)
- [PATCH v4 00/10] x86: Support compiling out userspace IO (iopl and ioperm)
- [PATCH 2/3] x86: tss: Eliminate fragile calculation of TSS segment limit