summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge OpenBSM alpha 5 from OpenBSM vendor branch to head, bothRobert Watson2009-01-141-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | contrib/openbsm (svn merge) and src/sys/{bsm,security/audit} (manual merge). Hook up bsm_domain.c and bsm_socket_type.c to the libbsm build along with man pages, add audit_bsm_domain.c and audit_bsm_socket_type.c to the kernel environment. OpenBSM history for imported revisions below for reference. MFC after: 1 month Sponsored by: Apple Inc. Obtained from: TrustedBSD Project OpenBSM 1.1 alpha 5 - Stub libauditd(3) man page added. - All BSM error number constants with BSM_ERRNO_. - Interfaces to convert between local and BSM socket types and protocol families have been added: au_bsm_to_domain(3), au_bsm_to_socket_type(3), au_domain_to_bsm(3), and au_socket_type_to_bsm(3), along with definitions of constants in audit_domain.h and audit_socket_type.h. This improves interoperability by converting local constant spaces, which vary by OS, to and from Solaris constants (where available) or OpenBSM constants for protocol domains not present in Solaris (a fair number). These routines should be used when generating and interpreting extended socket tokens. - Fix build warnings with full gcc warnings enabled on most supported platforms. - Don't compile error strings into bsm_errno.c when building it in the kernel environment. - When started by launchd, use the label com.apple.auditd rather than org.trustedbsd.auditd. Notes: svn path=/head/; revision=187214
* MFp4: //depot/projects/usb@156092Andrew Thompson2009-01-131-0/+2
| | | | | | | | | Make sure all claimed interfaces gets released at close. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=187184
* Document that ffsll(3) and flsll(3) functions first appeared inKonstantin Belousov2009-01-131-1/+1
| | | | | | | | | | FreeBSD 7.1 Submitted by: Jan Henrik Sylvester <me janh de> MFC after: 3 days Notes: svn path=/head/; revision=187147
* Use __gnu89_inline so that these files will compile with newer versionsDavid Schultz2009-01-135-5/+5
| | | | | | | | | of gcc, where the meaning of 'inline' was changed to match C99. Noticed by: rdivacky Notes: svn path=/head/; revision=187128
* "The first part is just to give more info, the latter part fixesTim Kientzle2009-01-131-2/+5
| | | | | | | | | | | an error to read files past the 32bit byte offset, for instance on DVDs." Submitted by: phk@ MFC after: 10 days Notes: svn path=/head/; revision=187126
* - add missing includeDaniel Gerzo2009-01-121-2/+3
| | | | | | | | | | | - fix struct memeber's name [1] PR: docs/130413 [1] Submitted by: Thomas Mueller <tmueller@sysgo.com> [1] MFC after: 3 days Notes: svn path=/head/; revision=187098
* o Language improvements from OpenBSD;Xin LI2009-01-121-17/+17
| | | | | | | | | o Use an ISC-style license as did by the author. Obtained from: OpenBSD Notes: svn path=/head/; revision=187091
* o ANSIfy.Xin LI2009-01-121-29/+12
| | | | | | | | | o Use ISC style copyright as did by the author. Obtained from: OpenBSD Notes: svn path=/head/; revision=187090
* Sort MLINKS.Ruslan Ermilov2009-01-091-21/+32
| | | | Notes: svn path=/head/; revision=186957
* Remove reference to no longer existing document.Poul-Henning Kamp2009-01-091-5/+0
| | | | | | | Spotted by: Bjoern Voigt <bjoern@cs.tu-berlin.de> Notes: svn path=/head/; revision=186941
* Set the error indicator on an attempt to write to a read-only stream.David Schultz2009-01-081-0/+1
| | | | | | | | PR: 127335 MFC after: 2 weeks Notes: svn path=/head/; revision=186887
* Fix the types of INFINITY and NAN, which were broken in r131851. TheyDavid Schultz2009-01-081-2/+2
| | | | | | | | | | | should both be floats, not doubles. PR: 127795 Submitted by: Christoph Mallon MFC after: 2 weeks Notes: svn path=/head/; revision=186886
* Document the special loopback address behaviour of jails.Bjoern A. Zeeb2009-01-061-1/+7
| | | | | | | | | | PR: kern/103464 Submitted by: brueffer (correct markup) Reviewed by: brueffer MFC after: 2 weeks Notes: svn path=/head/; revision=186834
* - forgot to bump a dateDaniel Gerzo2009-01-061-1/+1
| | | | Notes: svn path=/head/; revision=186819
* catch up wtih r175955 by ume:Daniel Gerzo2009-01-061-53/+2
| | | | | | | - the support of AI_ALL and AI_V4MAPPED has been completely removed. Notes: svn path=/head/; revision=186817
* put a prefix on dhcp options to avoid clobbering, even by mistake,Luigi Rizzo2009-01-051-1/+1
| | | | | | | | | existing environment variables. MFC after: 2 weeks Notes: svn path=/head/; revision=186799
* Note that the protocol argument can be set to 0.Tom Rhodes2009-01-051-1/+6
| | | | | | | | PR: 127890 Reviewed by: rwatson Notes: svn path=/head/; revision=186769
* Add a README.Joseph Koshy2009-01-051-0/+12
| | | | Notes: svn path=/head/; revision=186758
* Sync with usb4bsd:Alfred Perlstein2009-01-041-14/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/lib/libusb20/libusb20_desc.c Make "libusb20_desc_foreach()" more readable. src/sys/dev/usb2/controller/*.[ch] src/sys/dev/usb2/core/*.[ch] Implement support for USB power save for all HC's. Implement support for Big-endian EHCI. Move Huawei quirks back into "u3g" driver. Improve device enumeration. src/sys/dev/usb2/ethernet/*[ch] Patches for supporting new AXE Gigabit chipset. src/sys/dev/usb2/serial/*[ch] Fix IOCTL return code. src/sys/dev/usb2/wlan/*[ch] Sync with old USB stack. Submitted by: hps Notes: svn path=/head/; revision=186730
* Don't make the MIME magic any longer.David E. O'Brien2009-01-021-5/+2
| | | | Notes: svn path=/head/; revision=186693
* Don't try to read the next Gzip header after we reach theTim Kientzle2009-01-011-2/+3
| | | | | | | | | | | end of the compressed stream. This is desirable behavior, but the implementation here is very broken and causes strange problems, so disable it for now. Thanks to Simon L. Nielsen for reporting this problem. Notes: svn path=/head/; revision=186670
* Merge OpenBSM alpha 4 from OpenBSM vendor branch to head, bothRobert Watson2008-12-313-1/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | contrib/openbsm (svn merge) and src/sys/{bsm,security/audit} (manual merge). Add libauditd build parts and add to auditd's linkage; force libbsm to build before libauditd. OpenBSM history for imported revisions below for reference. MFC after: 1 month Sponsored by: Apple Inc. Obtained from: TrustedBSD Project OpenBSM 1.1 alpha 4 - With the addition of BSM error number mapping, we also need to map the local error number passed to audit_submit(3) to a BSM error number, rather than have the caller perform that conversion. - Reallocate user audit events to avoid collisions with Solaris; adopt a more formal allocation scheme, and add some events allocated in Solaris that will be of immediate use on other platforms. - Add an event for Calife. - Add au_strerror(3), which allows generating strings for BSM errors directly, rather than requiring applications to map to the local error space, which might not be able to entirely represent the BSM error number space. - Major auditd rewrite for launchd(8) support. Add libauditd library that is shared between launchd and auditd. - Add AUDIT_TRIGGER_INITIALIZE trigger (sent via 'audit -i') for (re)starting auditing under launchd(8) on Mac OS X. - Add 'current' symlink to active audit trail. - Add crash recovery of previous audit trail file when detected on audit startup that it has not been properly terminated. - Add the event AUE_audit_recovery to indicated when an audit trail file has been recovered from not being properly terminated. This event is stored in the new audit trail file and includes the path of recovered audit trail file. - Mac OS X and FreeBSD dependent code in auditd.c is separated into auditd_darwin.c and auditd_fbsd.c files. - Add an event for the posix_spawn(2) and fsgetpath(2) Mac OS X system calls. - For Mac OS X, we use ASL(3) instead of syslog(3) for logging. - Add support for NOTICE level logging. OpenBSM 1.1 alpha 3 - Add two new functions, au_bsm_to_errno() and au_errno_to_bsm(), to map between BSM error numbers (largely the Solaris definitions) and local errno(2) values for 32-bit and 64-bit return tokens. This is required as operating systems don't agree on some of the values of more recent error numbers. - Fix a bug how au_to_exec_args(3) and au_to_exec_env(3) calculates the total size for the token. This buge. - Deprecated Darwin constants, such as TRAILER_PAD_MAGIC, removed. Notes: svn path=/head/; revision=186647
* Include param.h instead of types.h when using user.h. Otherwise there isRobert Watson2008-12-272-2/+2
| | | | | | | | | | a dependence on ucred.h including audit.h including param.h, which we would like to eliminate. MFC after: 3 weeks Notes: svn path=/head/; revision=186512
* Document that kldunloadf can return EINVAL.Tom Rhodes2008-12-251-1/+5
| | | | | | | PR: 125639 Notes: svn path=/head/; revision=186489
* Updates for version 9.4.3Doug Barton2008-12-236-24/+169
| | | | Notes: svn path=/head/; revision=186463
* Add support for the FPA floating-point format on ARM. TheMarcel Moolenaar2008-12-234-5/+35
| | | | | | | | | | | | FPA floating-point format is identical to the VFP format, but is always stored in big-endian. Introduce _IEEE_WORD_ORDER to describe the byte-order of the FP representation. Obtained from: Juniper Networks, Inc Notes: svn path=/head/; revision=186461
* Update copyrights and comments as of 9.4.3 (no functional changes)Doug Barton2008-12-234-8/+8
| | | | Notes: svn path=/head/; revision=186450
* If conversion from UTF8 fails, don't mark Unicode text as available.Tim Kientzle2008-12-231-1/+2
| | | | | | | | Submitted by: Michihiro NAKAJIMA MFC after: 30 days Notes: svn path=/head/; revision=186422
* Teach get_refdir() about FreeBSD's /usr/obj convention.Tim Kientzle2008-12-211-34/+45
| | | | | | | | | In development, I run libarchive_test frequently by hand and it gets tedious having to specify a suitable -r path all of the time. Notes: svn path=/head/; revision=186366
* Initialize the cntp pointer to 0 prior to doing any work so that callersJoe Marcus Clarke2008-12-192-8/+10
| | | | | | | | | | | don't try to iterate through garbage or NULL memory. Additionally, return NULL instead of 0 on error. Reviewed by: peter Approved by: peter Notes: svn path=/head/; revision=186314
* Fill in a missing constTim Kientzle2008-12-171-1/+1
| | | | Notes: svn path=/head/; revision=186248
* Exit earlier on failure in this test.Tim Kientzle2008-12-171-2/+2
| | | | Notes: svn path=/head/; revision=186247
* Once the test has failed, exit before the segfault.Tim Kientzle2008-12-171-2/+11
| | | | Notes: svn path=/head/; revision=186246
* Update the ar write test to give more detailed information about failures.Tim Kientzle2008-12-171-44/+44
| | | | Notes: svn path=/head/; revision=186245
* Clarify an 'ar' error message.Tim Kientzle2008-12-171-1/+1
| | | | Notes: svn path=/head/; revision=186244
* 1. Update fetch to consistently return 1 on error, as the man page states,Murray Stokely2008-12-171-8/+0
| | | | | | | | | | | | | rather than usually returning 1 but in a few instances using a sysexits(3) return value. 2. Remove a few unused variables from libfetch. PR: docs/122470 (1, only) Reviewed by: des Notes: svn path=/head/; revision=186241
* Add support for HTTP 1.1 If-Modified-Since behavior.Murray Stokely2008-12-153-4/+50
| | | | | | | | | | | | | | | | | fetch(1) accepts a new argument -i <file> that if specified will cause the file to be downloaded only if it is more recent than the mtime of <file>. libfetch(3) accepts the mtime in the url structure and a flag to indicate when this behavior is desired. PR: bin/87841 Submitted by: Jukka A. Ukkonen <jau@iki.fi> (partially) Reviewed by: des, ru MFC after: 3 weeks Notes: svn path=/head/; revision=186124
* This main goals of this project are:Qing Li2008-12-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. separating L2 tables (ARP, NDP) from the L3 routing tables 2. removing as much locking dependencies among these layers as possible to allow for some parallelism in the search operations 3. simplify the logic in the routing code, The most notable end result is the obsolescent of the route cloning (RTF_CLONING) concept, which translated into code reduction in both IPv4 ARP and IPv6 NDP related modules, and size reduction in struct rtentry{}. The change in design obsoletes the semantics of RTF_CLONING, RTF_WASCLONE and RTF_LLINFO routing flags. The userland applications such as "arp" and "ndp" have been modified to reflect those changes. The output from "netstat -r" shows only the routing entries. Quite a few developers have contributed to this project in the past: Glebius Smirnoff, Luigi Rizzo, Alessandro Cerri, and Andre Oppermann. And most recently: - Kip Macy revised the locking code completely, thus completing the last piece of the puzzle, Kip has also been conducting active functional testing - Sam Leffler has helped me improving/refactoring the code, and provided valuable reviews - Julian Elischer setup the perforce tree for me and has helped me maintaining that branch before the svn conversion Notes: svn path=/head/; revision=186119
* Add an ENVIRONMENT section to note that the RSH variable can be set toMurray Stokely2008-12-141-0/+7
| | | | | | | | | | | override the use of the rsh(1) program in rcmd(3). PR: docs/51133 Obtained from: NetBSD, partially MFC after: 3 weeks Notes: svn path=/head/; revision=186095
* Merge the resolver part of BIND 9.4.3 into HEAD.Hajimu UMEMOTO2008-12-147-28/+182
| | | | | | | | | | | | | It includes the following fix: 2426. [bug] libbind: inet_net_pton() can sometimes return the wrong value if excessively large netmasks are supplied. [RT #18512] Reported by: Maksymilian Arciemowicz <cxib__at__securityreason.com> Notes: svn path=/head/; revision=186090
* Consolidate some variable initializations. No substantive change.David Schultz2008-12-112-13/+13
| | | | Notes: svn path=/head/; revision=185904
* Move the xprintf hook to where it belongs; it shouldn't be in theDavid Schultz2008-12-101-6/+4
| | | | | | | middle of vfprintf's variable declarations. Notes: svn path=/head/; revision=185825
* o Use full month name in .Dd macro.Maxim Konovalov2008-12-091-1/+1
| | | | Notes: svn path=/head/; revision=185789
* Add strndup(3) prototype to string.h.Konstantin Belousov2008-12-082-2/+2
| | | | | | | | | | | | | | This change was erronously ommitted from the r185690, and attempt to simply add the prototype to string.h has revealed that several contributed programs defined local prototypes for strndup(), controlled by autoconfed config.h. So, manually change #undef HAVE_STRNDUP to #define HAVE_STRNDUP 1. Next import of the corresponding program would regenerate config.h, overriding the changes in this commit. No objections from: kan Notes: svn path=/head/; revision=185777
* Obey the TMPDIR, TMP, TEMP, or TEMPDIR environment variablesTim Kientzle2008-12-081-1/+14
| | | | | | | | when choosing a scratch directory for the tests. Fallback to "/tmp", of course. Notes: svn path=/head/; revision=185771
* Document processor errata that affect performance measurement.Joseph Koshy2008-12-081-0/+52
| | | | Notes: svn path=/head/; revision=185763
* Add filler man pages for the kinfo functions I added recently.Peter Wemm2008-12-073-1/+149
| | | | | | | While here, hook up the hexdump(3) man page which wasn't being installed. Notes: svn path=/head/; revision=185729
* When libthr and rtld start up, there are a number of magic spells castPeter Wemm2008-12-071-1/+1
| | | | | | | | | | | | | | | | | in order to get the symbol binding state "just so". This is to allow locking to be activated and not run into recursion problems later. However, one of the magic bits involves an explicit call to _umtx_op() to force symbol resolution. It does a wakeup operation on a fake, uninitialized (ie: random contents) umtx. Since libthr isn't active, this is harmless. Nothing can match the random wakeup. However, valgrind finds this and is not amused. Normally I'd just write a suppression record for it, but the idea of passing random args to syscalls (on purpose) just doesn't feel right. Notes: svn path=/head/; revision=185728
* Import the strndup(3) function.Konstantin Belousov2008-12-064-3/+75
| | | | | | | | | | | Copyright attribution is kept the same as in original NetBSD source. Submitted by: Florian Smeets <flo kasimir com> Obtained from: NetBSD MFC after: 2 weeks Notes: svn path=/head/; revision=185690
* Order the str*.c files mostly alphabetical.Konstantin Belousov2008-12-061-3/+3
| | | | | | | | Submitted by: Florian Smeets <flo kasimir com> MFC after: 2 weeks Notes: svn path=/head/; revision=185689