public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.0.0-3
@ 2015-04-12 19:23 Corinna Vinschen
  2015-04-12 21:19 ` Bryan Berns
  0 siblings, 1 reply; 23+ messages in thread
From: Corinna Vinschen @ 2015-04-12 19:23 UTC (permalink / raw)
  To: cygwin

Hi Cygwin friends and users,


New 2.0.0-0.3 test release.  It's supposed to fix the pty chmod problem
reported in https://cygwin.com/ml/cygwin/2015-04/msg00240.html

Other than that...

The important change in this release is the POSIX permission handling
change, a rewrite of the underlying routines reading and creating
Windows ACLs following POSIX permission rules and POSIX ACL creating
rules per POSIX 1003.1e draft 17, as on Linux.

For a description of POSIX ACLs, see http://linux.die.net/man/5/acl


All changes in this release so far:
===================================

- New, unified implementation of POSIX permission and ACL handling.  The
  new ACLs now store the POSIX ACL MASK/CLASS_OBJ permission mask, and
  they allow to inherit the S_ISGID bit.  ACL inheritance now really
  works as desired, in a limited, but theoretically equivalent fashion
  even for non-Cygwin processes.

  To accommodate Windows default ACLs, the new code ignores SYSTEM and
  Administrators group permissions when computing the MASK/CLASS_OBJ
  permission mask on old ACLs, and it doesn't deny access to SYSTEM and
  Administrators group based on the value of MASK/CLASS_OBJ when
  creating the new ACLs.
  
  The new code now handles the S_ISGID bit on directories as on Linux:
  Setting S_ISGID on a directory causes new files and subdirs created
  within to inherit its group, rather than the primary group of the user
  who created the file.  This only works for files and directories
  created by Cygwin processes.
  
- basename(3) now comes in two flavors, POSIX and GNU.  The POSIX version is
  the default.  You get the GNU version after
  
    #define _GNU_SOURCE
    #include <string.h> 

- The maximum number of PTYs has been raised from 64 to 128.


Bug Fixes
---------
  
- Fix potential hang in pseudo ttys when generating ECHO output while the slave
  is flooding the pty with output.
  Addresses: https://cygwin.com/ml/cygwin/2015-03/msg00019.html
  
- Fix potential premature SIGHUP in pty code.
  Addresses: https://cygwin.com/ml/cygwin/2015-03/msg00070.html
  
- Fix a name change from symlink to target name in calls to execvp, system, etc.
  Addresses: https://cygwin.com/ml/cygwin/2015-03/msg00270.html
      
- Fix internal error in pty -ONLCR handling.  Fix timing bug in pty OPOST 
  handling.
  Addresses: https://cygwin.com/ml/cygwin/2015-02/msg00929.html

  NOTE: This change introduces a not yet addressed regression.
  Native Windows tools generating output with Unix LF instead of
  Windows CRLF line endings will not get OPOST handling.  This
  prominently affects icacls.

- Avoid creating passwd and group records from fully qualified Windows
  account names (domain\name, name@domain).
  Addresses: https://cygwin.com/ml/cygwin/2015-03/msg00528.html

- Avoid potential crash at startup or in getgroups(2).
  Addresses: https://cygwin.com/ml/cygwin/2015-04/msg00010.html

- Fix UTF-16 surrogate handling in wctomb and friends.
  Addresses: https://cygwin.com/ml/cygwin/2015-03/msg00452.html


To install 32-bit Cygwin use https://cygwin.com/setup-x86.exe
To install 64 bit Cygwin use https://cygwin.com/setup-x86_64.exe

If you're already running a 32 bit version of Cygwin on 64 bit Windows
machines, you can continue to do so.  If you're planning a new install
of Cygwin on a 64 bit Windows machine, consider to use the new 64 bit
Cygwin version, unless you need certain packages not yet available in
the 64 bit release.


Have fun,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.0.0-3
@ 2015-04-13 16:10 Houder
  2015-04-14  8:58 ` Corinna Vinschen
  0 siblings, 1 reply; 23+ messages in thread
From: Houder @ 2015-04-13 16:10 UTC (permalink / raw)
  To: cygwin

Hi Corinna,

Perhaps not relevant anymore (since you have returned to the drawing board) ...

 - after installing update 3 to Cygwin 2.0 ...
 - created file while being logged on as user Test; subsequently executed: chmod 460 file
 - switched back to user Henri and attempted to touch file: failed
 - however, using Cygwin 1.7, and repeating the same procedure, I am able to touch the file (called file2)

Regards,

Henri

 = Cygwin 2.0 -- logged on as user Test

