]>
git.ipfire.org Git - thirdparty/openssh-portable.git/log
sf@openbsd.org [Fri, 6 Jul 2018 09:05:01 +0000 (09:05 +0000)]
upstream: Remove leftovers from pre-authentication compression
Support for this has been removed in 2016.
COMP_DELAYED will be renamed in a later commit.
ok markus@
OpenBSD-Commit-ID:
6a99616c832627157113fcb0cf5a752daf2e6b58
sf@openbsd.org [Fri, 6 Jul 2018 09:03:02 +0000 (09:03 +0000)]
upstream: Remove unused ssh_packet_start_compression()
ok markus@
OpenBSD-Commit-ID:
9d34cf2f59aca5422021ae2857190578187dc2b4
Darren Tucker [Fri, 6 Jul 2018 03:32:02 +0000 (13:32 +1000)]
Defer setting bufsiz in getdelim.
Do not write to bufsiz until we are sure the malloc has succeeded,
in case any callers rely on it (which they shouldn't). ok djm@
Darren Tucker [Thu, 5 Jul 2018 03:32:01 +0000 (13:32 +1000)]
Fix other callers of read_environment_file.
read_environment_file recently gained an extra argument Some platform
specific code also calls it so add the argument to those too. Fixes
build on Solaris and AIX.
djm@openbsd.org [Wed, 4 Jul 2018 13:51:45 +0000 (13:51 +0000)]
upstream: deal with API rename: match_filter_list() =>
match_filter_blacklist()
OpenBSD-Regress-ID:
2da342be913efeb51806351af906fab01ba4367f
djm@openbsd.org [Wed, 4 Jul 2018 13:51:12 +0000 (13:51 +0000)]
upstream: exercise new expansion behaviour of
PubkeyAcceptedKeyTypes and, by proxy, test kex_assemble_names()
ok markus@
OpenBSD-Regress-ID:
292978902e14d5729aa87e492dd166c842f72736
djm@openbsd.org [Tue, 3 Jul 2018 13:53:26 +0000 (13:53 +0000)]
upstream: add a comment that could have saved me 45 minutes of wild
goose chasing
OpenBSD-Regress-ID:
d469b29ffadd3402c090e21b792d627d46fa5297
djm@openbsd.org [Wed, 4 Jul 2018 13:49:31 +0000 (13:49 +0000)]
upstream: repair PubkeyAcceptedKeyTypes (and friends) after RSA
signature work - returns ability to add/remove/specify algorithms by
wildcard.
Algorithm lists are now fully expanded when the server/client configs
are finalised, so errors are reported early and the config dumps
(e.g. "ssh -G ...") now list the actual algorithms selected.
Clarify that, while wildcards are accepted in algorithm lists, they
aren't full pattern-lists that support negation.
(lots of) feedback, ok markus@
OpenBSD-Commit-ID:
a8894c5c81f399a002f02ff4fe6b4fa46b1f3207
djm@openbsd.org [Tue, 3 Jul 2018 11:43:49 +0000 (11:43 +0000)]
upstream: some magic for RSA-SHA2 checks
OpenBSD-Regress-ID:
e5a9b11368ff6d86e7b25ad10ebe43359b471cd4
Damien Miller [Tue, 3 Jul 2018 13:27:11 +0000 (23:27 +1000)]
depend
djm@openbsd.org [Tue, 3 Jul 2018 13:20:25 +0000 (13:20 +0000)]
upstream: some finesse to fix RSA-SHA2 certificate authentication
for certs hosted in ssh-agent
OpenBSD-Commit-ID:
e5fd5edd726137dda2d020e1cdebc464110a010f
djm@openbsd.org [Tue, 3 Jul 2018 13:07:58 +0000 (13:07 +0000)]
upstream: check correct variable; unbreak agent keys
OpenBSD-Commit-ID:
c36981fdf1f3ce04966d3310826a3e1e6233d93e
djm@openbsd.org [Tue, 3 Jul 2018 11:42:12 +0000 (11:42 +0000)]
upstream: crank version number to 7.8; needed for new compat flag
for prior version; part of RSA-SHA2 strictification, ok markus@
OpenBSD-Commit-ID:
84a11fc0efd2674c050712336b5093f5d408e32b
djm@openbsd.org [Tue, 3 Jul 2018 11:39:54 +0000 (11:39 +0000)]
upstream: Improve strictness and control over RSA-SHA2 signature
In ssh, when an agent fails to return a RSA-SHA2 signature when
requested and falls back to RSA-SHA1 instead, retry the signature to
ensure that the public key algorithm sent in the SSH_MSG_USERAUTH
matches the one in the signature itself.
In sshd, strictly enforce that the public key algorithm sent in the
SSH_MSG_USERAUTH message matches what appears in the signature.
Make the sshd_config PubkeyAcceptedKeyTypes and
HostbasedAcceptedKeyTypes options control accepted signature algorithms
(previously they selected supported key types). This allows these
options to ban RSA-SHA1 in favour of RSA-SHA2.
Add new signature algorithms "rsa-sha2-256-cert-v01@openssh.com" and
"rsa-sha2-512-cert-v01@openssh.com" to force use of RSA-SHA2 signatures
with certificate keys.
feedback and ok markus@
OpenBSD-Commit-ID:
c6e9f6d45eed8962ad502d315d7eaef32c419dde
djm@openbsd.org [Tue, 3 Jul 2018 10:59:35 +0000 (10:59 +0000)]
upstream: allow sshd_config PermitUserEnvironment to accept a
pattern-list of whitelisted environment variable names in addition to yes|no.
bz#1800, feedback and ok markus@
OpenBSD-Commit-ID:
77dc2b468e0bf04b53f333434ba257008a1fdf24
millert@openbsd.org [Tue, 26 Jun 2018 11:23:59 +0000 (11:23 +0000)]
upstream: Fix "WARNING: line 6 disappeared in /etc/moduli, giving up"
when choosing a prime. An extra increment of linenum snuck in as part of the
conversion to getline(). OK djm@ markus@
OpenBSD-Commit-ID:
0019225cb52ed621b71cd9f19ee2e78e57e3dd38
dtucker@openbsd.org [Mon, 2 Jul 2018 14:13:30 +0000 (14:13 +0000)]
upstream: One ampersand is enough to backgroud an process. OpenBSD
doesn't seem to mind, but some platforms in -portable object to the second.
OpenBSD-Regress-ID:
d6c3e404871764343761dc25c3bbe29c2621ff74
Darren Tucker [Mon, 2 Jul 2018 11:16:58 +0000 (21:16 +1000)]
Add implementation of getline.
Add getline for the benefit of platforms that don't have it. Sourced
from NetBSD (OpenBSD's implementation is a little too chummy with the
internals of FILE).
djm@openbsd.org [Tue, 26 Jun 2018 02:02:36 +0000 (02:02 +0000)]
upstream: whitespace
OpenBSD-Commit-ID:
9276951caf4daf555f6d262e95720e7f79244572
djm@openbsd.org [Mon, 25 Jun 2018 22:28:33 +0000 (22:28 +0000)]
upstream: fix NULL dereference in open_listen_match_tcpip()
OpenBSD-Commit-ID:
c968c1d29e392352383c0f9681fcc1e93620c4a9
jmc@openbsd.org [Tue, 19 Jun 2018 05:36:57 +0000 (05:36 +0000)]
djm@openbsd.org [Tue, 19 Jun 2018 03:02:17 +0000 (03:02 +0000)]
upstream: test PermitListen with bare port numbers
OpenBSD-Regress-ID:
4b50a02dfb0ccaca08247f3877c444126ba901b3
djm@openbsd.org [Tue, 19 Jun 2018 02:59:41 +0000 (02:59 +0000)]
upstream: allow bare port numbers to appear in PermitListen directives,
e.g.
PermitListen 2222 8080
is equivalent to:
PermitListen *:2222 *:8080
Some bonus manpage improvements, mostly from markus@
"looks fine" markus@
OpenBSD-Commit-ID:
6546b0cc5aab7f53d65ad0a348ca0ae591d6dd24
djm@openbsd.org [Fri, 15 Jun 2018 07:01:11 +0000 (07:01 +0000)]
upstream: invalidate supplemental group cache used by
temporarily_use_uid() when the target uid differs; could cause failure to
read authorized_keys under some configurations. patch by Jakub Jelen via
bz2873; ok dtucker, markus
OpenBSD-Commit-ID:
48a345f0ee90f6c465a078eb5e89566b23abd8a1
djm@openbsd.org [Sun, 10 Jun 2018 23:45:41 +0000 (23:45 +0000)]
upstream: unbreak SendEnv; patch from tb@
OpenBSD-Commit-ID:
fc808daced813242563b80976e1478de95940056
jmc@openbsd.org [Sat, 9 Jun 2018 06:36:31 +0000 (06:36 +0000)]
upstream: sort previous;
OpenBSD-Commit-ID:
27d80d8b8ca99bc33971dee905e8ffd0053ec411
djm@openbsd.org [Sat, 9 Jun 2018 03:18:11 +0000 (03:18 +0000)]
upstream: slightly better wording re handing of $TERM, from Jakub
Jelen via bz2386
OpenBSD-Commit-ID:
14bea3f069a93c8be66a7b97794255a91fece964
djm@openbsd.org [Sat, 9 Jun 2018 03:03:10 +0000 (03:03 +0000)]
upstream: add a SetEnv directive for sshd_config to allow an
administrator to explicitly specify environment variables set in sessions
started by sshd. These override the default environment and any variables set
by user configuration (PermitUserEnvironment, etc), but not the SSH_*
variables set by sshd itself.
ok markus@
OpenBSD-Commit-ID:
b6a96c0001ccd7dd211df6cae9e961c20fd718c0
djm@openbsd.org [Sat, 9 Jun 2018 03:01:12 +0000 (03:01 +0000)]
upstream: add a SetEnv directive to ssh_config that allows setting
environment variables for the remote session (subject to the server accepting
them)
refactor SendEnv to remove the arbitrary limit of variable names.
ok markus@
OpenBSD-Commit-ID:
cfbb00d9b0e10c1ffff1d83424351fd961d1f2be
djm@openbsd.org [Sat, 9 Jun 2018 02:58:02 +0000 (02:58 +0000)]
upstream: reorder child environment preparation so that variables
read from ~/.ssh/environment (if enabled) do not override SSH_* variables set
by the server.
OpenBSD-Commit-ID:
59f9d4c213cdcef2ef21f4b4ae006594dcf2aa7a
djm@openbsd.org [Fri, 8 Jun 2018 03:35:36 +0000 (03:35 +0000)]
upstream: fix incorrect expansion of %i in
load_public_identity_files(); reported by Roumen Petrov
OpenBSD-Commit-ID:
a827289e77149b5e0850d72a350c8b0300e7ef25
djm@openbsd.org [Fri, 8 Jun 2018 01:55:40 +0000 (01:55 +0000)]
upstream: fix some over-long lines and __func__ up some debug
messages
OpenBSD-Commit-ID:
c70a60b4c8207d9f242fc2351941ba50916bb267
jmc@openbsd.org [Thu, 7 Jun 2018 11:26:14 +0000 (11:26 +0000)]
upstream: tweak previous;
OpenBSD-Commit-ID:
f98f16af10b28e24bcecb806cb71ea994b648fd6
Darren Tucker [Fri, 8 Jun 2018 07:43:36 +0000 (17:43 +1000)]
Remove ability to override $LD.
Since autoconf always uses $CC to link C programs, allowing users to
override LD caused mismatches between what LD_LINK_IFELSE thought worked
and what ld thought worked. If you do need to do this kind of thing you
need to set a compiler flag such as gcc's -fuse-ld in LDFLAGS.
Darren Tucker [Fri, 8 Jun 2018 03:55:59 +0000 (13:55 +1000)]
Better detection of unsupported compiler options.
Should prevent "unsupported -Wl,-z,retpoline" warnings during linking.
ok djm@
djm@openbsd.org [Thu, 7 Jun 2018 14:29:43 +0000 (14:29 +0000)]
upstream: test the correct configuration option name
OpenBSD-Regress-ID:
492279ea9f65657f97a970e0e7c7fd0b339fee23
djm@openbsd.org [Thu, 7 Jun 2018 09:26:42 +0000 (09:26 +0000)]
upstream: some permitlisten fixes from markus@ that I missed in my
insomnia-fueled commits last night
OpenBSD-Commit-ID:
26f23622e928996086e85b1419cc1c0f136e359c
djm@openbsd.org [Thu, 7 Jun 2018 04:46:34 +0000 (04:46 +0000)]
upstream: permitlisten/PermitListen unit test from Markus
OpenBSD-Regress-ID:
ab12eb42f0e14926980441cf7c058a6d1d832ea5
djm@openbsd.org [Thu, 7 Jun 2018 04:31:51 +0000 (04:31 +0000)]
upstream: fix regression caused by recent permitlisten option commit:
authorized_keys lines that contained permitopen/permitlisten were being
treated as invalid.
OpenBSD-Commit-ID:
7ef41d63a5a477b405d142dc925b67d9e7aaa31b
markus@openbsd.org [Wed, 6 Jun 2018 18:29:18 +0000 (18:29 +0000)]
upstream: switch config file parsing to getline(3) as this avoids
static limits noted by gerhard@; ok dtucker@, djm@
OpenBSD-Commit-ID:
6d702eabef0fa12e5a1d75c334a8c8b325298b5c
djm@openbsd.org [Wed, 6 Jun 2018 18:25:33 +0000 (18:25 +0000)]
upstream: regress test for PermitOpen
OpenBSD-Regress-ID:
ce8b5f28fc039f09bb297fc4a92319e65982ddaf
djm@openbsd.org [Wed, 6 Jun 2018 18:24:15 +0000 (18:24 +0000)]
upstream: man bits for permitlisten authorized_keys option
OpenBSD-Commit-ID:
86910af8f781a4ac5980fea125442eb25466dd78
djm@openbsd.org [Wed, 6 Jun 2018 18:24:00 +0000 (18:24 +0000)]
upstream: man bits for PermitListen
OpenBSD-Commit-ID:
35b200cba4e46a16a4db6a80ef11838ab0fad67c
djm@openbsd.org [Wed, 6 Jun 2018 18:23:32 +0000 (18:23 +0000)]
upstream: permitlisten option for authorized_keys; ok markus@
OpenBSD-Commit-ID:
8650883018d7aa893173d703379e4456a222c672
djm@openbsd.org [Wed, 6 Jun 2018 18:22:41 +0000 (18:22 +0000)]
upstream: Add a PermitListen directive to control which server-side
addresses may be listened on when the client requests remote forwarding (ssh
-R).
This is the converse of the existing PermitOpen directive and this
includes some refactoring to share much of its implementation.
feedback and ok markus@
OpenBSD-Commit-ID:
15a931238c61a3f2ac74ea18a98c933e358e277f
Darren Tucker [Wed, 6 Jun 2018 06:04:29 +0000 (16:04 +1000)]
Use ssh-keygen -A to generate missing host keys.
Instead of testing for each specific key type, use ssh-keygen -A to
generate any missing host key types.
jmc@openbsd.org [Fri, 1 Jun 2018 06:23:10 +0000 (06:23 +0000)]
upstream: add missing punctuation after %i in ssh_config.5, and
make the grammatical format in sshd_config.5 match that in ssh_config.5;
OpenBSD-Commit-ID:
e325663b9342f3d556e223e5306e0d5fa1a74fa0
jmc@openbsd.org [Fri, 1 Jun 2018 05:52:26 +0000 (05:52 +0000)]
upstream: oops - further adjustment to text neccessary;
OpenBSD-Commit-ID:
23585576c807743112ab956be0fb3c786bdef025
jmc@openbsd.org [Fri, 1 Jun 2018 05:50:18 +0000 (05:50 +0000)]
upstream: %U needs to be escaped; tweak text;
OpenBSD-Commit-ID:
30887b73ece257273fb619ab6f4e86dc92ddc15e
dtucker@openbsd.org [Fri, 1 Jun 2018 04:31:48 +0000 (04:31 +0000)]
upstream: Apply umask to all incoming files and directories not
just files. This makes sure it gets applied to directories too, and prevents
a race where files get chmodded after creation. bz#2839, ok djm@
OpenBSD-Commit-ID:
3168ee6c7c39093adac4fd71039600cfa296203b
djm@openbsd.org [Fri, 1 Jun 2018 03:52:37 +0000 (03:52 +0000)]
upstream: Adapt to extra default verboisity from ssh-keygen when
searching for and hashing known_hosts entries in a single operation
(ssh-keygen -HF ...) Patch from Anton Kremenetsky
OpenBSD-Regress-ID:
519585a4de35c4611285bd6a7272766c229b19dd
djm@openbsd.org [Tue, 22 May 2018 00:22:49 +0000 (00:22 +0000)]
upstream: Add TEST_SSH_FAIL_FATAL variable, to force all failures
to instantly abort the test. Useful in capturing clean logs for individual
failure cases.
OpenBSD-Regress-ID:
feba18cf338c2328b9601bd4093cabdd9baa3af1
dtucker@openbsd.org [Fri, 11 May 2018 03:51:06 +0000 (03:51 +0000)]
upstream: Clean up comment.
OpenBSD-Regress-ID:
6adb35f384d447e7dcb9f170d4f0d546d3973e10
djm@openbsd.org [Fri, 1 Jun 2018 04:21:29 +0000 (04:21 +0000)]
upstream: whitespace
OpenBSD-Commit-ID:
e5edb5e843ddc9b73a8e46518899be41d5709add
djm@openbsd.org [Fri, 1 Jun 2018 04:05:29 +0000 (04:05 +0000)]
upstream: make ssh_remote_ipaddr() capable of being called after
the ssh->state has been torn down; bz#2773
OpenBSD-Commit-ID:
167f12523613ca3d16d7716a690e7afa307dc7eb
djm@openbsd.org [Fri, 1 Jun 2018 03:51:34 +0000 (03:51 +0000)]
upstream: return correct exit code when searching for and hashing
known_hosts entries in a single operation (ssh-keygen -HF hostname); bz2772
Report and fix from Anton Kremenetsky
OpenBSD-Commit-ID:
ac10ca13eb9bb0bc50fcd42ad11c56c317437b58
djm@openbsd.org [Fri, 1 Jun 2018 03:33:53 +0000 (03:33 +0000)]
upstream: make UID available as a %-expansion everywhere that the
username is available currently. In the client this is via %i, in the server
%U (since %i was already used in the client in some places for this, but used
for something different in the server); bz#2870, ok dtucker@
OpenBSD-Commit-ID:
c7e912b0213713316cb55db194b3a6415b3d4b95
djm@openbsd.org [Fri, 1 Jun 2018 03:11:49 +0000 (03:11 +0000)]
upstream: prefer argv0 to "ssh" when re-executing ssh for ProxyJump
directive; bz2831, feedback and ok dtucker@
OpenBSD-Commit-ID:
3cec709a131499fbb0c1ea8a0a9e0b0915ce769e
djm@openbsd.org [Fri, 25 May 2018 07:11:01 +0000 (07:11 +0000)]
upstream: Do not ban PTY allocation when a sshd session is restricted
because the user password is expired as it breaks password change dialog.
regression in openssh-7.7 reported by Daniel Wagner
OpenBSD-Commit-ID:
9fc09c584c6f1964b00595e3abe7f83db4d90d73
djm@openbsd.org [Fri, 25 May 2018 04:25:46 +0000 (04:25 +0000)]
upstream: Fix return value confusion in several functions (readdir,
download and fsync). These should return -1 on error, not a sftp status code.
patch from Petr Cerny in bz#2871
OpenBSD-Commit-ID:
651aa0220ad23c9167d9297a436162d741f97a09
dtucker@openbsd.org [Fri, 25 May 2018 03:20:59 +0000 (03:20 +0000)]
upstream: If select() fails in ssh_packet_read_seqnr go directly to
the error path instead of trying to read from the socket on the way out,
which resets errno and causes the true error to be misreported. ok djm@
OpenBSD-Commit-ID:
2614edaadbd05a957aa977728aa7a030af7c6f0a
Damien Miller [Fri, 25 May 2018 03:36:58 +0000 (13:36 +1000)]
Permit getuid()/geteuid() syscalls.
Requested for Linux/s390; patch from Eduardo Barretto via bz#2752;
ok dtucker
djm@openbsd.org [Tue, 22 May 2018 00:13:26 +0000 (00:13 +0000)]
upstream: support ProxyJump=none to disable ProxyJump
functionality; bz#2869 ok dtucker@
OpenBSD-Commit-ID:
1c06ee08eb78451b5837fcfd8cbebc5ff3a67a01
jmc@openbsd.org [Tue, 15 May 2018 05:40:11 +0000 (05:40 +0000)]
upstream: correct keyowrd name (permitemptypasswords); from brendan
macdonell
OpenBSD-Commit-ID:
ef1bdbc936b2ea693ee37a4c20a94d4d43f5fda3
djm@openbsd.org [Fri, 11 May 2018 04:01:11 +0000 (04:01 +0000)]
upstream: Emphasise that -w implicitly sets Tunnel=point-to-point
and that users should specify an explicit Tunnel directive if they don't want
this. bz#2365.
OpenBSD-Commit-ID:
1a8d9c67ae213ead180481900dbbb3e04864560d
Damien Miller [Mon, 14 May 2018 04:40:08 +0000 (14:40 +1000)]
sync fmt_scaled.c
revision 1.17
date: 2018/05/14 04:39:04; author: djm; state: Exp; lines: +5 -2;
commitid: 53zY8GjViUBnWo8Z;
constrain fractional part to [0-9] (less confusing to static analysis); ok ian@
Damien Miller [Fri, 11 May 2018 04:04:40 +0000 (14:04 +1000)]
fix key-options.sh on platforms without openpty(3)
Skip the pty tests if the platform lacks openpty(3) and has to chown(2)
the pty device explicitly. This typically requires root permissions that
this test lacks.
bz#2856 ok dtucker@
djm@openbsd.org [Fri, 11 May 2018 03:38:51 +0000 (03:38 +0000)]
upstream: implement EMFILE mitigation for ssh-agent: remember the
fd rlimit and stop accepting new connections when it is exceeded (with some
grace). Accept is resumed when enough connections are closed.
bz#2576. feedback deraadt; ok dtucker@
OpenBSD-Commit-ID:
6a85d9cec7b85741961e7116a49f8dae777911ea
dtucker@openbsd.org [Fri, 11 May 2018 03:22:55 +0000 (03:22 +0000)]
upstream: Explicit cast when snprintf'ing an uint64. Prevents
warnings on platforms where int64 is long not long long. ok djm@
OpenBSD-Commit-ID:
9c5359e2fbfce11dea2d93f7bc257e84419bd001
bluhm@openbsd.org [Thu, 26 Apr 2018 14:47:03 +0000 (14:47 +0000)]
upstream: Since the previous commit, ssh regress test sftp-chroot was
failing. The sftp program terminated with the wrong exit code as sftp called
fatal() instad of exit(0). So when the sigchld handler waits for the child,
remember that it was found. Then don't expect that main() can wait again. OK
dtucker@
OpenBSD-Commit-ID:
bfafd940c0de5297940c71ddf362053db0232266
Darren Tucker [Sun, 29 Apr 2018 07:54:12 +0000 (17:54 +1000)]
Use includes.h instead of config.h.
This ensures it picks up the definition of DEF_WEAK, the lack of which
can cause compile errors in some cases (eg modern AIX). From
michael at felt.demon.nl.
Darren Tucker [Wed, 18 Apr 2018 23:53:14 +0000 (09:53 +1000)]
Omit 3des-cbc if OpenSSL built without DES.
Patch from hongxu.jia at windriver.com, ok djm@
djm@openbsd.org [Mon, 16 Apr 2018 22:50:44 +0000 (22:50 +0000)]
upstream: Disable SSH2_MSG_DEBUG messages for Twisted Conch clients
without version numbers since they choke on them under some circumstances.
https://twistedmatrix.com/trac/ticket/9422 via Colin Watson
Newer Conch versions have a version number in their ident string and
handle debug messages okay. https://twistedmatrix.com/trac/ticket/9424
OpenBSD-Commit-ID:
6cf7be262af0419c58ddae11324d9c0dc1577539
djm@openbsd.org [Sat, 14 Apr 2018 21:50:41 +0000 (21:50 +0000)]
upstream: don't free the %C expansion, it's used later for
LocalCommand
OpenBSD-Commit-ID:
857b5cb37b2d856bfdfce61289a415257a487fb1
djm@openbsd.org [Fri, 13 Apr 2018 05:04:12 +0000 (05:04 +0000)]
upstream: notify user immediately when underlying ssh process dies;
patch from Thomas Kuthan in bz2719; ok dtucker@
OpenBSD-Commit-ID:
78fac88c2f08054d1fc5162c43c24162b131cf78
Darren Tucker [Fri, 13 Apr 2018 06:23:57 +0000 (16:23 +1000)]
Allow nanosleep in preauth privsep child.
The new timing attack mitigation code uses nanosleep in the preauth
codepath, allow in systrace andbox too.
Darren Tucker [Fri, 13 Apr 2018 06:06:29 +0000 (16:06 +1000)]
Allow nanosleep in preauth privsep child.
The new timing attack mitigation code uses nanosleep in the preauth
codepath, allow in sandbox.
dtucker@openbsd.org [Fri, 13 Apr 2018 03:57:26 +0000 (03:57 +0000)]
upstream: Defend against user enumeration timing attacks. This
establishes a minimum time for each failed authentication attempt (5ms) and
adds a per-user constant derived from a host secret (0-4ms). Based on work
by joona.kannisto at tut.fi, ok markus@ djm@.
OpenBSD-Commit-ID:
b7845b355bb7381703339c8fb0e57e81a20ae5ca
Darren Tucker [Fri, 13 Apr 2018 03:43:55 +0000 (13:43 +1000)]
Using "==" in shell tests is not portable.
Patch from rsbecker at nexbridge.com.
Damien Miller [Fri, 13 Apr 2018 03:38:06 +0000 (13:38 +1000)]
Fix tunnel forwarding broken in 7.7p1
bz2855, ok dtucker@
Damien Miller [Fri, 13 Apr 2018 03:31:42 +0000 (13:31 +1000)]
prefer to use getrandom() for PRNG seeding
Only applies when built --without-openssl. Thanks Jann Horn for
reminder.
Darren Tucker [Fri, 13 Apr 2018 03:13:33 +0000 (13:13 +1000)]
Revert $REGRESSTMP changes.
Revert
3fd2d229 and subsequent changes as they turned out to be a
portability hassle.
Damien Miller [Tue, 10 Apr 2018 00:19:02 +0000 (10:19 +1000)]
Many typo fixes from Karsten Weiss
Spotted using https://github.com/lucasdemarchi/codespell
djm@openbsd.org [Tue, 10 Apr 2018 00:14:10 +0000 (00:14 +0000)]
upstream: more typos spotted by Karsten Weiss using codespell
OpenBSD-Regress-ID:
d906a2aea0663810a658b7d0bc61a1d2907d4d69
djm@openbsd.org [Tue, 10 Apr 2018 00:13:27 +0000 (00:13 +0000)]
upstream: make this a bit more portable-friendly
OpenBSD-Regress-ID:
62f7b9e055e8dfaab92b3825f158beeb4ca3f963
djm@openbsd.org [Tue, 10 Apr 2018 00:10:49 +0000 (00:10 +0000)]
upstream: lots of typos in comments/docs. Patch from Karsten Weiss
after checking with codespell tool
(https://github.com/lucasdemarchi/codespell)
OpenBSD-Commit-ID:
373222f12d7ab606598a2d36840c60be93568528
djm@openbsd.org [Mon, 9 Apr 2018 23:54:49 +0000 (23:54 +0000)]
upstream: don't kill ssh-agent's listening socket entriely if we
fail to accept a connection; bz#2837, patch from Lukas Kuster
OpenBSD-Commit-ID:
52413f5069179bebf30d38f524afe1a2133c738f
tj@openbsd.org [Mon, 9 Apr 2018 20:41:22 +0000 (20:41 +0000)]
upstream: the UseLogin option was removed, so remove it here too.
ok dtucker
OpenBSD-Commit-ID:
7080be73a64d68e21f22f5408a67a0ba8b1b6b06
jmc@openbsd.org [Sun, 8 Apr 2018 07:36:02 +0000 (07:36 +0000)]
upstream: tweak previous;
OpenBSD-Commit-ID:
2b9c23022ea7b9dddb62864de4e906000f9d7474
jmc@openbsd.org [Sat, 7 Apr 2018 13:50:10 +0000 (13:50 +0000)]
upstream: tweak previous;
OpenBSD-Commit-ID:
38e347b6f8e888f5e0700d01abb1eba7caa154f9
djm@openbsd.org [Fri, 6 Apr 2018 13:02:39 +0000 (13:02 +0000)]
upstream: Allow "SendEnv -PATTERN" to clear environment variables
previously labeled for sendind. bz#1285 ok dtucker@
OpenBSD-Commit-ID:
f6fec9e3d0f366f15903094fbe1754cb359a0df9
djm@openbsd.org [Fri, 6 Apr 2018 04:15:45 +0000 (04:15 +0000)]
upstream: relax checking of authorized_keys environment="..."
options to allow underscores in variable names (regression introduced in
7.7). bz2851, ok deraadt@
OpenBSD-Commit-ID:
69690ffe0c97ff393f2c76d25b4b3d2ed4e4ac9c
djm@openbsd.org [Fri, 6 Apr 2018 03:51:27 +0000 (03:51 +0000)]
upstream: add a couple of missed options to the config dump; patch
from Jakub Jelen via bz2835
OpenBSD-Commit-ID:
5970adadf6ef206bee0dddfc75d24c2019861446
djm@openbsd.org [Fri, 6 Apr 2018 03:34:27 +0000 (03:34 +0000)]
upstream: ssh does not accept -oInclude=... on the commandline, the
Include keyword is for configuration files only. bz#2840, patch from Jakub
Jelen
OpenBSD-Commit-ID:
32d052b4a7a7f22df35fe3f71c368c02b02cacb0
djm@openbsd.org [Thu, 5 Apr 2018 22:54:28 +0000 (22:54 +0000)]
upstream: We don't offer CBC cipher by default any more. Spotted by
Renaud Allard (via otto@)
OpenBSD-Commit-ID:
a559b1eef741557dd959ae378b665a2977d92dca
job@openbsd.org [Wed, 4 Apr 2018 15:12:17 +0000 (15:12 +0000)]
upstream: Update default IPQoS in ssh(1), sshd(8) to DSCP AF21 for
interactive and CS1 for bulk
AF21 was selected as this is the highest priority within the low-latency
service class (and it is higher than what we have today). SSH is elastic
and time-sensitive data, where a user is waiting for a response via the
network in order to continue with a task at hand. As such, these flows
should be considered foreground traffic, with delays or drops to such
traffic directly impacting user-productivity.
For bulk SSH traffic, the CS1 "Lower Effort" marker was chosen to enable
networks implementing a scavanger/lower-than-best effort class to
discriminate scp(1) below normal activities, such as web surfing. In
general this type of bulk SSH traffic is a background activity.
An advantage of using "AF21" for interactive SSH and "CS1" for bulk SSH
is that they are recognisable values on all common platforms (IANA
https://www.iana.org/assignments/dscp-registry/dscp-registry.xml), and
for AF21 specifically a definition of the intended behavior exists
https://tools.ietf.org/html/rfc4594#section-4.7 in addition to the definition
of the Assured Forwarding PHB group https://tools.ietf.org/html/rfc2597, and
for CS1 (Lower Effort) there is https://tools.ietf.org/html/rfc3662
The first three bits of "AF21" map to the equivalent IEEEE 802.1D PCP, IEEE
802.11e, MPLS EXP/CoS and IP Precedence value of 2 (also known as "Immediate",
or "AC_BE"), and CS1's first 3 bits map to IEEEE 802.1D PCP, IEEE 802.11e,
MPLS/CoS and IP Precedence value 1 ("Background" or "AC_BK").
OK deraadt@, "no objection" djm@
OpenBSD-Commit-ID:
d11d2a4484f461524ef0c20870523dfcdeb52181
dtucker@openbsd.org [Tue, 3 Apr 2018 02:14:08 +0000 (02:14 +0000)]
upstream: Import regenerated moduli file.
OpenBSD-Commit-ID:
1de0e85522051eb2ffa00437e1885e9d7b3e0c2e
dtucker@openbsd.org [Fri, 6 Apr 2018 04:18:35 +0000 (04:18 +0000)]
upstream: Add test for username options parsing order, prompted by
bz#2849.
OpenBSD-Regress-ID:
6985cd32f38596882a3ac172ff8c510693b65283
Damien Miller [Fri, 6 Apr 2018 04:11:44 +0000 (14:11 +1000)]
Expose SSH_AUTH_INFO_0 to PAM auth modules
bz#2408, patch from Radoslaw Ejsmont; ok dtucker@
Darren Tucker [Tue, 3 Apr 2018 02:18:00 +0000 (12:18 +1000)]
Import regenerated moduli file.