summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
AgeCommit message (Collapse)Author
2011-06-23ignore EINTR errors from poll()Damien Miller
2011-06-23rename sandbox.h => ssh-sandbox.h to make things easier for portableDamien Miller
2011-06-22$OpenBSD$ makersDamien Miller
2011-06-22hook up a channel confirm callback to warn the user then requested X11Damien Miller
forwarding was refused by the server; ok markus@
2011-06-22introduce sandboxing of the pre-auth privsep child using systrace(4).Damien Miller
This introduces a new "UsePrivilegeSeparation=sandbox" option for sshd_config that applies mandatory restrictions on the syscalls the privsep child can perform. This prevents a compromised privsep child from being used to attack other hosts (by opening sockets and proxying) or probing local kernel attack surface. The sandbox is implemented using systrace(4) in unsupervised "fast-path" mode, where a list of permitted syscalls is supplied. Any syscall not on the list results in SIGKILL being sent to the privsep child. Note that this requires a kernel with the new SYSTR_POLICY_KILL option. UsePrivilegeSeparation=sandbox will become the default in the future so please start testing it now. feedback dtucker@; ok markus@
2011-06-22reuse the multistate option arrays to pretty-print options for "sshd -T"Damien Miller
2011-06-17setproctitle for a mux master that has been gracefully stopped;Damien Miller
bz#1911 from Bert.Wesarg AT googlemail.com
2011-06-17factor out multi-choice option parsing into a parse_multistate labelDamien Miller
and some support structures; ok dtucker@
2011-06-17the protocol version should be unsigned; bz#1913 reported by mb ATDamien Miller
smartftp.com
2011-06-17make the pre-auth privsep slave log via a socketpair shared with theDamien Miller
monitor rather than /var/empty/dev/log; ok dtucker@ deraadt@ markus@
2011-06-14make sure key_parse_public/private_rsa1() no longer consumes its input buffer.Markus Friedl
fixes ssh-add for passphrase-protected ssh1-keys; noted by naddy@; ok djm@
2011-06-04explain IdentifyFile's semantics a little better, prompted by bz#1898Damien Miller
ok dtucker jmc
2011-06-03Check current parent process ID against saved one to determine if the parentDarren Tucker
has exited, rather than attempting to send a zero signal, since the latter won't work if the parent has changed privs. bz#1905, patch from Daniel Kahn Gillmor, ok djm@
2011-06-03bz#1883 - setproctitle() to identify mux master; patch from Bert.WesargDamien Miller
AT googlemail.com; ok dtucker@
2011-05-24Remove undocumented legacy options UserKnownHostsFile2 andDamien Miller
GlobalKnownHostsFile2 by making UserKnownHostsFile/GlobalKnownHostsFile accept multiple paths per line and making their defaults include known_hosts2; ok markus
2011-05-23read in key comments for v.2 keys (though note that these are notDamien Miller
passed over the agent protocol); bz#439, based on patch from binder AT arago.de; ok markus@
2011-05-23tweak previous; ok djmJason McIntyre
2011-05-23remove extra newlineDamien Miller
2011-05-23make secure_filename() spam debug logs lessDamien Miller
2011-05-23allow AuthorizedKeysFile to specify multiple files, separated by spaces.Damien Miller
Bring back authorized_keys2 as a default search path (to avoid breaking existing users of this file), but override this in sshd_config so it will be no longer used on fresh installs. Maybe in 2015 we can remove it entierly :) feedback and ok markus@ dtucker@
2011-05-20use a macro to define which string options to copy between configsDamien Miller
for Match. This avoids problems caused by forgetting to keep three code locations in perfect sync and ordering "this is at once beautiful and horrible" + ok dtucker@
2011-05-20Add comment documenting what should be after the preauth check. ok djmDarren Tucker
2011-05-20the options TrustedUserCAKeys, RevokedKeysFile, AuthorizedKeysFileDamien Miller
and AuthorizedPrincipalsFile were not being correctly applied in Match blocks, despite being overridable there; ok dtucker@
2011-05-17fatal() if asked to generate a legacy ECDSA cert (these don't exist)Damien Miller
and fix the regress test that was trying to generate them :)
2011-05-15use FD_CLOEXEC consistently; patch from zion AT x96.orgDamien Miller
2011-05-13warn on unexpected key type in key_parse_private_type()Damien Miller
2011-05-11remove support for authorized_keys2; it is a relic from the early daysDamien Miller
of protocol v.2 support and has been undocumented for many years; ok markus@
2011-05-10despam debug() logs by detecting that we are trying to load a private keyDamien Miller
in key_try_load_public() and returning early; ok markus@
2011-05-08improve our behaviour when TTY allocation fails: if we are inDamien Miller
RequestTTY=auto mode (the default), then do not treat at TTY allocation error as fatal but rather just restore the local TTY to cooked mode and continue. This is more graceful on devices that never allocate TTYs. If RequestTTY is set to "yes" or "force", then failure to allocate a TTY is fatal. ok markus@
2011-05-07+.It RequestTTYJason McIntyre
2011-05-07- tweak previousJason McIntyre
- come consistency fixes ok djm
2011-05-06fix numbering; from bert.wesarg AT googlemail.comDamien Miller
2011-05-06fix dropping from previous diffDamien Miller
2011-05-06Add a RequestTTY ssh_config option to allow configuration-basedDamien Miller
control over tty allocation (like -t/-T); ok markus@
2011-05-06support negated Host matching, e.g.Damien Miller
Host *.example.org !c.example.org User mekmitasdigoat Will match "a.example.org", "b.example.org", but not "c.example.org" ok markus@
2011-05-06add a %L expansion (short-form of the local host name) for ControlPath;Damien Miller
sync some more expansions with LocalCommand; ok markus@
2011-05-06set traffic class for IPv6 traffic as we do for IPv4 TOS;Damien Miller
patch from lionel AT mamane.lu via Colin Watson in bz#1855; ok markus@
2011-05-06fix memory leak; bz#1849 ok dtucker@Damien Miller
2011-05-06mention that IPv6 addresses must be enclosed in square brackets;Damien Miller
bz#1845
2011-05-06clarify language about overriding defaults. bz#1892, from Petr CernyDarren Tucker
2011-05-05gracefully fall back when ControlPath is too large for aDamien Miller
sockaddr_un. ok markus@ as part of a larger diff
2011-05-04allow "ssh-add - < key"; feedback and ok markus@Damien Miller
2011-04-25linting this library is not helping anythingTheo de Raadt
2011-04-18certificate options are supposed to be packed in lexical order of optionDamien Miller
name (though we don't actually enforce this at present). Move one up that was out of sequence
2011-04-18tweak previous;Jason McIntyre
2011-04-17allow graceful shutdown of multiplexing: request that a mux server removesDamien Miller
its listener socket and refuse future multiplexing requests; ok markus@
2011-04-13mention valid -b sizes for ECDSA keys; bz#1862Damien Miller
2011-04-13improve wording; bz#1861Damien Miller
2011-04-12exit with 0 status on SIGTERM; bz#1879Damien Miller
2011-04-12fix -WshadowDamien Miller