Chrootdirectory / Chroot - not working in OpenSSH sftp directives in \etc\sshd_config or using a custom shell script - MS OpenSSH build has a workaround

2025-03-12 Thread Peter Board via Cygwin
Hi Cygwin Developers, In the source code for the session.c Cygwin is using the standard OpenSSH source code, which checks for both the user ID of 0 and a permissions for who can write to the new folder. Chroot mounting test that I can't get Cygwin to pass if (st.st_uid != 0 || (st.st_mode & 022)

Re: cygwin 3.6.0: No signals received after swapcontext() is used

2025-03-12 Thread Corinna Vinschen via Cygwin
On Mar 12 16:30, Corinna Vinschen via Cygwin wrote: > Theoretically, a small update to sigdelayed() would fix the issue: ather > then poing the original IP from the signal stack after calling the Make that: Theoretically, a small update to sigdelayed() would fix the issue: *R*ather then po*p*

Re: cygwin 3.6.0: No signals received after swapcontext() is used

2025-03-12 Thread Corinna Vinschen via Cygwin
On Mar 11 12:32, Christian Franke via Cygwin wrote: > Corinna Vinschen via Cygwin wrote: > > It's not quite clear to me why signal handling should be broken if > > setcontext is used inside a signal handler. The incyg flag is false > > when running the signal handler and that's correct. Theoretic

Re: cygwin 3.6.0: No signals received after swapcontext() is used

2025-03-12 Thread Corinna Vinschen via Cygwin
On Mar 12 16:30, Corinna Vinschen via Cygwin wrote: > On Mar 11 12:32, Christian Franke via Cygwin wrote: > > Corinna Vinschen via Cygwin wrote: > > > It's not quite clear to me why signal handling should be broken if > > > setcontext is used inside a signal handler. The incyg flag is false > > >

Re: cygwin 3.6.0: No signals received after swapcontext() is used

2025-03-12 Thread Corinna Vinschen via Cygwin
On Mar 12 17:06, Corinna Vinschen via Cygwin wrote: > On Mar 12 16:30, Corinna Vinschen via Cygwin wrote: > > On Mar 11 12:32, Christian Franke via Cygwin wrote: > > > The attached testcase should test the following use cases of setcontext: > > > - call from regular user space > > > - call from a s

Re: Chrootdirectory / Chroot - not working in OpenSSH sftp directives in \etc\sshd_config or using a custom shell script - MS OpenSSH build has a workaround

2025-03-12 Thread Corinna Vinschen via Cygwin
On Mar 12 06:40, Peter Board via Cygwin wrote: > Hi Cygwin Developers, > > In the source code for the session.c Cygwin is using the standard > OpenSSH source code, which checks for both the user ID of 0 and a > permissions for who can write to the new folder. > Chroot mounting test that I can't ge

Access to cygwin.com is blocked to El Salvador?

2025-03-12 Thread Vladimir Hidalgo via Cygwin
Hi all, seems like access to cygwin.com is now blocked to El Salvador? I had to use a VPN to download the installer. -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: h

Re: cygwin 3.6.0: No signals received after swapcontext() is used

2025-03-12 Thread Jim Reisert AD1C via Cygwin
Corinna wrote: > Just pushed. Try cygwin-3.6.0-0.430.ga942476236b5 in a bit. I could not get an xterm to come up using cygwin-3.6.0-0.429. But it works again using cygwin-3.6.0-0.430. I wonder if it was the swapcontext () problem or something else. This was on Windows 11. -- Jim Reisert AD1