* fhandler_disk_file.cc (fhandler_disk_file::facl): Fix whitespace.
* external.cc: Update copyright. * fhandler.cc: Ditto. * sec_helper.cc: Ditto. * security.h: Ditto. * security.cc: Ditto. (check_registry_access): Return -1 if W_OK is requested.
This commit is contained in:
parent
2be593d961
commit
fc545fe933
|
@ -1,3 +1,13 @@
|
||||||
|
2006-10-22 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* fhandler_disk_file.cc (fhandler_disk_file::facl): Fix whitespace.
|
||||||
|
* external.cc: Update copyright.
|
||||||
|
* fhandler.cc: Ditto.
|
||||||
|
* sec_helper.cc: Ditto.
|
||||||
|
* security.h: Ditto.
|
||||||
|
* security.cc: Ditto.
|
||||||
|
(check_registry_access): Return -1 if W_OK is requested.
|
||||||
|
|
||||||
2006-10-22 Corinna Vinschen <corinna@vinschen.de>
|
2006-10-22 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* external.cc (cygwin_internal): Use security_descriptor::copy method.
|
* external.cc (cygwin_internal): Use security_descriptor::copy method.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/* external.cc: Interface to Cygwin internals from external programs.
|
/* external.cc: Interface to Cygwin internals from external programs.
|
||||||
|
|
||||||
Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Red Hat, Inc.
|
Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
|
||||||
|
2006 Red Hat, Inc.
|
||||||
|
|
||||||
Written by Christopher Faylor <cgf@cygnus.com>
|
Written by Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* fhandler.cc. See console.cc for fhandler_console functions.
|
/* fhandler.cc. See console.cc for fhandler_console functions.
|
||||||
|
|
||||||
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
||||||
2005 Red Hat, Inc.
|
2005, 2006 Red Hat, Inc.
|
||||||
|
|
||||||
This file is part of Cygwin.
|
This file is part of Cygwin.
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* sec_helper.cc: NT security helper functions
|
/* sec_helper.cc: NT security helper functions
|
||||||
|
|
||||||
Copyright 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
|
Copyright 2000, 2001, 2002, 2003, 2004, 2006 Red Hat, Inc.
|
||||||
|
|
||||||
Written by Corinna Vinschen <corinna@vinschen.de>
|
Written by Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/* security.cc: NT security functions
|
/* security.cc: NT security functions
|
||||||
|
|
||||||
Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Red Hat, Inc.
|
Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
|
||||||
|
2006 Red Hat, Inc.
|
||||||
|
|
||||||
Originaly written by Gunther Ebert, gunther.ebert@ixos-leipzig.de
|
Originaly written by Gunther Ebert, gunther.ebert@ixos-leipzig.de
|
||||||
Completely rewritten by Corinna Vinschen <corinna@vinschen.de>
|
Completely rewritten by Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
@ -1973,6 +1974,9 @@ check_registry_access (HANDLE hdl, int flags)
|
||||||
desired |= KEY_QUERY_VALUE;
|
desired |= KEY_QUERY_VALUE;
|
||||||
if (!get_nt_object_security (hdl, SE_REGISTRY_KEY, sd))
|
if (!get_nt_object_security (hdl, SE_REGISTRY_KEY, sd))
|
||||||
ret = check_access (sd, mapping, desired, flags);
|
ret = check_access (sd, mapping, desired, flags);
|
||||||
|
/* As long as we can't write the registry... */
|
||||||
|
if (flags & W_OK)
|
||||||
|
ret = -1;
|
||||||
debug_printf ("flags %x, ret %d", flags, ret);
|
debug_printf ("flags %x, ret %d", flags, ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* security.h: security declarations
|
/* security.h: security declarations
|
||||||
|
|
||||||
Copyright 2000, 2001, 2002, 2003, 2004, 2005 Red Hat, Inc.
|
Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006 Red Hat, Inc.
|
||||||
|
|
||||||
This file is part of Cygwin.
|
This file is part of Cygwin.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue