src/winsup/cygwin ChangeLog fhandler_registry.cc

2006-10-21 Thread corinna
CVSROOT:/cvs/src
Module name:src
Changes by: [EMAIL PROTECTED]   2006-10-21 10:58:36

Modified files:
winsup/cygwin  : ChangeLog fhandler_registry.cc 

Log message:
* fhandler_registry.cc (fhandler_registry::fstat): Set restrictive
permission and ownership if key can't be opened for reading security.
(open_key): If opening key fails, retry opening with backup intent.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.3629r2=1.3630
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_registry.cc.diff?cvsroot=srcr1=1.36r2=1.37



src/winsup/cygwin ChangeLog fhandler.cc securi ...

2006-10-21 Thread corinna
CVSROOT:/cvs/src
Module name:src
Changes by: [EMAIL PROTECTED]   2006-10-21 11:05:32

Modified files:
winsup/cygwin  : ChangeLog fhandler.cc security.cc security.h 

Log message:
* fhandler.cc (fhandler_base::fhaccess): Call check_registry_access
for registry keys/values if ntsec is on.
* security.cc (check_access): New static function derived from
check_file_access, but object type agnostic.
(check_file_access): Only do file specific stuff.  Call check_access.
(check_registry_access): New access check function for registry keys/
values.
* security.h (check_registry_access): Declare.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.3630r2=1.3631
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler.cc.diff?cvsroot=srcr1=1.262r2=1.263
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/security.cc.diff?cvsroot=srcr1=1.200r2=1.201
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/security.h.diff?cvsroot=srcr1=1.69r2=1.70



src/winsup/utils ChangeLog regtool.cc

2006-10-21 Thread corinna
CVSROOT:/cvs/src
Module name:src
Changes by: [EMAIL PROTECTED]   2006-10-21 17:19:29

Modified files:
winsup/utils   : ChangeLog regtool.cc 

Log message:
* regtool.cc (key_type): Drop.
(REG_AUTO): Define.
(value_type): Replace key_type.  Use REG_xxx values directly.
Accomodate change throughout.
(longopts): Add --dword, --dword-le, --none, --qword and --hex options.
(opts): Add -d, -D, -n, -Q and -x options.
(types): Array to convert REG_xxx into strings.
(hex): New variable to keep value of --hex option.
(usage): Accomodate new options.  Print only the necessary by default.
Only be verbose in case of -h/--help option.
(cmd_list): Use key separator from -K option when printing.
Print value type when verbose option is given.  Handle so far not
handled REG_xxx types.
(cmd_set): Avoid SEGV due to missing argument.  Handle so far not
handled REG_xxx types.
(cmd_get): Handle --binary option type agnostic.  Handle so far not
handled REG_xxx types.
(main): Handle new options.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/utils/ChangeLog.diff?cvsroot=srcr1=1.365r2=1.366
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/utils/regtool.cc.diff?cvsroot=srcr1=1.23r2=1.24