[ANNOUNCEMENT] TEST RELEASE: Cygwin 2.0.0-2
Corinna Vinschen
corinna-cygwin@cygwin.com
Sun Apr 12 14:53:00 GMT 2015
On Apr 12 15:31, Achim Gratz wrote:
>
> THere seems to be a bug that causes sshd to be unable to change the new
> PTY to mode "0600" (I'm using privilege separation).
>
> ~ (2001) ll /dev/pty0 ; getfacl /dev /dev/pty0
> crw--w---- 1 ASSI Kein 136, 0 12. Apr 15:26 /dev/pty0
Hmm, works on the command line...
$ ll /dev/pty0
crw--w---- 1 corinna vinschen 136, 0 Apr 12 16:28 /dev/pty0
$ chmod 600 !$
chmod 600 /dev/pty0
$ ll /dev/pty0
crw------- 1 corinna vinschen 136, 0 Apr 12 16:28 /dev/pty0
...but I can easily reproduce it from sshd. I'll have a look this week.
> # file: /dev/pty0
> # owner: ASSI
> # group: Kein
> user::rw-
> group::rw-
> other:rw-
>
> Reverting to the 1.7.35-1 DLL gets sshd working correctly again.
> Looking at the above I've questions about the permissions: on Linux the
> PTY would be writable by the tty group, but having it writable by "None"
> is surely a mistake an getfacl doesn't seem to report anything sensible
> on PTY.
The acl(2) function is not implemented for ptys.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150412/4fe3c7ce/attachment.sig>
More information about the Cygwin
mailing list