rlimit sandbox on cygwin

Darren Tucker dtucker at zip.com.au
Fri Jul 6 10:23:15 EST 2012


On Tue, Jul 03, 2012 at 04:48:15PM +0200, Corinna Vinschen wrote:
[...]
> Please use the latest one.  We don't support sshd on any pre 1.7
> version of Cygwin anymore.

OK, I've updated it.  (I didn't set out to deliberately keep it old, I'd
just had not particular reason to update it.)

> A function equivalent to setrlimit(RLIMIT_FSIZE) is not supported
> by Windows.  Therefore setting or checking this limit doesn't make
> much sense.
> 
> > On second thought, it might be better to explicitly test RLIMIT_FSIZE in
> > configure, like so.
> 
> Sounds good to me.

Done.  It'll test setrlimit(RLIMIT_FSIZE) at configure time, and if that
fails we'll simply skip it at runtime.  This means that
UsePriviligeSeparation=sandbox now works on Cygwin (with the
weak-but-better-than-nothing rlimit sandbox).

Thanks.

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.


More information about the openssh-unix-dev mailing list