Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
AgeCommit message (Collapse)Author
2006-12-20 Partially revert change from 2006-10-22. GetSecurityInfo messes upCorinna Vinschen
user information on NT4. * sec_helper.cc (security_descriptor::malloc): Drop LocalAlloc considerations. (security_descriptor::realloc): Ditto. (security_descriptor::free): Ditto. * security.cc (get_reg_security): Reinstantiate. (get_nt_object_security): Revert to using NtQuerySecurityObject. * security.h (class security_descriptor): Drop type member. Accommodate throughout. (security_descriptor::size): Constify. (security_descriptor::copy): Ditto.
2006-12-19* pinfo.cc (set_myself): Use a more foolproof method for determining if theChristopher Faylor
current process was started from another cygiwn process.
2006-12-15 * libc/minires-os-if.c (cygwin_query): Remove ERROR_PROC_NOT_FOUND case.Corinna Vinschen
(get_dns_info): Verify DnsQuery exists. Use autoloaded GetNetworkParams.
2006-12-13 * winsup.h (clear_procimptoken): Close hProcImpToken in a safer way.Corinna Vinschen
2006-12-13 * security.cc (lsaauth): Initialize lsa to INVALID_HANDLE_VALUE toCorinna Vinschen
avoid potential access violation.
2006-12-12 * Makefile.in (subauth): Drop rule.Corinna Vinschen
* configure.in: Remove subauth related check. * configure: Regenerate.
2006-12-12 Remove subauth directory.Corinna Vinschen
2006-12-12 * environ.cc (subauth_id_init): Remove.Corinna Vinschen
(parse_thing): Drop "subauth_id" option. * security.cc (get_token_group_sidlist): Drop comments concerning subauthentication. (create_token): Back out subauthentication related changes. (subauth): Remove. * security.h (create_token): Remove declaration. (subauth): Ditto. * syscalls.cc (seteuid32): Drop subauthentication handling entirely.
2006-12-12 * cygwinenv.sgml: Drop description of "traverse" option.Corinna Vinschen
2006-12-12 * environ.cc (set_traverse): Remove.Corinna Vinschen
(parse_thing): Drop "traverse" option. * path.cc (fs_info::update): Don't request SE_CHANGE_NOTIFY_PRIV privilege. * sec_helper.cc (set_cygwin_privileges): Ditto. * security.cc (allow_traverse): Remove. (alloc_sd): Drop special allow_traverse code. * security.h (allow_traverse): Drop declaration. * syscalls.cc (statvfs): Don't request SE_CHANGE_NOTIFY_PRIV privilege.
2006-12-12 Partially revert change from 2005-04-03, always running under anCorinna Vinschen
impersonation token, which collides with Vista UAC. * cygheap.h (deimpersonate): revert to self instead of impersonating hProcImpToken. (reimpersonate): Only impersonate if setuid. * dcrt0.cc (dll_crt0_0): Don't initialize hProcImpToken here. (dll_crt0_1): Set privileges on hProcToken. * fork.cc (frok::child): Set privileges on hProcToken. Close handle to hProcImpToken. * grp.cc (internal_getgroups): Use hProcToken instead of hProcImpToken. * security.cc (check_access): Create hProcImpToken on demand here. * security.h (set_process_privilege): Set privileges on hProcToken. (_push_thread_privilege): Use hProcToken instead of hProcImpToken. (pop_thread_privilege): If not setuid'ed, revert to self. * syscalls.cc (setegid32): Drop setting primary group on hProcImpToken. Close handle to hProcImpToken. * uinfo.cc (internal_getlogin): Ditto. * winsup.h (clear_procimptoken): New inline function.
2006-12-12Add missing ChangeLog.Christopher Faylor
2006-12-12* sigproc.cc (child_info::child_info): Initialize msv_count.Christopher Faylor
2006-12-12 Revert erroneous checkin.Corinna Vinschen
2006-12-12 * libc/minires.c (res_ninit): Drop handling for LOCALDOMAIN environmentCorinna Vinschen
variable.
2006-12-11 * Makefile.in (DLL_OFILES): Add minires-os-if.o and minires.o.Corinna Vinschen
(SUBLIBS): Add libresolv.a. Add rule for libresolv.a. * autoload.cc: Fix return code handling for IP Helper API in case of being unable to load iphlpapi.dll. (DnsQuery_A): Define. (DnsRecordListFree): Define. * cygwin.din: Export resolver functions. * include/resolv.h: New header. * include/arpa/nameser.h: New header. * include/arpa/nameser_compat.h: New header. * include/cygwin/version.h: Bump API minor number. * libc/minires-os-if.c: New file. * libc/minires.c: New file. * libc/minires.h: New file.
2006-12-11* sigproc.cc (child_info::child_info): Move old comment about msv_count here.Christopher Faylor
Edit it slightly to reflect new sensibilities.
2006-12-11* dumper.cc: Add an include to accommodate new include/elf usage.Christopher Faylor
2006-12-11correct email addressChristopher Faylor
2006-12-11* child_info.h (child_info_spawn::__stdin): New element.Christopher Faylor
(child_info_spawn::__stdin): Ditto. (CURR_CHILD_INFO_MAGIC): Regenerate. * dcrt0.cc (check_sanity_and_sync): Minor cleanup. (child_info_spawn::handle_spawn): Handle new __std* elements by calling move_fd. * dtable.cc (dtable::move_fd): Define new function. * dtable.h (dtable::move_fd): Declare new function. * fhandler.h (fhandler_pipe::popen_pid): Declare new element. * fhandler.h (fhandler_pipe::get_popen_pid): Define new function. * fhandler.h (fhandler_pipe::set_popen_pid): Ditto. * pipe.cc (fhandler_pipe::fhandler_pipe): Zero popen_pid. (fhandler_pipe::dup): Ditto. * spawn.cc (handle): Change second argument to bool. (spawn_guts): Accept __stdin/__stdout arguments and set them appropriately in child_info structure and in STARTUPINFO structure. * syscalls.cc (popen): New cygwin-specific implementation using spawn. (pclose): Ditto. * winsup.h (spawn_guts): Accommodate new arguments for spawn_guts. * fhandler.cc (fhandler_base::set_no_inheritance): Make second arg a bool. * fhandler.h (fhandler_base::set_no_inheritance): Ditto for declaration. * child_info.h (child_info::msv_count): Rename from the now-inappropriate "zero". (child_info_spawn::filler): Add filler to work around Vista bug. (child_info_fork::filler): Ditto. * dcrt0.cc (get_cygwin_startup_info): Remove "zero" check since it is now always filled out. * fork.cc (frok::parent): Move ch.zero manipulation to constructor. * spawn.cc (spawn_guts): Ditto. Remove _ch wrapper. * sigproc.cc (child_info::child_info): Initialize starter[]. * shared.cc (shared_info::heap_slop_size): Remove noisy system_printfs. * shared_info.h (CURR_SHARED_MAGIC): Regenerate.
2006-12-11 * fhandler.cc (rootdir): Fix typo in comment.Corinna Vinschen
* syscalls.cc (try_to_bin): Ditto.
2006-12-11* mount.cc (do_mount): Avoid unnecessary cygwin_conv_to_win32_path and passChristopher Faylor
POSIX path directly - this avoids a cygwin DLL warning.
2006-12-10 * autoload.cc (SHFileOperationA): Drop definition.Corinna Vinschen
* ntdll.h (struct _FILE_RENAME_INFORMATION): Define. * path.cc (fs_info::update): Note length of rootdir prefix in root_len. (get_nt_native_path): New function, taking over functionality of path_conv::get_nt_native_path. (path_conv::get_nt_native_path): Just call get_nt_native_path. * path.h (get_nt_native_path): Declare. (struct fs_info): New member root_len. (fs_info::length): New inline method returning root_len. (path_conv::rootdir): New inline method returning rootdir prefix. * syscalls.cc (try_to_bin): Rewrite using only system calls. (unlink_nt): Call try_to_bin with additional handle to open file parameter. (statvfs): Use path_conv::rootdir method. * wincap.h: Define has_recycle_dot_bin throughout. * wincap.cc: Ditto.
2006-12-10 * fhandler.cc (rootdir): Clarify comment.Corinna Vinschen
2006-12-10 * fhandler.cc (rootdir): Don't look for volume mount points on remoteCorinna Vinschen
shares.
2006-12-10 * fhandler.cc (rootdir): Drop useless post-increment. Take volumeCorinna Vinschen
mount points into account. (check_posix_perm): Allocate space for root directory big enough.
2006-12-09 * syscalls.cc (try_to_bin): Add comment that this is not possiblyCorinna Vinschen
the final version.
2006-12-07 * syscalls.cc (unlink_nt): Open native symlinks withCorinna Vinschen
FILE_OPEN_REPARSE_POINT flag.
2006-12-07 * ntdll.h (STATUS_DELETE_PENDING): Define.Corinna Vinschen
(struct _FILE_DISPOSITION_INFORMATION): Define. * syscalls.cc (unlink_9x): new function to delete file on 9x. * syscalls.cc (unlink_nt): new function to delete file on NT. (unlink): Simplify. Move OS dependent stuff into aforementioned functions. Also handle FILE_ATTRIBUTE_HIDDEN as R/O-like flag.
2006-12-07 * autoload.cc (SHFileOperationA): Define.Corinna Vinschen
* syscalls.cc (try_to_bin): New function trying to move a file to the recycle bin. (unlink): Fix arguments used in CreateFile for delete on close. Before closing the handle, try to move the file to the recycle bin.
2006-12-07 * cygheap.h (struct cwdstuff): Add "sync" member and accompanyingCorinna Vinschen
"keep_in_sync" methods. * external.cc (cygwin_internal): Call above keep_in_sync method when CW_SYNC_WINENV is requested. * path.cc (cwdstuff::init): Don't change to windows_system_directory if keep_in_sync is requested. (cwdstuff::keep_in_sync): New method. (cwdstuff::set): Take sync flag into account.
2006-12-06 * termios.cc: Change include order to accomodate change to sys/ioctl.h.Corinna Vinschen
2006-12-06 * fhandler_mem.cc (fhandler_dev_mem::open): Fix comment.Corinna Vinschen
* wincap.cc (has_physical_mem_access): Reflect the fact that physical memory access has been made a protected operation beginning with 2003 Server.
2006-12-06 * include/sys/ioctl.h: Pick up termios.h, for TIOCGWINSZ.Corinna Vinschen
2006-12-06 * winsup.h (WINVER): Set to 0x0600 to cover Vista.Corinna Vinschen
2006-12-06 * fhandler_disk_file.cc (fhandler_disk_file::rmdir): Fix typo.Corinna Vinschen
2006-12-06 * path.cc (cwdstuff::init): Don't change to windows_system_directoryCorinna Vinschen
if Cygwin DLL has been loaded dynamically.
2006-12-05 * path.cc (cwdstuff::set): Don't try to open directory on systems notCorinna Vinschen
supporting that.
2006-12-05 * dcrt0.cc (get_cygwin_startup_info): Fix comment.Corinna Vinschen
* wincap.cc (wincapc::init): Always reset needs_count_in_si_lpres2 to false on non 64-bit systems.
2006-12-05 Fix date.Corinna Vinschen
2006-12-05 * dcrt0.cc (get_cygwin_startup_info): Change zeros to DWORD array.Corinna Vinschen
Expect first DWORD in child_info struct being set to non-zero if wincap.needs_count_in_si_lpres2 is set. Add comment to explain why. * fork.cc (frok::parent): Set ch.zero[0] to a sensible count value if wincap.needs_count_in_si_lpres2 is set. * spawn.cc (spawn_guts): Ditto. Add filler bytes after ch on stack to accomodate needs_count_in_si_lpres2. * wincap.h: Define needs_count_in_si_lpres2 throughout. * wincap.cc: Ditto.
2006-11-30 * dir.cc (mkdir): Check last path component for "..".Corinna Vinschen
(rmdir): Don't check last path component for "..". * fhandler_disk_file.cc (fhandler_disk_file::rmdir): Drop kludge which tries to allow deleting the current working directory. * path.cc (has_dot_last_component): Add parameter to indicate testing for "..". Take trailing slash into account. (symlink_info::posixify): Rely on cygheap->cwd.win32 having a useful value. (cwdstuff::init): Initialize cygheap->cwd with current working directory. Change to windows_system_directory afterwards. (cwdstuff::set): Never call SetCurrentDirectory here. Just check if changing into target directory would be allowed. Add comment to explain why. * path.h (has_dot_last_component): Declare with second parameter. * pinfo.cc (pinfo::zap_cwd): Remove. (pinfo::exit): Drop call to zap_cwd. * pinfo.h (class pinfo): Remove declaration of zap_cwd. * spawn.cc (spawn_guts): Set current working directory for non-Cygwin child applications. Drop call to zap_cwd.
2006-11-29 * security.cc (create_token): Revert erroneous change to testCorinna Vinschen
subauth_token for INVAILD_HANDLE_VALUE. * syscalls.cc (seteuid32): Set create_token's subauth_token parameter back to NULL.
2006-11-28 * fhandler.cc (fhandler_base::open): Fix previous patch to handle theCorinna Vinschen
SYSTEM attribute as well.
2006-11-27 * fhandler.cc (fhandler_base::open): Fix handling of files withCorinna Vinschen
HIDDEN attribute set.
2006-11-27* include/cygwin/signal.h: Add __extension__ to various anonymous unions andChristopher Faylor
structs. (thanks to V.Haisman)
2006-11-27 Initial release of the Cygwin LSA authentication package.Corinna Vinschen
* ChangeLog: New file. * Makefile.in: Ditto. * aclocal.m4: Ditto. * configure.in: Ditto. * configure: Ditto. Generated from configure.in. * cyglsa-config: Ditto. * cyglsa.c: Ditto. * cyglsa.din: Ditto. * cyglsa64.dll: Ditto. * make-64bit-version-with-visual-c.bat: Ditto. * mslsa.def: Ditto.
2006-11-27 * Makefile.in: Add dependencies for lsaauth.Corinna Vinschen
* configure.in: Disable building subauth. Add building lsaauth. * configure: Regenerate.
2006-11-27 * cyglsa.h: New header file.Corinna Vinschen
* environ.cc: Disable subauth settings. * grp.cc: Accomodate cygsidlist's count now being a method. * sec_helper.cc (SECURITY_MANDATORY_INTEGRITY_AUTHORITY): Remove. (mandatory_medium_integrity_sid): Remove. (mandatory_high_integrity_sid): Remove. (mandatory_system_integrity_sid): Remove. (fake_logon_sid): Add. (cygsid::get_sid): Add well_known parameter. Set well_known_sid accordingly. (cygsid::getfromstr): Ditto. (cygsidlist::alloc_sids): Move here from security.cc. (cygsidlist::free_sids): Ditto. (cygsidlist::add): Move here from security.h. Add well_known parameter. Set well_known_sid accordingly. Don't allow duplicate SIDs. * security.cc: Include cyglsa.h and cygwin/version.h. Throughout accomodate cygsidlist's count now being a method. Throughout drop redundant "contains" tests. (get_user_local_groups): Add local groups as well known SIDs. (get_token_group_sidlist): Add well known groups as well known SIDs. (get_server_groups): Ditto. Only call get_unix_group_sidlist after get_user_local_groups to maintain "well_known_sid" attribute. (get_initgroups_sidlist): Add well known groups as well known SIDs. (get_setgroups_sidlist): Add usersid and struct passwd parameter to allow calling get_server_groups from here. (get_system_priv_list): Make static. Return size of TOKEN_PRIVILEGES structure. (get_priv_list): Ditto. (create_token): Accomodate above changes. Drop misguided attempt to add MIC SIDs to created user token. Print returned token as hex value. (subauth): Disable. (lsaauth): New function implementing client side of LSA authentication. * security.h (class cygsid): Add well_known_sid attribute. Accomodate throughout. Add *= operator to create a well known SID. (class cygsidlist): Rename count to cnt. Make count a method. (cygsidlist::add): Move to sec_helper.cc. (cygsidlist::operator *=): New method to add well known SID. (cygsidlist::non_well_known_count): New method returning number of non well known SIDs in list. (cygsidlist::next_non_well_known_sid): New method returning next non well known SID by index. (mandatory_medium_integrity_sid): Drop declaration. (mandatory_high_integrity_sid): Drop declaration. (mandatory_system_integrity_sid): Drop declaration. (fake_logon_sid): Add declaration. (subauth): Disable declaration. (lsaauth): Add declaration. * syscalls.cc (seteuid32): Disable subauthentication. Add LSA authentication. * wincap.h: Define needs_logon_sid_in_sid_list throughout. * wincap.cc: Ditto.
2006-11-25configure.in: Update to autoconf 2.5x syntax; fix macro argument quoting;Keith Marshall
remove invalid use of AC_ALLOCA; remove redundant use of AC_SUBST.