3da543e5bd* getfacl.c (usage): Change --all to --access, --dir to --default. Align text to output of Linux tool. (longopts): Add --access and --default options.
Corinna Vinschen
2015-02-28 13:13:19 +0000
146200310f* uinfo.cc (pwdgrp::add_line): Return NULL if parsing a line failed. (pwdgrp::add_account_post_fetch): Check return value from add_line and return NULL if add_line returns NULL.
Corinna Vinschen
2015-02-28 12:12:34 +0000
9f6688dfc5* security.cc (alloc_sd): For directories, mark inherited ACEs inheritable to better follow POSIX 1003.1e rules.
Corinna Vinschen
2015-02-27 15:54:15 +0000
83b0e8cffe* sec_acl.cc (getacl): Add mask even if all group and secondary account permissions are 0.
Corinna Vinschen
2015-02-27 14:51:00 +0000
211cb4df18* uinfo.cc (pwdgrp::fetch_account_from_windows): Drop redundant test for SidTypeUser.
Corinna Vinschen
2015-02-27 14:03:29 +0000
06371539bd* sec_acl.cc (setacl): Fix bug which leads to ACE duplication in case owner SID == group SID. (getacl): Reverse order of SID test against group or owner sid to prefer owner attributes over group attributes. Disable setting group permissions equivalent to owner permissions if owner == group. Add comment to explain why. Fix indentation. * security.cc (get_attribute_from_acl): Change type of local variables containing permission to mode_t. Apply deny mask to group if group SID == owner SID to avoid Everyone permissions to spill over into group permissions. Disable setting group permissions equivalent to owner permissions if owner == group. Add comment to explain why. * uinfo.cc (pwdgrp::fetch_account_from_windows): Allow user SID as group account if user is a "Microsoft Account". Explain why. Drop workaround enforcing primary group "Users" for "Microsoft Accounts".
Corinna Vinschen
2015-02-27 12:59:09 +0000
d2f9dbb3ee2015-02-26 Steve Ellcey <sellcey@imgtec.com>
Steve Ellcey
2015-02-26 23:36:56 +0000
0fb41ffa65* ldap.cc (cyg_ldap::wait): Call cygwait with cw_infinite timeout value and with cw_sig_restart instead of cw_sig_eintr. Drop useless _my_tls.call_signal_handler call. Return EIO if cygwait failed.
Corinna Vinschen
2015-02-26 17:27:59 +0000
51a60543f0* posix_ipc.cc (ipc_mutex_lock): Revert unneeded call to signal handler.
Corinna Vinschen
2015-02-26 17:19:27 +0000
c6d1382a1a* posix_ipc.cc (ipc_mutex_lock): Add bool parameter to influence if 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.
Corinna Vinschen
2015-02-26 17:00:11 +0000
31c123f982* fhandler_termios.cc (fhandler_termios::line_edit): Fix condition for writing remaining bytes in readahead buffer in non-canonical mode.
Corinna Vinschen
2015-02-26 15:58:04 +0000
3667a9f444* sec_acl.cc (setacl): Always grant default owner entry STANDARD_RIGHTS_ALL and FILE_WRITE_ATTRIBUTES access, too.
Corinna Vinschen
2015-02-25 21:30:45 +0000
e93954138fApplied the "chgrp `id -g`" improvements suggested by Corinna for the FAQ item about SSH keys not working in 1.7.34+.
Warren Young
2015-02-25 17:41:23 +0000
cc70635c0d* security.cc (alloc_sd): Don't apply temporary workaround for chmod to DEF_USER_OBJ, DEF_GROUP_OBJ, and DEF_OTHER_OBJ ACEs.
Corinna Vinschen
2015-02-25 17:18:13 +0000
9d5309bf89* fhandler_tty.cc (fhandler_pty_slave::read): Having no input is not an error condition for tcflush.
Corinna Vinschen
2015-02-25 16:46:57 +0000
67d150ca14* libc/include/sys/cdefs.h (_GNU_SOURCE): Move check so it has an effect when _XOPEN_SOURCE is also defined.
Jon TURNEY
2015-02-25 15:58:41 +0000
28edc819f2* ntsec.xml (ntsec-mapping): Match the description of the default values for db_home, db_shell, and db_gecos to the latest changes.
Corinna Vinschen
2015-02-25 12:48:34 +0000
a1cb13411d* security.cc (alloc_sd): Fix comment style. Remove code unused for years.
Corinna Vinschen
2015-02-25 11:40:34 +0000
6db8557026* security.cc (alloc_sd): Add temporary workaround which disallows any secondary user to have more permissions than the primary group in calls to chmod. Add comment to explain why.
Corinna Vinschen
2015-02-25 11:38:48 +0000
2fdce9d618Added chgrp None ~/.ssh/* hack to FAQ item 4.40
Warren Young
2015-02-25 01:09:38 +0000
ad8d295e7c* ldap.h: Remove index macros. (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.
Corinna Vinschen
2015-02-24 20:52:57 +0000
59076540bc* fhandler.h (class fhandler_base): Add was_nonblocking status flag. * 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.
Corinna Vinschen
2015-02-24 11:05:02 +0000
d9792ab0bf* userinfo.h (struct fetch_full_grp_t): Define only when building Cygwin itself. (struct fetch_user_arg_t): Ditto.
Corinna Vinschen
2015-02-23 21:01:55 +0000
c9baa8a65b* pwdgrp.cc: Handle default fetch_user_arg_type_t in switches throughout to silence compiler.
Corinna Vinschen
2015-02-23 21:00:31 +0000
bef55bb5c3* autoload.cc (LsaLookupSids): Import. * 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.
Corinna Vinschen
2015-02-23 20:51:12 +0000
9b54770bd7* grp.cc (internal_getgroups): Check for group attributes and Everyone sid before calling internal_getgrsid.
Corinna Vinschen
2015-02-23 15:46:10 +0000
093fe9b598* cygwait.h (enum cw_wait_mask): Add cw_sig_restart. Add comments 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.
Corinna Vinschen
2015-02-23 13:56:01 +0000
b6e4adaaf1* cygwait.cc (cygwait): Move setting res to WAIT_SIGNALED to clarify when WAIT_SIGNALED is returned to the caller.
Corinna Vinschen
2015-02-23 13:32:16 +0000
f6ec73c018* winsup.h (SIGTOMASK): Add cast to sigset_t to avoid int overflow.
Corinna Vinschen
2015-02-23 12:40:01 +0000
d6f62a1178* grp.cc (internal_getgroups): Take additional timeout_ns parameter. 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.
Corinna Vinschen
2015-02-20 15:13:46 +0000
89a37499282015-02-19 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY
2015-02-20 12:15:38 +0000
09766bc8a02015-02-19 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY
2015-02-20 12:13:59 +0000
c3470988cf* ldap.cc (struct cyg_ldap_search): Add scope member. (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.
Corinna Vinschen
2015-02-18 10:25:14 +0000
8e25eb2c85* ldap.cc: Macro-ize filter expressions. Use throughout to compute required filter buffer size if filter is a local buffer.
Corinna Vinschen
2015-02-18 10:04:14 +0000
1415f18720* dump_setup.cc (check_package_files): Accommodate postinstall files in any directory whose name contains "/postinstall/", not just /etc/postinstall.
Ken Brown
2015-02-17 23:36:23 +0000
b61add2614Applied Andrey's and my improvments to FAQ item 4.2, discussed on the main ML.
Warren Young
2015-02-17 22:38:54 +0000
c6d22dd3b0* ldap.h (class cyg_ldap): Rename rootdse to def_context. Change 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.
Corinna Vinschen
2015-02-17 21:08:01 +0000
8d98f956cc* arm/crt0.S: Initialise __heap_limit when ARM_RDI_MONITOR is defined. * arm/syscalls.c: define __heap_limit global symbol. * arm/syscalls.c (_sbrk): Honour __heap_limit.
Corinna Vinschen
2015-02-17 09:30:52 +0000
72ba8b107a* libc/machine/arm/aeabi_memclr.c: New file to support 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.
Corinna Vinschen
2015-02-17 09:26:54 +0000
46ada24209* spawn.cc (find_exec): Extend preceeding comment to explain more detailed what's going on in this function. Overwrite potential symlink target with original path.
Corinna Vinschen
2015-02-16 11:49:33 +0000
99a95d1df4* setup-files.xml (setup-files): Drop hint to set HOME in Windows environment. * setup-env.xml (setup-env-ov): Discourage setting HOME in the Windows environment.
Corinna Vinschen
2015-02-16 10:23:01 +0000
75fb392aa3* i686.din (__mempcpy): Move symbol export from here... * common.din (__mempcpy): ... to here.
Corinna Vinschen
2015-02-15 09:13:03 +0000
d0695371dfFix layout of ChangeLog entry
Corinna Vinschen
2015-02-15 09:00:19 +0000
d2bd82aa92* path.h (path_conv): Make path_flags private. Rename known_suffix to 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.
Corinna Vinschen
2015-02-15 08:59:55 +0000
1072cb2e7d* sec_acl.cc (setacl): Introduce bool array "invalid" to note the invalidation of incoming acl entries while iterating over them.
Corinna Vinschen
2015-02-12 17:53:24 +0000
b49934db7f* cygheap.h (cygheap_pwdgrp::get_home): Add dnsdomain parameter to declaration in ldap-related method. (cygheap_pwdgrp::get_shell): Ditto. (cygheap_pwdgrp::get_gecos): Ditto. * ldap.cc (cyg_ldap::open): Use NO_ERROR instead of 0. (cyg_ldap::close): Reset last_fetched_sid. (cyg_ldap::fetch_ad_account): Return immediately if sid is the same as last_fetched_sid. Open LDAP connection from here. Move initialization of rdse after open call. Set last_fetched_sid if LDAP call was successful. * ldap.h (class cyg_ldap): Add member last_fetched_sid. (cyg_ldap::cyg_ldap): Initialize last_fetched_sid. (cyg_ldap::is_open): New inline method. * uinfo.cc (cygheap_pwdgrp::init): Drop initialization of db_home, db_shell and db_gecos with "cygwin desc", thus only using the fallback by default. (fetch_windows_home): Add parameter dnsdomain. Call cyg_ldap::fetch_ad_account if required. (fetch_from_path): Add parameter dnsdomain. Call fetch_windows_home accordingly. (cygheap_pwdgrp::get_home): Accomodate call to fetch_windows_home. Add dnsdomain parameter in ldap-related method. Call cyg_ldap::fetch_ad_account if required. (cygheap_pwdgrp::get_shell): Ditto. (cygheap_pwdgrp::get_gecos): Ditto. (pwdgrp::fetch_account_from_windows): Drop cyg_ldap::open call prior to cyg_ldap::fetch_ad_account call. Set is_current_user to true if we're handling the current user account. Make sure to perform the LDAP calls only for users, and only if required.
Corinna Vinschen
2015-02-12 16:55:38 +0000
54ade28dfa* ntsec.xml: Throughout fix references to the Cygwin version number.
Corinna Vinschen
2015-02-12 08:48:34 +0000
85a53bd54b* flock.cc (fhandler_base::lock): Convert accidental system_printf to debug_printf in case of non-matching file modes. Clear up debug output.
Corinna Vinschen
2015-02-11 21:45:47 +0000
117b1b1edb* dlfcn.cc (check_path_access): Drop FE_NATIVE from find_exec call. (gfpod_helper): Drop equality sign from environment variable name in call to check_path_access. * exec.cc (execlp): Drop equality sign from environment variable name in call to find_exec. (execvp): Ditto. (execvpe): Ditto. * path.h (enum fe_types): Drop FE_NATIVE. (find_exec): Rename third paramter in declaration from search. Drop equality sign from default value. * spawn.cc (perhaps_suffix): Add PC_POSIX to path_conv::check call. (find_exec): Simplify function. Iterate over POSIX pathlist rather than Windows pathlist. Drop handling of FE_NATIVE flag. Always fill posix path of incoming path_conv buf, unless FE_NNF flag is given. (av::setup): Drop equality sign from environment variable name in call to find_exec. Call unshift with normalized_path. * winf.cc (av::unshift): Drop conv parameter and code converting Windows to POSIX path. * winf.h (av::unshift): Accommodate prototype.
Corinna Vinschen
2015-02-11 13:15:59 +0000
9ab96e0fde* faq-using.xml (faq.using.startup-slow): New entry.
Corinna Vinschen
2015-02-11 08:52:04 +0000
d260e92859* syscalls.cc (fhandler_base::stat_fixup): Generate unique inode number for /dev/tty under all circumstances. Add to comment.
Corinna Vinschen
2015-02-10 20:41:16 +0000
a6791b3bc7* regtool.cc (longopts): Add --force option. (opts): Add -f option. (restore_flags): New variable. (usage): Clarify working of save action. Add restore action. Add description for -f/--force option. (set_privilege): Drop function. The Cygwin DLL is doing that anyway. (cmd_save): Drop call to set_privilege. (cmd_restore): New function. (main): Handle -f/--force option.
Corinna Vinschen
2015-02-03 15:14:57 +0000
db9a8c9983* Throughout, replace http with https as far as cygwin.com and sourceware.org URLs are concerned. * Throughout, simplify ulink expressions if the visible text is the URL anyway. * faq-programming.xml (faq.programming.dll-relocatable): Remove. * faq-setup.xml (faq.setup.name-with-space): Change for 1.7.34. (faq.setup.home): Ditto. * faq-using.xml (faq.using.printing): Clarify old links and availability of a2ps and file. (faq.using.xemacs): Drop outdated version info and pointers to native XEmacs. (faq.using.ntemacs): Remove. * faq-what.xml (faq.what.what): Rephrase to reflect reality. (faq.what.supported): Ditto. (faq.what.who): Rephrase slightly. * legal.xml: Bump copyright. * setup-net.xml (internet-setup): Fix references to setup executables.
Corinna Vinschen
2015-02-03 13:48:43 +0000
0f5a7b350f* mkvers.sh: Automate generating the copyright date in the version resource. * winver.rc: Ditto.
Corinna Vinschen
2015-02-03 13:15:49 +0000
1f3dd90552* libc/stdlib/wcstold.c (wcstold): Add implementation for when long double is not the same as double.
Nick Clifton
2015-01-29 08:37:26 +0000
4c8daae24d* Makefile.in: Simplify rule to build dependencies from cygwin dir.
Corinna Vinschen
2015-01-28 11:46:25 +0000
6340d0ff91* Makefile.in (VERSION_OFILES): New variable containing object files with version information. Use throughout. (clean): Drop winver_stamp. (version.cc winver.o): Drop empty rule. (winver_stamp): Convert to rule targeting version.cc and winver.o directly. Drop touching winver_stamp. Fix typo.
Corinna Vinschen
2015-01-28 11:43:06 +0000
73b4c40205* uname.cc (uname): Shorten "WOW64" to "WOW" to account for the new Windows 10 OS version "10.0" starting with preview build 9926.
Corinna Vinschen
2015-01-24 19:56:42 +0000
185784962a* fhandler.h (class fhandler_process): Add fd_type member. * fhandler_process.cc (process_tab): Fix indentation. (fhandler_process::exists): Rely on format_process_fd returning file type in fd_type. (struct process_fd_t): Add fd_type member. (fhandler_process::fill_filebuf): Allow format_process_fd to set this->fd_type member. (format_process_fd): Fix path evaluation to allow recognizing trailing path components. Fix check for file descriptor path component. Return virt_symlink in fd_type if no trailing path compenents exist, return virt_fsdir otherwise and copy full resulting path into destbuf. * path.cc (path_conv::check): If /proc/$PID/fd symlink has trailing path components, reparse resulting path as if it's the incoming path. Add comment to wail over the outdated and hackish check method, and to explain what we do here.
Corinna Vinschen
2015-01-22 13:46:12 +0000