Bug 2184 - sshd_config Match block clarification
Summary: sshd_config Match block clarification
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: 6.4p1
Hardware: All All
: P5 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks: V_6_6
  Show dependency treegraph
 
Reported: 2013-12-13 03:49 AEDT by jmales
Modified: 2014-10-08 08:00 AEDT (History)
2 users (show)

See Also:


Attachments
man page update in diff format (532 bytes, patch)
2013-12-13 03:49 AEDT, jmales
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jmales 2013-12-13 03:49:40 AEDT
Created attachment 2388 [details]
man page update in diff format

The man 5 sshd_config fails to clarify what happens when multiple
qualifying Match blocks specify the same configuration option.  This
patch updates the man page to do so.

I tested the behaviour and described what was empirically observed.  I
can only assume this is the desired behaviour.

This is a first attempt.  If format or something else is off, let me
know; I'll be happy to adjust.

----
Match
Introduces a conditional block.  If all of the criteria on the Match
line are satisfied, the keywords on the following lines override those
set in the global section of the config file, until either another
Match line or the end of the file. If multiple Match blocks are
satisfied, and a keyword is specified multiple times, the first Match
block instance of the keyword is honored.
Comment 1 Darren Tucker 2013-12-19 11:34:02 AEDT
Looks reasonable.  I might tweak the wording a little.

FYI: stylistically, sentences should start on a new line (it's not a problem, I'll change that).

Thanks.
Comment 2 Damien Miller 2014-02-06 10:17:42 AEDT
Retarget incomplete bugs / feature requests to 6.6 release
Comment 3 Damien Miller 2014-02-06 10:19:32 AEDT
Retarget incomplete bugs / feature requests to 6.6 release
Comment 4 Damien Miller 2014-02-28 12:39:23 AEDT
Similar patch applied - will be in OpenSSH-6.6; due soon.
Comment 5 Damien Miller 2014-10-08 08:00:32 AEDT
Close all bugs left open from 6.6 and 6.7 releases.