[augeas-devel] Re: sshd_config lens patch

David Lutterkort lutter at redhat.com
Wed Sep 10 00:45:14 UTC 2008


On Tue, 2008-09-09 at 13:38 +0200, Dominique Dumont wrote:
> Btw, could we write sshd lens as :
> 
>   let lns = (comment | accept_env | allow_groups | allow_users
>           | deny_groups | subsystem | deny_users | macs 
>           | other_entry ) * . match* . end_of_file
> 
> So that we would be sure that Match entries are the last in the
> sshd_config file ?
> 
> If this is possible, augeas could ensure that added entries in
> sshd_config are not written after the Match block.

That should be already the case with the way the lens is now .. if you
have a non-Match after the matches, that should produce an error, but
doesn't. Clearly a bug [1].

David

[1] https://fedorahosted.org/augeas/ticket/22





More information about the augeas-devel mailing list