summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 2015-02-26 Steve Ellcey <sellcey@imgtec.com>Steve Ellcey2015-02-262-108/+113
| | | | | * libc/machine/mips/memcpy.S: Fix macro indentation and typos in comments.
* * ldap.cc (cyg_ldap::wait): Call cygwait with cw_infinite timeout valueCorinna Vinschen2015-02-262-3/+8
| | | | | and with cw_sig_restart instead of cw_sig_eintr. Drop useless _my_tls.call_signal_handler call. Return EIO if cygwait failed.
* * posix_ipc.cc (ipc_mutex_lock): Revert unneeded call to signal handler.Corinna Vinschen2015-02-262-1/+4
|
* * posix_ipc.cc (ipc_mutex_lock): Add bool parameter to influence ifCorinna Vinschen2015-02-262-8/+21
| | | | | | | | | | cygwait should be in EINTR or in restart mode. Call signal handler if in EINTR mode. (mq_getattr): Call ipc_mutex_lock in restart mode. (mq_setattr): Ditto. (mq_notify): Ditto. (_mq_send): Call ipc_mutex_lock in EINTR mode. (_mq_receive): Ditto.
* * fhandler_termios.cc (fhandler_termios::line_edit): Fix conditionCorinna Vinschen2015-02-263-7/+20
| | | | for writing remaining bytes in readahead buffer in non-canonical mode.
* * sec_acl.cc (setacl): Always grant default owner entryCorinna Vinschen2015-02-252-0/+7
| | | | STANDARD_RIGHTS_ALL and FILE_WRITE_ATTRIBUTES access, too.
* *** empty log message ***Corinna Vinschen2015-02-251-0/+3
|
* * mkgroup.c (MAX_SID_LEN): Remove. Instead, use SECURITY_MAX_SID_SIZECorinna Vinschen2015-02-253-49/+61
| | | | | | | throughout. (enum_unix_groups): Introduce numeric_psid and rearrange code to avoid potential heap corruption. * mkpasswd.c: Ditto.
* * fhandler_tape.cc (fhandler_dev_tape::_lock): Add cw_sig_restart toCorinna Vinschen2015-02-254-15/+19
| | | | | | | | | | cygwait call. * thread.cc (pthread_mutex::lock): Ditto. (semaphore::_timedwait): Fix formatting. (semaphore::_wait): Ditto. * thread.h (fast_mutex::lock): Ditto. ...and fix ChangeLog accordingly.
* Applied the "chgrp `id -g`" improvements suggested by Corinna for the FAQWarren Young2015-02-252-0/+21
| | | | item about SSH keys not working in 1.7.34+.
* * security.cc (alloc_sd): Don't apply temporary workaround for chmodCorinna Vinschen2015-02-252-8/+18
| | | | to DEF_USER_OBJ, DEF_GROUP_OBJ, and DEF_OTHER_OBJ ACEs.
* * fhandler_tty.cc (fhandler_pty_slave::read): Having no input is not anCorinna Vinschen2015-02-252-2/+15
| | | | error condition for tcflush.
* * libc/include/sys/cdefs.h (_GNU_SOURCE): Move check so it has anJon TURNEY2015-02-252-6/+13
| | | | effect when _XOPEN_SOURCE is also defined.
* * ntsec.xml (ntsec-mapping): Match the description of the defaultCorinna Vinschen2015-02-252-35/+14
| | | | values for db_home, db_shell, and db_gecos to the latest changes.
* *** empty log message ***Corinna Vinschen2015-02-251-0/+10
|
* * security.cc (alloc_sd): Fix comment style. Remove code unused forCorinna Vinschen2015-02-252-26/+8
| | | | years.
* * security.cc (alloc_sd): Add temporary workaround which disallowsCorinna Vinschen2015-02-252-1/+16
| | | | | any secondary user to have more permissions than the primary group in calls to chmod. Add comment to explain why.
* * uinfo.cc (client_request_pwdgrp::client_request_pwdgrp): Add missingCorinna Vinschen2015-02-252-0/+6
| | | | break in switch statement.
* Added chgrp None ~/.ssh/* hack to FAQ item 4.40Warren Young2015-02-252-0/+25
|
* * ldap.h: Remove index macros.Corinna Vinschen2015-02-248-102/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (class cyg_ldap): Remove members srch_msg and srch_entry. (cyg_ldap::get_string_attribute): Remove private method taking index argument. (cyg_ldap::get_num_attribute): Ditto. Add method taking attribute name. (cyg_ldap::get_primary_gid): Adjust to aforementioned change. (cyg_ldap::get_unix_uid): Ditto. (cyg_ldap::get_unix_gid): Ditto. * ldap.cc: Throughout, use msg and entry in place of srch_msg and srch_entry. (std_user_attr): Add sAMAccountName and objectSid. (group_attr): Ditto. (cyg_ldap::close): Drop handling of srch_msg and srch_entry. (cyg_ldap::get_string_attribute): Move earlier in file. (cyg_ldap::get_num_attribute): Ditto. (cyg_ldap::enumerate_ad_accounts): Add comments for clarity. Use group_attr or user_attr rather than sid_attr to fetch all desired attributes for an account right away. (cyg_ldap::next_account): Store found SID in last_fetched_sid to skip calls to fetch_ad_account from fetch_account_from_windows. (cyg_ldap::get_string_attribute): Remove method taking index argument. (cyg_ldap::get_num_attribute): Ditto. * pwdgrp.h (class pg_ent): Fix formatting. Add member dom. * passwd.cc (pg_ent::enumerate_ad): Store current flat domain name in dom. Construct fetch_acc_t argument from LDAP attributes and call fetch_account_from_windows with that. * userinfo.h (enum fetch_user_arg_type_t): Rename FULL_grp_arg to FULL_acc_arg. Change throughout. (struct fetch_acc_t): Rename from fetch_full_grp_t. Change throughout. (struct fetch_user_arg_t): Rename full_grp to full_acc. Change throughout.
* * fhandler.h (class fhandler_base): Add was_nonblocking status flag.Corinna Vinschen2015-02-244-4/+33
| | | | | | | | | * fhandler.cc (fhandler_base::set_flags): Set was_nonblocking if the O_NONBLOCK flag has been specified. (fhandler_base_overlapped::close): Check for was_nonblocking instead of for is_nonblocking. Explain why. (fhandler_base::set_nonblocking): Set was_nonblocking if noblocking mode gets enabled.
* * include/sys/socket.h (sockatmark): Add prototype.Corinna Vinschen2015-02-242-1/+6
|
* * userinfo.h (struct fetch_full_grp_t): Define only when buildingCorinna Vinschen2015-02-232-0/+10
| | | | | Cygwin itself. (struct fetch_user_arg_t): Ditto.
* * pwdgrp.cc: Handle default fetch_user_arg_type_t in switchesCorinna Vinschen2015-02-232-1/+14
| | | | throughout to silence compiler.
* * autoload.cc (LsaLookupSids): Import.Corinna Vinschen2015-02-237-60/+243
| | | | | | | | | | | | | | | | | | | | | | * cygserver_pwdgrp.h: Include userinfo.h. Drop workaround defining fetch_user_arg_type_t locally. * grp.cc (internal_getgrsid_cachedonly): New function. (internal_getgrfull): Ditto. (internal_getgroups): Rearrange function. Center around fetching all cached group info first, calling LsaLookupSids on all so far non-cached groups second. Pass all available info to new internal_getgrfull call. * pwdgrp.h: Include userinfo.h. Move definitions of fetch_user_arg_type_t and fetch_user_arg_t there. (pwdgrp::add_group_from_windows): Declare with getting full group info. Called from internal_getgrfull. * uinfo.cc (pwdgrp::add_group_from_windows): Define. (pwdgrp::fetch_account_from_line): Add default case. (pwdgrp::fetch_account_from_file): Ditto. (pwdgrp::fetch_account_from_windows): Handle FULL_grp_arg. (client_request_pwdgrp::client_request_pwdgrp): Add default case. * userinfo.h: New header. (enum fetch_user_arg_type_t): Add FULL_grp_arg. (struct fetch_full_grp_t): New datatype.
* * grp.cc (internal_getgroups): Check for group attributes andCorinna Vinschen2015-02-232-10/+14
| | | | Everyone sid before calling internal_getgrsid.
* * cygwait.h (enum cw_wait_mask): Add cw_sig_restart. Add commentsCorinna Vinschen2015-02-234-11/+25
| | | | | | | | | to explain the meaning of the possible values. * cygwait.cc (is_cw_sig_restart): Define. (is_cw_sig_handle): Check for cw_sig_restart as well. (cygwait): Restart always if cw_sig_restart is set. * thread.cc (pthread::join): Call cygwait with cw_sig_restart flag to avoid having to handle signals at all.
* * cygwait.cc (cygwait): Move setting res to WAIT_SIGNALED to clarifyCorinna Vinschen2015-02-232-2/+8
| | | | when WAIT_SIGNALED is returned to the caller.
* * winsup.h (SIGTOMASK): Add cast to sigset_t to avoid int overflow.Corinna Vinschen2015-02-233-1/+8
|
* * grp.cc (internal_getgroups): Take additional timeout_ns parameter.Corinna Vinschen2015-02-206-7/+46
| | | | | | | | | | Restrict fetching group account entries from user token groups by timeout_ns 100ns-intervals. Add preceding comment to explain why. * pwdgrp.h (internal_getgroups): Align prototype. * times.cc (GetTickCount_ns): New function. * uinfo.cc (internal_getlogin): Call internal_getgroups wih 300ms timeout. * winsup.h (GetTickCount_ns): Declare.
* 2015-02-19 Jon TURNEY <jon.turney@dronecode.org.uk>Jon TURNEY2015-02-202-1/+5
| | | | * Makefile.in (sigfe.o): Use CFLAGS.
* 2015-02-19 Jon TURNEY <jon.turney@dronecode.org.uk>Jon TURNEY2015-02-202-3/+9
| | | | | | | * include/cygwin/stdlib.h (initstate, random, setstate, srandom): Check if __XSI_VISIBLE is set by sys/cdefs.h, rather than testing for _XOPEN_SOURCE directly, to work correctly when _GNU_SOURCE is set.
* * sec_acl.cc (setacl): Always grant owner FILE_WRITE_ATTRIBUTES access.Corinna Vinschen2015-02-193-6/+16
|
* * ldap.cc (struct cyg_ldap_search): Add scope member.Corinna Vinschen2015-02-183-12/+29
| | | | | | | | | | | | | | | (cyg_ldap::search_s): Add parameter scope. Use as LDAP search scope instead of fixed LDAP_SCOPE_SUBTREE scope. (ldap_search_thr): Call cyg_ldap::search_s with scope from argument. (cyg_ldap::search): Add parameter scope and fill in to cyg_ldap_search. (cyg_ldap::fetch_ad_account): Call search with LDAP_SCOPE_SUBTREE scope. (cyg_ldap::fetch_posix_offset_for_domain): Call search with LDAP_SCOPE_ONELEVEL scope. (cyg_ldap::fetch_unix_sid_from_ad): Call search with LDAP_SCOPE_SUBTREE scope. (cyg_ldap::fetch_unix_name_from_rfc2307): Ditto. * ldap.h (cyg_ldap::search): Align prototype to above change. (cyg_ldap::search_s): Ditto.
* * ldap.cc: Macro-ize filter expressions. Use throughout to computeCorinna Vinschen2015-02-182-23/+45
| | | | required filter buffer size if filter is a local buffer.
* * dump_setup.cc (check_package_files): Accommodate postinstallKen Brown2015-02-172-1/+7
| | | | | files in any directory whose name contains "/postinstall/", not just /etc/postinstall.
* Applied Andrey's and my improvments to FAQ item 4.2, discussed on the main ML.Warren Young2015-02-172-48/+112
|
* * ldap.cc (cyg_ldap::fetch_posix_offset_for_domain): Drop strayCorinna Vinschen2015-02-172-1/+5
| | | | system_printf.
* * ldap.h (class cyg_ldap): Rename rootdse to def_context. ChangeCorinna Vinschen2015-02-173-32/+59
| | | | | | | | | | | | | | | throughout. * ldap.cc (cyg_ldap::open): Fix debug output. (cyg_ldap::fetch_ad_account): Rename rdse to base. Restrict LDAP query to users and groups only. (cyg_ldap::enumerate_ad_accounts): Rearrange filter expression for user accounts. (SYSTEM_CONTAINER): New macro. (cyg_ldap::fetch_posix_offset_for_domain): Set base in LDAP search to the "System" container in the default naming context to restrict the search scope. (cyg_ldap::fetch_unix_sid_from_ad): Add objectCategory=Person to search filter for users.
* * arm/crt0.S: Initialise __heap_limit when ARM_RDI_MONITOR is defined.Corinna Vinschen2015-02-173-1/+17
| | | | | * arm/syscalls.c: define __heap_limit global symbol. * arm/syscalls.c (_sbrk): Honour __heap_limit.
* * libc/machine/arm/aeabi_memclr.c: New file to supportCorinna Vinschen2015-02-179-5/+555
| | | | | | | | | | | | aeabi_memclr. * libc/machine/arm/aeabi_memset.c: New file to support aeabi_memset. * libc/machine/arm/aeabi_memset-soft.S: Ditto. * libc/machine/arm/aeabi_memset-arm.S: Ditto. * libc/machine/arm/aeabi_memset-thumb.S: Ditto. * libc/machine/arm/aeabi_memset-thumb2.S: Ditto. * libc/machine/arm/Makefile.am: Add dependencies. * libc/machine/arm/Makefile.in: Regenerated.
* * libc/machine/arm/aeabi_memmove.c: New file to supportCorinna Vinschen2015-02-178-3/+351
| | | | | | | | | | aeabi_memmove. * libc/machine/arm/aeabi_memmove-soft.S: Ditto. * libc/machine/arm/aeabi_memmove-arm.S: Ditto. * libc/machine/arm/aeabi_memmove-thumb.S: Ditto. * libc/machine/arm/aeabi_memmove-thumb2.S: Ditto. * libc/machine/arm/Makefile.am: Add dependencies. * libc/machine/arm/Makefile.in: Regenerated.
* *** empty log message ***Corinna Vinschen2015-02-161-1/+1
|
* * spawn.cc (find_exec): Extend preceeding comment to explain moreCorinna Vinschen2015-02-162-2/+22
| | | | | detailed what's going on in this function. Overwrite potential symlink target with original path.
* * setup-files.xml (setup-files): Drop hint to set HOME in WindowsCorinna Vinschen2015-02-163-13/+19
| | | | | | environment. * setup-env.xml (setup-env-ov): Discourage setting HOME in the Windows environment.
* * posix.xml (std-gnu): Add missing __mempcpy.Corinna Vinschen2015-02-152-0/+5
|
* * i686.din (__mempcpy): Move symbol export from here...Corinna Vinschen2015-02-154-1/+9
| | | | * common.din (__mempcpy): ... to here.
* Fix layout of ChangeLog entryCorinna Vinschen2015-02-151-0/+16
|
* * path.h (path_conv): Make path_flags private. Rename known_suffix toCorinna Vinschen2015-02-159-78/+80
| | | | | | | | | | | | | | suffix and make private. Rename normalized_path to posix_path and make privtae. Accommodate name changes throughout in path_conv methods. (path_conv::known_suffix): New method. Use throughout instead of accessing suffix directly. (path_conv::get_win32): Constify. (path_conv::get_posix): New method to read posix_path. Use throughout instead of accessing normalized_path directly. (path_conv::set_posix): Rename from set_normalized_path. Accommodate name change throughout. * spawn.cc (find_exec): Return POSIX path, not Win32 path.
* *** empty log message ***Corinna Vinschen2015-02-121-0/+9
|