summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * libc/include/pwd.h: Include <sys/cdefs.h>.Corinna Vinschen2014-02-093-0/+7
| | | | * libc/include/grp.h: Ditto.
* *** empty log message ***Corinna Vinschen2014-02-091-0/+15
|
* Introduce reading passwd/group entries from SAM/AD. IntroduceCorinna Vinschen2014-02-0929-837/+2717
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /etc/nsswitch.conf file to configure it. * Makefile.in (DLL_OFILES): Add ldap.o. * autoload.cc: Import ldap functions from wldap32.dll. (DsEnumerateDomainTrustsW): Import. (NetGroupGetInfo): Import. * cygheap.h (class cygheap_domain_info): New class to keep global domain info. (class cygheap_pwdgrp): New class to keep passwd/group caches and configuration info from /etc/nssswitch.conf. (struct init_cygheap): Add cygheap_domain_info member "dom" and cygheap_pwdgrp member "pg". * cygtls.h (struct _local_storage): Remove unused member "res". Rearrange slightly, Add members pwbuf and grbuf to implement non-caching passwd/group fetching from SAM/AD. Make pw_pos and pw_pos unsigned. * fhandler_disk_file.cc (fhandler_base::fstat_by_nfs_ea): Add RFC 2307 uid/gid mapping. * fhandler_process.cc: Drop including pwdgrp.h. * fhandler_procsysvipc.cc: Ditto. * fhandler_registry.cc (fhandler_registry::fstat): Set key uid/gid to ILLEGAL_UID/ILLEGAL_GID rather than UNKNOWN_UID/UNKNOWN_GID. * grp.cc (group_buf): Drop. (gr): Drop. (pwdgrp::parse_group): Fill pg_grp. (pwdgrp::read_group): Remove. (pwdgrp::init_grp): New method. (pwdgrp::prep_tls_grbuf): New method. (pwdgrp::find_group): New methods. (internal_getgrsid): Convert to call new pwdgrp methods. (internal_getgrnam): Ditto. (internal_getgrgid): Ditto. (getgrgid_r): Drop 2nd parameter from internal_getgrgid call. (getgrgid32): Ditto. (getgrnam_r): Ditto for internal_getgrnam. (getgrnam32): Ditto. (getgrent32): Convert to call new pwdgrp methods. (internal_getgrent): Remove. (internal_getgroups): Simplify, especially drop calls to internal_getgrent. * ldap.cc: New file implementing cyg_ldap class for LDAP access to AD and RFC 2307 server. * ldap.h: New header, declaring cyg_ldap class. * passwd.cc (passwd_buf): Drop. (pr): Drop. (pwdgrp::parse_passwd): Fill pg_pwd. (pwdgrp::read_passwd): Remove. (pwdgrp::init_pwd): New method. (pwdgrp::prep_tls_pwbuf): New method. (find_user): New methods. (internal_getpwsid): Convert to call new pwdgrp methods. (internal_getpwnam): Ditto. (internal_getpwuid): Ditto. (getpwuid32): Drop 2nd parameter from internal_getpwuid call. (getpwuid_r): Ditto. (getpwnam): Ditto for internal_getpwnam. (getpwnam_r): Ditto. (getpwent): Convert to call new pwdgrp methods. * path.cc (class etc): Remove all methods. * path.h (class etc): Drop. * pinfo.cc (pinfo_basic::pinfo_basic): Set gid to ILLEGAL_GID rather than UNKNOWN_GID. (pinfo_init): Ditto. * pwdgrp.h (internal_getpwnam): Drop 2nd parameter from declaration. (internal_getpwuid): Ditto. (internal_getgrgid): Ditto. (internal_getgrnam): Ditto. (internal_getgrent): Drop declaration. (enum fetch_user_arg_type_t): New type. (struct fetch_user_arg_t): New type. (struct pg_pwd): New type. (struct pg_grp): New type. (class pwdgrp): Rework to provide functions for file and db requests and caching. (class ugid_cache_t): New class to provide RFC 2307 uid map caching. (ugid_cache): Declare. * sec_acl.cc: Drop including pwdgrp.h. * sec_auth.cc: Drop including dsgetdc.h and pwdgrp.h. (get_logon_server): Convert third parameter to ULONG flags argument to allow arbitrary flags values in DsGetDcNameW call and change calls to this function throughout. Use cached account domain name rather than calling GetComputerNameW. (get_unix_group_sidlist): Remove. (get_server_groups): Drop call to get_unix_group_sidlist. (verify_token): Rework token group check without calling internal_getgrent. * sec_helper.cc (cygpsid::pstring): New methods, like string() but return pointer to end of string. (cygsid::getfromstr): Add wide character implementation. (get_sids_info): Add RFC 2307 uid/gid mapping for Samba shares. * security.cc: Drop including pwdgrp.h. * security.h (DEFAULT_UID): Remove. (UNKNOWN_UID): Remove. (UNKNOWN_GID): Remove. (uinfo_init): Move here from winsup.h. (ILLEGAL_UID): Ditto. (ILLEGAL_GID): Ditto. (UNIX_POSIX_OFFSET): Define. Add lengthy comment. (UNIX_POSIX_MASK): Ditto. (MAP_UNIX_TO_CYGWIN_ID): Ditto. (ILLEGAL_UID16): Move here from winsup.h. (ILLEGAL_GID16): Ditto. (uid16touid32): Ditto. (gid16togid32): Ditto. (sid_id_auth): New convenience macro for SID component access. (sid_sub_auth_count): Ditto. (sid_sub_auth): Ditto. (sid_sub_auth_rid): Ditto. (cygpsid::pstring): Declare. (cygsid::getfromstr): Declare wide character variant. (cygsid::operator=): Ditto. (cygsid::operator*=): Ditto. (get_logon_server): Change declaration according to source code. * setlsapwd.cc (setlsapwd): Drop 2nd parameter from internal_getpwnam call. * shared.cc (memory_init): Call cygheap->pg.init in first process. * syscalls.cc: Drop including pwdgrp.h. * tlsoffsets.h: Regenerate. * tlsoffsets64.h: Ditto. * uinfo.cc (internal_getlogin): Drop gratuitious internal_getpwuid call. Fix debug output. Overwrite user gid in border case of a missing passwd file while a group file exists. (pwdgrp::add_line): Allocate memory on cygheap. (pwdgrp::load): Remove. (ugid_cache): Define. (cygheap_pwdgrp::init): New method. (cygheap_pwdgrp::nss_init_line): New method. (cygheap_pwdgrp::_nss_init): New method. (cygheap_domain_info::init): New method. (logon_sid): Define. (get_logon_sid): New function. (pwdgrp::add_account_post_fetch): New method. (pwdgrp::add_account_from_file): New methods. (pwdgrp::add_account_from_windows): New methods. (pwdgrp::check_file): New method. (pwdgrp::fetch_account_from_line): New method. (pwdgrp::fetch_account_from_file): New method. (pwdgrp::fetch_account_from_windows): New method. * winsup.h: Move aforementioned macros and declarations to security.h.
* * sigproc.cc (sig_send): Don't bother with an error message if we are exiting.Christopher Faylor2014-02-092-6/+8
|
* 2014-02-07 Jon TURNEY <jon.turney@dronecode.org.uk>Jon TURNEY2014-02-094-1/+280
| | | | | | * minidumper.cc: New file. * Makefile.in (CYGWIN_BINS): Add minidumper. * utils.xml (minidumper): New section.
* Fix ChangeLogCorinna Vinschen2014-02-081-0/+1
|
* * miscfuncs.h (class NT_readline): New class to implement line-wiseCorinna Vinschen2014-02-084-79/+109
| | | | | | | reading from file using native NT functions. * miscfuncs.cc (NT_readline::init): New method. * mount.cc (mount_info::from_fstab): Utilize NT_readline to read fstab files.
* * fhandler_disk_file.cc (fhandler_disk_file::fchown): Fix typo inCorinna Vinschen2014-02-066-11/+36
| | | | | | | | | | | comment. * mount.cc (mount_info::from_fstab): Use tmp_pathbuf rather than stack for big local buffer. * net.cc (cygwin_gethostname): Call GetComputerNameExA rather than GetComputerNameA if gethostname failed. * shared.cc (user_info::initialize): Fix formatting. * include/sys/file.h: Define flock and accompanying macros if not already defined in sys/_default_fcntl.h.
* PR target/59788Rainer Orth2014-02-052-1/+7
| | | | | * ltmain.sh (opt_duplicate_compiler_generated_deps): Enable on *solaris2*.
* 2014-02-04 Matthias Braun <matze@braunis.de>Jeff Johnston2014-02-042-1/+5
| | | | * libm/mathfp/sf_numtest.c: Fix NaN/Inf detection logic.
* * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 29.Corinna Vinschen2014-02-042-1/+5
|
* * aarch64/Makefile.in (RDIMON_SCRIPTS): Rule to build in-tree copiesRichard Earnshaw2014-02-032-2/+12
| | | | | | of scripts. (all): Build the in-tree copies of the scripts. (clean): Also delete the in-tree copies of the scripts.
* *** empty log message ***Corinna Vinschen2014-01-312-2/+6
|
* * fhandler.h (cltype): Add cl_buf_beg, cl_buf_end.Christopher Faylor2014-01-313-14/+29
| | | | | | | | * fhandler_console.cc (dev_console::console_attrs::set_cl_x): Honor buffer locations. (dev_console::console_attrs::set_cl_y): Ditto. (fhandler_console::write): On reset, use absolute positioning to go to beginning of buffer. Clear entire buffer.
* * msp430/Makefile.in (crt0-minrt.o, crtn-minrt.o): New. BuildDJ Delorie2014-01-307-24/+96
| | | | | | | | | | | | from crt0.S with -DMINRT. (CRT_OBJS): Expand. (crt_%.o): New rule pattern. Build multiple objects from crt0.S. * msp430/crt0.S: Further break out functionality. Support -DMINRT that omits all init/fini logic. * msp430/crtn.S: Likewise. * msp430/msp430-sim.ld: Wildcard all .crt_* sections, sorted. * msp430/msp430.ld: Likewise. * msp430/msp430xl-sim.ld: Likewise.
* * faq-setup.xml: Minor snapshot instruction rewording. Update discussion aboutChristopher Faylor2014-01-294-17/+17
| | | | | | setup*.exe. * faq-using.xml: Update information about setup*.exe. * faq-what.xml: Ditto.
* * aarch64/cpu-init/rdimon-aem-el3.S (flat_map): Use bic-immediateCorinna Vinschen2014-01-282-2/+6
| | | | form to clear WXN bit.
* * new-features.xml (ov-new1.7.28): Add new section.Corinna Vinschen2014-01-272-1/+28
|
* *** empty log message ***Corinna Vinschen2014-01-271-0/+4
|
* * gendef (_setjmp (x86)): Save FPU control word location in sequentialChristopher Faylor2014-01-272-4/+10
| | | | | location. Adjust sigstack save accordingly. (_longjmp (x86)): Ditto for restore.
* * gendef (sigdelayed (x86_64)): Save and restore FPU control word.Corinna Vinschen2014-01-272-4/+41
| | | | | | | (_sigdelayed (x86)): Ditto. Save and restore XMM registers. Add comment. (_setjmp (x86)): Save FPU control word, following FreeBSD here. (_longjmp (x86)): Restore FPU control word.
* update copyrightChristopher Faylor2014-01-273-3/+3
|
* Fix typoChristopher Faylor2014-01-271-1/+1
|
* * winf.cc (linebuf::fromargv): Treat '=' as a special character.Christopher Faylor2014-01-242-1/+5
|
* 2014-01-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>Jeff Johnston2014-01-242-1/+9
| | | | | * aarch64/cpu-init/rdimon-aem-el3.S (flat_map): Clear WXN bit in SCTLR_EL3. Add dsb.
* * security.h (open_local_policy): Remove declaration.Corinna Vinschen2014-01-234-25/+44
| | | | | | | | | | | | | | | (lsa_open_policy): Declare. (lsa_close_policy): Declare. * sec_auth.cc (lsa_open_policy): Rename from open_local_policy. Take server name as parameter. Return NULL in case of error, rather than INVALID_HANDLE_VALUE. (lsa_close_policy): Rename from close_local_policy. Make externally available. Get handle by value. (create_token): Convert call to open_local_policy/close_local_policy according to aforementioned changes. (lsaauth): Ditto. (lsaprivkeyauth): Ditto. * setlsapwd.cc (setlsapwd): Ditto.
* * Makefile.common: Don't drop -gFOO switches when filtering CFLAGSCorinna Vinschen2014-01-222-2/+7
| | | | and CXXFLAGS.
* * path.cc (etc::test_file_change): In case of NtQueryFullAttributesFileCorinna Vinschen2014-01-222-2/+7
| | | | returning an error, only return true if file actually exists.
* merge from gccDJ Delorie2014-01-213-142/+13
|
* * include/cygwin/in6.h (struct ipv6_rt_hdr): Define.Corinna Vinschen2014-01-203-14/+35
| | | | | | | | | | * include/cygwin/socket.h: Fix formatting. (IP_UNICAST_IF): Define. (IPV6_JOIN_GROUP): Remove Windowism. (IPV6_LEAVE_GROUP): Ditto. (IPV6_UNICAST_IF): Define. (IPV6_TCLASS): Ditto. (IPV6_RECVTCLASS): Ditto.
* * libc/include/setjmp.h (longjmp): Fix copy/paste error.Corinna Vinschen2014-01-202-1/+6
|
* * libc/include/setjmp.h (longjmp): Mark "noreturn" when building withCorinna Vinschen2014-01-192-1/+10
| | | | GCC.
* * include/netinet/ip6.h: New file, copied from FreeBSD vebatim.Corinna Vinschen2014-01-184-1/+359
|
* * dtable.h (dtable::lock): Revert static.Christopher Faylor2014-01-172-2/+8
| | | | (dtable::unlock): Ditto.
* * libc/include/pwd.h: Use __foo_VISIBLE macros from sys/cdefs.h.Corinna Vinschen2014-01-172-2/+15
| | | | (setpassent): Declare.
* * passwd.cc (setpassent): Align to BSD definition.Corinna Vinschen2014-01-172-2/+6
|
* *** empty log message ***Corinna Vinschen2014-01-171-0/+12
|
* * syscalls.cc (popen): Introduce Glibc 'e' flag to allow thread-safeCorinna Vinschen2014-01-172-12/+48
| | | | opening of the pipe with O_CLOEXEC flag. Simplify FD_CLOEXEC handling.
* * include/sys/file.h (LOCK_SH): Drop definition in favor of newCorinna Vinschen2014-01-172-20/+13
| | | | | | | | | | | | definitions in newlib. (LOCK_EX): Ditto. (LOCK_NB): Ditto. (LOCK_UN): Ditto. (flock): Ditto. (F_OK): Drop. Already correctly defined in unistd.h. (X_OK): Ditto. (W_OK): Ditto. (R_OK): Ditto.
* * libc/include/sys/_default_fcntl.h (LOCK_SH): Define.Corinna Vinschen2014-01-172-1/+19
| | | | | | | (LOCK_EX): Likewise. (LOCK_NB): Likewise. (LOCK_UN): Likewise. (flock): Declare.
* * include/cygwin/config.h (_STDIO_BSD_SEMANTICS): Define as 1.Corinna Vinschen2014-01-172-1/+6
|
* Introduce _STDIO_BSD_SEMANTICS flag to switch fclose/exit file flushingCorinna Vinschen2014-01-175-6/+51
| | | | | | | | | | | | | | semantics from POSIX to BSD. * libc/stdio/fclose.c (_fclose_r): Conditionalize file flushing on _STDIO_BSD_SEMANTICS. Call __sflush_r rather than _fflush_r. Add comment. * libc/stdio/fflush.c (__sflushw_r): New function, only available if _STDIO_BSD_SEMANTICS is defined. * libc/stdio/findfp.c (_cleanup_r): Call _fwalk_reent rather than _fwalk. Conditionalize cleanup function call on _STDIO_BSD_SEMANTICS. Add comments. Add FIXME. * libc/stdio/local.h (__sflushw_r): Declare if _STDIO_BSD_SEMANTICS is defined.
* * dtable.h (dtable::lock): Make static.Christopher Faylor2014-01-162-4/+8
|
* 2014-01-10 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2014-01-103-2/+8
| | | | | | * arm/configure.in: Revert previous fix and change host_makefile_frag to calculate the absolute location of srcdir/../config/default.mh. * arm/configure: Regenerated.
* .Christopher Faylor2014-01-081-0/+3
|
* * exceptions.h (cygwin_exception::open_stackdumpfile): Move old function intoChristopher Faylor2014-01-083-6/+19
| | | | | | | | | class. (cygwin_exception::h): New member. (cygwin_exception::cygwin_exception): Initialize h to NULL. * exceptions.cc (cygwin_exception::open_stackdumpfile): Move into cygwin_exception class. Use 'h' class member. (cygwin_exception::dumpstack): Close stack dump file handle if opened.
* 2014-01-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2014-01-073-1323/+1436
| | | | | * arm/configure.in: Fix host_makefile_frag to use ac_abs_srcdir. * arm/configure: Regenerated.
* * faq-programming.xml: Update packages needed to build Cygwin.Corinna Vinschen2014-01-072-4/+16
|
* 2014-01-06 Sebastian Huber <sebastian.huber@embedded-brains.de>Jeff Johnston2014-01-065-10/+50
| | | | | | | | | | | | | | | | | | | | | | | | * libc/include/sys/_default_fcntl.h (AT_FDCWD): Define according to POSIX. (AT_EACCESS): Likewise. (AT_SYMLINK_NOFOLLOW): Likewise. (AT_SYMLINK_FOLLOW): Likewise. (AT_REMOVEDIR): Likewise. (openat): Declare according to POSIX. * libc/include/stdio.h (renameat): Likewise. * libc/include/sys/stat.h (fchmodat): Likewise. (fstatat): Likewise. (mkdirat): Likewise. (mkfifoat): Likewise. (mknodat): Likewise. (utimensat): Likewise. (futimens): Likewise. * libc/include/sys/unistd.h (faccessat): Likewise. (fchownat): Likewise. (linkat): Likewise. (readlinkat): Likewise. (symlinkat): Likewise. (unlinkat): Likewise.
* 2014-01-06 Mike Frysinger <vapier@gentoo.org>Jeff Johnston2014-01-062-11/+19
| | | | | | | | | | * libc/search/hash.c (hash_delete): Change __uint32_t to u_int. (hash_get): Likewise. (hash_put): Likewise. (hash_seq): Likewise. (hash_sync): Likewise. Also fix former ChangeLog entry to be 2014.