libc/winsup
Corinna Vinschen ac4648c13e Treat ACLs with extra ACEs for Admins and SYSTEM like a trivial ACL
POSIX.1e requires that chmod changes the MASK rather than the
	GROUP_OBJ value if the ACL is non-trivial.

	On Windows, especially on home machines, a standard ACL often
	consists of entries for the user, maybe the group, and additional
	entries for SYSTEM and the Administrators group.  A user calling
	chmod on a file with bog standard Windows perms usually expects
	that chmod changes the GROUP_OBJ perms, but given the rules from
	POSIX.1e we can't do that.

	However, since we already treat Admins and SYSTEM special in a
	ACL (they are not used in MASK computations) we go a step in the
	Windows direction to follow user expectations.  If an ACL only
	consists of the three POSIX permissions, plus entries for Admins
	and SYSTEM *only*, then we change the permissions of the GROUP_OBJ
	entry *and* the MASK entry.

	* fhandler_disk_file.cc (fhandler_disk_file::chmod): Drop unused
	code.  Add special handling for a "standard" Windows ACL.  Add
	comment to explain.
	* sec_acl.cc (get_posix_access): Allow to return "standard-ness"
	of an ACL to the caller.  Add preceeding comment to explain a bit.
	* security.h (get_posix_access): Align prototype.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-01-28 22:05:49 +01:00
..
cygserver Deprecate all winsup ChangeLog files 2016-01-07 21:16:01 +01:00
cygwin Treat ACLs with extra ACEs for Admins and SYSTEM like a trivial ACL 2016-01-28 22:05:49 +01:00
doc Fix missing 'user' in usertemp docs 2016-01-27 15:37:46 +01:00
lsaauth Deprecate all winsup ChangeLog files 2016-01-07 21:16:01 +01:00
testsuite Deprecate all winsup ChangeLog files 2016-01-07 21:16:01 +01:00
utils cygpath: Avoid returning SysWOW64 2016-01-21 18:40:30 +01:00
COPYING * COPYING: Replace with the GPLv3 definition. 2011-04-19 16:52:51 +00:00
CYGWIN_LICENSE * COPYING: Replace with the GPLv3 definition. 2011-04-19 16:52:51 +00:00
ChangeLog Deprecate all winsup ChangeLog files 2016-01-07 21:16:01 +01:00
ChangeLog-2015 Deprecate all winsup ChangeLog files 2016-01-07 21:16:01 +01:00
Makefile.common * Makefile.common (COMPILE.cc): Add -fno-use-cxa-atexit. 2014-08-07 16:19:09 +00:00
Makefile.in * Makefile.in: Ignore errors on doc install. 2014-02-18 19:58:39 +00:00
README
acinclude.m4 ChangeLog: 2012-11-23 13:22:47 +00:00
aclocal.m4 winsup/ChangeLog: 2013-11-07 00:19:52 +00:00
autogen.sh ChangeLog: 2012-11-23 13:22:47 +00:00
c++wrap ChangeLog: 2012-11-23 13:22:47 +00:00
ccwrap * ccwrap: Don't drop mingw header file paths unless we've specified them with 2012-11-26 19:00:35 +00:00
config.guess ChangeLog: 2012-11-23 13:22:47 +00:00
config.sub ChangeLog: 2012-11-23 13:22:47 +00:00
configure * configure.ac: Convert to new AC_INIT style. 2014-11-13 12:12:56 +00:00
configure.ac * configure.ac: Convert to new AC_INIT style. 2014-11-13 12:12:56 +00:00
configure.cygwin winsup/ChangeLog: 2013-11-07 00:19:52 +00:00
install-sh ChangeLog: 2012-11-23 13:22:47 +00:00

README

THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

Cygwin documentation is available on the net at http://cygwin.com
You might especially be interested in

http://cygwin.com/faq/faq.programming.html#faq.programming.building-cygwin