summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix a problem whereby a corrupt DNS record can cause named to crash. [11:06]Colin Percival2011-12-237-4/+86
| | | | | | | | | | | | | | | | | | | | | | | Add an API for alerting internal libc routines to the presence of "unsafe" paths post-chroot, and use it in ftpd. [11:07] Fix a buffer overflow in telnetd. [11:08] Make pam_ssh ignore unpassphrased keys unless the "nullok" option is specified. [11:09] Add sanity checking of service names in pam_start. [11:10] Approved by: so (cperciva) Approved by: re (bz) Security: FreeBSD-SA-11:06.bind Security: FreeBSD-SA-11:07.chroot Security: FreeBSD-SA-11:08.telnetd Security: FreeBSD-SA-11:09.pam_ssh Security: FreeBSD-SA-11:10.pam Notes: svn path=/releng/9.0/; revision=228843
* MFH r228410: check for null passphrases, since openssl doesn'tDag-Erling Smørgrav2011-12-111-7/+18
| | | | | | | | | | Approved by: re (kib) Security: prevents users with unencrypted ssh keys (prohibited unless the nullok option is specified) from logging in by providing a bogus non-null passphrase. Notes: svn path=/releng/9.0/; revision=228414
* Merge r228040 from head to releng/9.0:Robert Watson2011-11-282-1/+3
| | | | | | | | | | | Cross-reference capsicum.4 from cap_enter.2 and cap_new.2. Sponsored by: Google, Inc. Approved by: re (kib) Notes: svn path=/releng/9.0/; revision=228106
* MFC r227661:Konstantin Belousov2011-11-261-0/+2
| | | | | | | | | Free unused allocation on error. Approved by: re (bz) Notes: svn path=/releng/9.0/; revision=227991
* MFC r227604:David Xu2011-11-231-3/+2
| | | | | | | | | | | Pass CVWAIT flags to kernel, this should handle Timeout correctly for pthread_cond_timedwait when it uses kernel-based condition variable. Approved by: re (kib) Notes: svn path=/releng/9.0/; revision=227877
* MFC r227416:Doug Barton2011-11-181-1/+3
| | | | | | | | | Document that flock can return ENOLCK Approved by: re (kib) Notes: svn path=/releng/9.0/; revision=227682
* MFC r226836:Sergey Kandaurov2011-11-021-1/+1
| | | | | | | | | Fix the manual section number for a cross-reference to open(2) and sort it. Approved by: re (kib) Notes: svn path=/stable/9/; revision=227014
* MFC r226790:Sergey Kandaurov2011-11-011-1/+1
| | | | | | | | | Fix typo in timer_getoverrun cross-reference. Approved by: re (kib) Notes: svn path=/stable/9/; revision=226994
* MFC r226633:Dimitry Andric2011-10-2837-88/+150
| | | | | | | | | | | Upgrade our copy of llvm/clang to r142614, from upstream's release_30 branch. This brings us very close to the 3.0 release, which is expected November 16, 2011. Approved by: re (kib) Notes: svn path=/stable/9/; revision=226890
* Remove extra debuggin gsupport that is turned on for head but turned offKen Smith2011-10-151-1/+1
| | | | | | | | | | | | | | | | | for stable branches: - shift to MALLOC_PRODUCTION - turn off automatic crash dumps - remove kernel debuggers, INVARIANT*[1], WITNESS* from GENERIC kernel config files [1] INVARIANT* left on for ia64 at least temporarily, marcel@ will test to see if they are still required as they had been for stable/8. Approved by: re (implicit) Notes: svn path=/stable/9/; revision=226405
* MFC r226220Hans Petter Selasky2011-10-123-8/+8
| | | | | | | | | Fix libusb compliance. Approved by: re (kib) Notes: svn path=/stable/9/; revision=226307
* MFH r225810 r225812: make passive mode the default.Dag-Erling Smørgrav2011-10-042-8/+19
| | | | | | | Approved by: re (kib) Notes: svn path=/stable/9/; revision=226015
* - Fix a trivial bug in iconv. When there is no space to perform theGabor Kovesdan2011-09-191-2/+1
| | | | | | | | | | | | conversion, conversion must fail and errno must be set to E2BIG. PR: standards/160673 Submitted by: Henning Petersen <henning.petersen@t-online.de> Reviewed by: pluknet Approved by: re (kib), delphij (mentor) Notes: svn path=/head/; revision=225678
* Implement missing USB debug information functions.Hans Petter Selasky2011-09-197-4/+184
| | | | | | | | Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=225659
* Fix cpio on ARM.Tim Kientzle2011-09-132-4/+4
| | | | | | | | | | PR: bin/160430 Submitted by: Ian Lepore Approved by: re (Kostik Belousov) MFC after: 7 days Notes: svn path=/head/; revision=225525
* Upgrade to BIND version 9.8.1. Release notes at:Doug Barton2011-09-031-0/+12
|\ | | | | | | | | | | | | | | | | | | | | https://deepthought.isc.org/article/AA-00446/81/ or /usr/src/contrib/bind9/ Approved by: re (kib) Notes: svn path=/head/; revision=225361
| * Vendor import of BIND 9.8.1vendor/bind9/9.8.1Doug Barton2011-09-01126-1004/+1923
| | | | | | | | | | Notes: svn path=/vendor/bind9/dist/; revision=225305 svn path=/vendor/bind9/9.8.1/; revision=225306; tag=vendor/bind9/9.8.1
| * Vendor import of BIND 9.8.0-P4vendor/bind9/9.8.0-P4Doug Barton2011-07-16401-4051/+36972
| | | | | | | | | | Notes: svn path=/vendor/bind9/dist/; revision=224090 svn path=/vendor/bind9/9.8.0-P4/; revision=224091; tag=vendor/bind9/9.8.0-P4
| * Vendor import of BIND 9.6-ESV-R4-P3vendor/bind9/9.6-ESV-R4-P3Doug Barton2011-07-0510-59/+78
| | | | | | | | | | Notes: svn path=/vendor/bind9/dist/; revision=223803 svn path=/vendor/bind9/9.6-ESV-R4-P3/; revision=223804; tag=vendor/bind9/9.6-ESV-R4-P3
| * Vendor import of BIND 9.6-ESV-R4-P1vendor/bind9/9.6-ESV-R4-P1Doug Barton2011-05-27581-622/+629
| | | | | | | | | | Notes: svn path=/vendor/bind9/dist/; revision=222393 svn path=/vendor/bind9/9.6-ESV-R4-P1/; revision=222394; tag=vendor/bind9/9.6-ESV-R4-P1
* | Cosmetic cleanup: remove #define LIBMEMSTAT used to prevent a nestedSergey Kandaurov2011-09-021-1/+0
| | | | | | | | | | | | | | | | | | | | | | include of opt_vmpage.h from vm/vm_page.h. opt_vmpage.h was retired before 7.0 together with options PQ_NOOPT. Approved by: re (kib) MFC after: 3 days Notes: svn path=/head/; revision=225330
* | Import additional bugfix for reading and extracting makefs-createdMartin Matuska2011-09-021-8/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ISO images with tar. Vendor revision 3648 (merge of 3647): Additional fix to issue 168 because the change of r3642 was not sufficient. - Make sure "CL" entry appear after its "RE" entry which the "CL" entry should be connected with. - Give consideration to the case that the top level "RE" entry has already been exposed outside before its tree. Approved by: re (kib) Obtained from: libarchive (release/2.8, svn rev 3648) MFC after: 3 days Notes: svn path=/head/; revision=225329
* | Bump shared libraries version numbers in preparation for 9.0.Konstantin Belousov2011-08-288-6/+9
| | | | | | | | | | | | | | | | | | | | | | This time, only libraries which ABI has been changed compared to stable/8, are bumped. ABI analysis done by: Gleb Kurtsou Approved by: re (kensmith) Notes: svn path=/head/; revision=225227
* | Clarify the behaviour of sigwait() on signal interruption, and noteKonstantin Belousov2011-08-252-2/+20
| | | | | | | | | | | | | | | | | | the difference between sigwait() and sigtimedwait()/sigwaitinfo(). Approved by: re (bz) Notes: svn path=/head/; revision=225172
* | Import bugfix for reading and extracting of FreeBSD ISO images with tar.Martin Matuska2011-08-259-197/+390
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upstream revision 3645 (merge of 3642): Change the mechanism handling a rr_moved directory, which is Rockridge extension that can exceed the limitation of a maximum directory depth of ISO 9660. - Stop reading all entries at a time. - Connect "CL" entry to "RE" entry dynamically, which "CL" and "RE" have information to rebuild a full directory tree. - Tweak some related tests since we use Headsort for re-ordering entries and it cannot make a steady order when the keies of the entries are the same. http://code.google.com/p/libarchive/issues/detail?id=168 Reviewed by: kientzle Approved by: re (kib) Obtained from: libarchive (release/2.8, svn rev 3645) MFC after: 3 days Notes: svn path=/head/; revision=225167
* | Spelling corrections for LibUSB manual page (2/2).Hans Petter Selasky2011-08-221-64/+70
| | | | | | | | | | | | | | | | | | MFC after: 1 week Approved by: re (kib) PR: docs/159898 Notes: svn path=/head/; revision=225091
* | Whitespace corrections for LibUSB manual page (1/2).Hans Petter Selasky2011-08-221-183/+118
| | | | | | | | | | | | | | | | | | MFC after: 1 week Approved by: re (kib) PR: docs/159898 Notes: svn path=/head/; revision=225090
* | Use correct enum instead of constant value.Hans Petter Selasky2011-08-201-1/+1
| | | | | | | | | | | | | | | | | | MFC after: 1 week Spotted by: scf @ Approved by: re (kib) Notes: svn path=/head/; revision=225035
* | Add experimental support for process descriptorsJonathan Anderson2011-08-184-3/+191
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A "process descriptor" file descriptor is used to manage processes without using the PID namespace. This is required for Capsicum's Capability Mode, where the PID namespace is unavailable. New system calls pdfork(2) and pdkill(2) offer the functional equivalents of fork(2) and kill(2). pdgetpid(2) allows querying the PID of the remote process for debugging purposes. The currently-unimplemented pdwait(2) will, in the future, allow querying rusage/exit status. In the interim, poll(2) may be used to check (and wait for) process termination. When a process is referenced by a process descriptor, it does not issue SIGCHLD to the parent, making it suitable for use in libraries---a common scenario when using library compartmentalisation from within large applications (such as web browsers). Some observers may note a similarity to Mach task ports; process descriptors provide a subset of this behaviour, but in a UNIX style. This feature is enabled by "options PROCDESC", but as with several other Capsicum kernel features, is not enabled by default in GENERIC 9.0. Reviewed by: jhb, kib Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc Notes: svn path=/head/; revision=224987
* | Update LibUSB v1.0 manual page:Hans Petter Selasky2011-08-162-22/+34
| | | | | | | | | | | | | | | | | | | | | | | | - fix some minor spelling - fix some style - add description of new function MFC after: 1 week Approved by: re (kib) Notes: svn path=/head/; revision=224917
* | Add missing function to get device speed to the LibUSB v1.0 API.Hans Petter Selasky2011-08-162-0/+30
| | | | | | | | | | | | | | | | MFC after: 1 week Approved by: re (kib) Notes: svn path=/head/; revision=224903
* | Cross-reference cap_new(2) from dup(2), as they have similar functionality.Robert Watson2011-08-141-1/+7
| | | | | | | | | | | | | | Approved by: re (kib) Notes: svn path=/head/; revision=224864
* | Updates to libprocstat(3) and procstat(1) to allow monitoring CapsicumRobert Watson2011-08-142-11/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | capability mode and capabilities. Right now no attempt is made to unwrap capabilities when operating on a crashdump, so further refinement is required. Approved by: re (bz) Sponsored by: Google Inc Notes: svn path=/head/; revision=224859
* | Fix a pathname (s,netinet/if_ether.h,net/ethernet.h,).Hiroki Sato2011-08-081-1/+1
| | | | | | | | | | | | | | | | | | PR: docs/159341 Submitted by: Garrett Cooper Approved by: re (kib) Notes: svn path=/head/; revision=224701
* | Merge revision 3554 from libarchive's release/2.8 branch:Martin Matuska2011-08-073-16/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Partial merge of 2431 from trunk: Retry writes on EINTR. This should fix the SIGINT handler in bsdtar. Note: The rest of r2431 can't be merged, since it interacts with a big write-side rearchitecture. PR: bin/149409 Reviewed by: kientzle Approved by: re (kib) MFC after: 3 days Notes: svn path=/head/; revision=224700
* | Change lwp to int64_t as thr_pread_long() always uses a 64-bit valueMarius Strobl2011-08-071-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in order to account for LP64 targets when cross-debugging on ILP32, allowing r224683 to compile on ILP32. Note that thr_p{read,write}_{long,ptr}() still incorrectly use the size of the respective types on the host rather than that on the target when accessing the target address space which still needs to be fixed. This means that r224683 alone may not be sufficient to solve the problem it's intended to fix when cross-debugging. Approved by: re (hrs) Notes: svn path=/head/; revision=224693
* | Add compatibility for ISO images created with unfixed makefs thatMartin Matuska2011-08-0711-35/+317
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | violated ECMA-119 (ISO9660): allow reserved4 to be 0x20 in PVD. This allows tar to read FreeBSD distribution ISO images created with makefs prior to NetBSD bin/45217 bugfix (up to 9.0-BETA1). In addition, merge following important bugfixes from libarchive's release/2.8 branch: Revision 2812: Merge 2811 from trunk: Don't try to verify that compression-level=0 produces larger results than the default compression, since this isn't true for all versions of liblzma. Revision 2817: Merge 2814 from trunk: Fix Issue 121 (mtree parser error) http://code.google.com/p/libarchive/issues/detail?id=121 Revision 2820: Fix issue 119. Change the file location check that a file location does not exceed volume block. New one is that a file content does not exceed volume block(end of an ISO image). It is better than previous check even if the issue did not happen. While reading an ISO image generated by an older version of mkisofs utility, a file location indicates the end the ISO image if its file size is zero and it is the last file of all files of the ISO image, so it is possible that the location value is the same as the number of the total block of the ISO image. http://code.google.com/p/libarchive/issues/detail?id=119 Revision 2955: Issue 134: Fix libarchive 2.8 crashing in archive_write_finish() when the open has failed and we're trying to write Zip format. http://code.google.com/p/libarchive/issues/detail?id=134 Revision 2958: Followup on Issue 134: 1) Port test_open_failure to libarchive 2.8 branch to test the problem reported in Issue 134. This test also shows that archive_read_open() sometimes fails to report open errors correctly. 2) Fix the bug in archive_read.c 3) Comment out the tests that close functions are invoked promptly when open fails; that's fully fixed in libarchive 3.0, but I don't think it's worth fixing here. Revision 3484: Use uintmax_t with %ju Revision 3487: Fix issue 163. Correctly allocate enough memory for a input buffer saved. http://code.google.com/p/libarchive/issues/detail?id=163 Revision 3542: Merge 2516, 2536 from trunk: Allow path table offset values of 0 and 18, which are used by some ISO writers. Reviewed by: kientzle Approved by: re (kib) MFC after: 3 days Notes: svn path=/head/; revision=224691
* | ImplementMarius Strobl2011-08-061-5/+30
| | | | | | | | | | | | | | | | | | Reviewed by: marcel Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=224685
* | Use the size of struct fpreg rather than of the pointer to it when copyingMarius Strobl2011-08-061-2/+5
| | | | | | | | | | | | | | | | | | | | | | the FPU state. Reviewed by: marcel Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=224684
* | The tid member of struct pthread actually is long so read it as such.Marius Strobl2011-08-061-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | Accessing it as an int causes failure on big-endian LP64, i.e. mips64be, powerpc64 and sparc64. Reviewed by: marcel Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=224683
* | Add support for PBVM addresses. In a nutshell this means:Marcel Moolenaar2011-08-061-7/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o get the physical address and size of the PBVM page table. This can be found in the bootinfo structure, of which the physical address is recorded as the ELF entry point. o translate region 4 virtual addresses to physical addresses using the PBVM page table. In _kvm_kvatop() make the distinction between physical address and core file offset a little clearer to avoid confusion. To further enhance readability, always store the translated address into pa so that it's obvious how the translation from va to pa happened. Approved by: re (blanket) Notes: svn path=/head/; revision=224680
* | The result of a joint work between rrs@ and myself at the IETF:Michael Tuexen2011-08-031-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Decouple the path supervision using a separate HB timer per path. * Add support for potentially failed state. * Bring back RTO.min to 1 second. * Accept packets on IP-addresses already announced via an ASCONF * While there: do some cleanups. Approved by: re@ MFC after: 2 months. Notes: svn path=/head/; revision=224641
* | fix a serious bug in libproc's proc_attachAndriy Gapon2011-08-031-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | proc_attach always frees any struct proc_handle data that it allocates, but that is supposed to be done only in error conditions. PR: bin/158431 Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=224632
* | Get rid of MAXCPU knowledge used for internal needs only. Switch toSergey Kandaurov2011-08-016-64/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | dynamic memory allocation to hold per-CPU memory types data (sized to mp_maxid for UMA, and to mp_maxcpus for malloc to match the kernel). That fixes libmemstat with arbitrary large MAXCPU values and therefore eliminates MEMSTAT_ERROR_TOOMANYCPUS error type. Reviewed by: jhb Approved by: re (kib) Notes: svn path=/head/; revision=224569
* | MFprojects/hid:Alexander Motin2011-07-301-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fix usbhidctl and usbhidaction to handle HID devices with multiple report ids, such as multimedia keyboards. - Add collection type and report id to the `usbhidctl -r` output. They are important for proper device understanding and debugging. - Fix usbhidaction tool to properly handle items having report_count more then 1. Approved by: re (kib) MFC after: 2 weeks Notes: svn path=/head/; revision=224511
* | Remove incorrect attribution.George V. Neville-Neil2011-07-211-1/+1
| | | | | | | | | | | | | | | | | | Approved by: re (kib) Pointed out by: brueffer Pointy hat to: gnn Notes: svn path=/head/; revision=224253
* | Make both stpcpy and strcpy be assembly language implementationsGeorge V. Neville-Neil2011-07-213-20/+60
| | | | | | | | | | | | | | | | | | | | | | | | on amd64. Submitted by: Guillaume Morin (guillaume at morinfr.org) Reviewed by: kib, jhb Approved by: re (bz) MFC after: 1 month Notes: svn path=/head/; revision=224246
* | Add cap_new(2) and cap_getrights(2) symbols to libc.Jonathan Anderson2011-07-203-1/+478
| | | | | | | | | | | | | | | | | | | | | | These system calls have already been implemented in the kernel; now we hook up libc symbols so userspace can drive them. Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc Notes: svn path=/head/; revision=224227
* | Fix building of 32-bit compat libraries on amd64 with clang, and usingDimitry Andric2011-07-181-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -g, by reverting r219139. The LLVM PR referenced in that revision was fixed in the mean time, and we imported a clang snapshot soon afterwards, so the temporary workaround of disabling clang's integrated assembler is no longer needed. In this particular case, using e.g. DEBUG_FLAGS=-g causes clang to output certain directives into assembly that our version of GNU as chokes on. Reported by: dougb Approved by: re (kib) Notes: svn path=/head/; revision=224201
* | Rename ki_ocomm to ki_tdname and OCOMMLEN to TDNAMLEN.Bjoern A. Zeeb2011-07-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Provide backward compatibility defines under BURN_BRIDGES. Suggested by: jhb Reviewed by: emaste Sponsored by: Sandvine Incorporated Approved by: re (kib) Notes: svn path=/head/; revision=224199