%% uname -a
CYGWIN_NT-6.1-WOW Seven 2.0.0(0.287/5/3) 2015-04-12 21:09 i686 Cygwin
%% pwd
/home/Test
%% id
uid=197614(Test) gid=197121(None) groups=197121(None), ... followed by irrelevant j.
545(Users), 4(INTERACTIVE)66049(CONSOLE LOGON),11(Authenticated Users),15(This Organization),113(Local
acount),4095(CurrentSession),
66048(LOCAL),262154(NTLM Authentication),401408(Medim Mandatory Level)
%% touch file
%% chmod 460 file
%% echo aha > file
bash: file: Permission denied

%% getfacl file
# file: file
# owner: Test
# group: None
user::r--
group::r-x
mask:rw-
other:---
%% icacls file # note: here I removed all white clobber in the output
file NULL SID:(DENY)(Rc,S,WEA,X,DC)
Seven\Test:(DENY)(S,WD,AD,WEA,DC)
Sven\Test:(R,D,WDAC,WO,WA)                              # yes, should be Seven\Test ... Oh well
Seven\None:(DENY)(S,X)
Seven\None:(RX)
Evryone:(Rc,S,RA)                                       # yes, should be Everyone ... bzzz
Successfully processed 1 files; Failed processing 0 files
%%

 ++ logoff Test, logon Henri

%% pwd
/home/Henri
%% cd ../Test
%% id
uid=197608(Henri) gid=197121(None) groups=197121(None), ... followed by irrelevant j.
197615(HelpLibraryUpdaters),545(Users),4(INTERACTIVE),66049(CONSOLE LOGON),11(Authenticated Users),15(This Organization),
113(Local account),4095(CurrentSession),66048(LOCAL),262154(NTLM Authentication),401408(Medium Mandatory Level)
%% ls -l file
-r--rw---- 1 Test None 0 Apr 13 17:12 file
%% echo ho,ho > file
bash: file: Permission denied                           # Huh? No, no, no ...

%% getfacl file # same output as above
%% icacls file # same output as above

-----

 = Cygwin 1.7 -- logged in as user Test

@@ uname -a
CYGWIN_NT-6.1-WOW Seven 1.7.36(0.287/5/3) 2015-03-17 10:46 i686 Cygwin
@@ pwd
/home/Test
@@ id -a
uid=1006(Test) gid=513(None) groups=513(None),545(Users)
@@ touch file2
@@ chmod 460 file2
@@ ls -l file2
-r--rw---- 1 Test None 0 Apr 13 17:30 file2
@@ echo aha > file2
bash: file2: Permission denied

@@ getfacl file2
# file: file2
# owner: Test
# group: None
user::r--
group::rw-
other:---
@@ icacls file2
file2 Seven\Test:(DENY)(S,WD,AD,WEA)
      Seven\Test:(R,D,WDAC,WO,WA)
      Seven\None:(R,W)
      Everyone:(Rc,S,RA)
Successfully processed 1 files; Failed processing 0 files

 ++ logoff Test, logon Henri

@@ pwd
/home/Henri
@@ id -a
uid=1000(Henri) gid=513(None) groups=513(None),1007(HelpLibraryUpdaters),545(Users)
@@ cd ../Test
@@ ls -l file2
-r--rw---- 1 Test None 0 Apr 13 17:30 file2
@@ echo ho,ho > file2                                   # Yes, that is Unixy

@@ getfacl file2 # same output as above
@@ icacls file2 # same output as above

=====


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2015-04-15  9:04 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-12 19:23 [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.0.0-3 Corinna Vinschen
2015-04-12 21:19 ` Bryan Berns
2015-04-13  7:17   ` Corinna Vinschen
2015-04-13  7:32     ` Corinna Vinschen
2015-04-13 11:13     ` Bryan Berns
2015-04-13 16:10 Houder
2015-04-14  8:58 ` Corinna Vinschen
2015-04-14 14:18   ` Houder
2015-04-14 14:50     ` Corinna Vinschen
2015-04-14 15:01       ` Houder
2015-04-14 15:12         ` Corinna Vinschen
2015-04-14 15:26           ` Houder
2015-04-14 15:45             ` Corinna Vinschen
2015-04-14 16:32               ` Houder
2015-04-14 18:21                 ` Corinna Vinschen
2015-04-14 18:38                   ` Houder
2015-04-15  7:13                     ` Corinna Vinschen
2015-04-15  7:46                       ` Houder
2015-04-15  9:04                         ` Corinna Vinschen
2015-04-14 14:27   ` Achim Gratz
2015-04-14 14:52     ` Corinna Vinschen
2015-04-14 15:35       ` Achim Gratz
2015-04-14 15:53         ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).