summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Remove trailing whitespace per mdoc lint warningeadler2012-03-2956-135/+135
| | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days
* Fix 32-bit libgeom consumers run on 64-bit kernels with COMPAT_FREEBSD32.jmallett2012-03-292-29/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | Kernel pointer values are used as opaque unique identifiers, which are then used to reconstruct references between various providers, classes, etc., inside libgeom from the source XML. Unfortunately, they're converted to pointer-width integers (in the form of pointers) to do this, and 32-bit userland pointers cannot hold sensible representations (however opaque) of 64-bit kernel pointers on all systems. In the case where the leading bits are zero and 32 distinct bits of pointer can be identified, this will happen to work. On systems where the upper 32-bits of kernel pointers are non-zero and the same for all kernel pointers, this will result in double frees and all kinds of bizarre crashes and linkage between objects inside libgeom. To mitigate this problem, treat the opaque identifiers in the XML as C strings instead, and internalize them to give unique and consistent per-object pointer values in userland for each identifier in the XML. This allows us to keep the libgeom logic the same with only minor changes to initial setup and parsing. It might be more sensible for speed reasons to treat the identifiers as numbers of a large size (uintmax_t, say) rather than strings, but strings seem fine for now. (As an added side-effect, this makes it slightly easier to identify unresolved references, but nothing has been added to inform the user of those.)
* Fix comment to specify correct struct name.jimharris2012-03-281-2/+2
| | | | | Reviewed by: gjb Approved by: sbruno
* Add software PMC support.fabient2012-03-2826-26/+234
| | | | | | | | | | | | | New kernel events can be added at various location for sampling or counting. This will for example allow easy system profiling whatever the processor is with known tools like pmcstat(8). Simultaneous usage of software PMC and hardware PMC is possible, for example looking at the lock acquire failure, page fault while sampling on instructions. Sponsored by: NETASQ MFC after: 1 month
* Fix Fo arguments.joel2012-03-281-1/+1
| | | | Reviewed by: gabor
* mdoc: add missing El macro.joel2012-03-271-0/+2
|
* Minor indentation and paragraph nits.joel2012-03-271-4/+4
|
* Remove useless Ta macro.joel2012-03-273-14/+14
|
* Minor mdoc nit.joel2012-03-271-1/+1
|
* Handle MIPS .reginfo section as ELF_T_BYTEgonzo2012-03-261-0/+2
|
* mdoc: correct .Bd/.Bl arguments.joel2012-03-262-7/+7
| | | | Reviewed by: brueffer
* mdoc: sort prologue macros.joel2012-03-268-8/+8
|
* Register signal 33 explicitly as reserved by real-time library, andrmh2012-03-262-7/+5
| | | | | | | use it by its new name (SIGLIBRT) rather than internal definition in librt (SIGSERVICE). Approved by: davidxu, arch
* mdoc: remove unknown macro.joel2012-03-262-2/+0
|
* libthr: In the atfork handlers for signals, do not skip the last signal.jilles2012-03-261-3/+3
| | | | | | | | _SIG_MAXSIG works a bit unexpectedly: signals 1 till _SIG_MAXSIG are valid, both bounds inclusive. Reviewed by: davidxu MFC after: 1 week
* mdoc: remove empty lines.joel2012-03-262-2/+0
|
* This string should be quoted.joel2012-03-261-1/+1
| | | | Noticed by: brueffer
* mdoc: terminate quoted strings.joel2012-03-263-23/+23
| | | | Reviewed by: brueffer
* Fix date.joel2012-03-261-1/+1
|
* Use program exit status as pam_exec return code (optional)dumbbell2012-03-262-38/+362
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pam_exec(8) now accepts a new option "return_prog_exit_status". When set, the program exit status is used as the pam_exec return code. It allows the program to tell why the step failed (eg. user unknown). However, if it exits with a code not allowed by the calling PAM service module function (see $PAM_SM_FUNC below), a warning is logged and PAM_SERVICE_ERR is returned. The following changes are related to this new feature but they apply no matter if the "return_prog_exit_status" option is set or not. The environment passed to the program is extended: o $PAM_SM_FUNC contains the name of the PAM service module function (eg. pam_sm_authenticate). o All valid PAM return codes' numerical values are available through variables named after the return code name. For instance, $PAM_SUCCESS, $PAM_USER_UNKNOWN or $PAM_PERM_DENIED. pam_exec return code better reflects what went on: o If the program exits with !0, the return code is now PAM_PERM_DENIED, not PAM_SYSTEM_ERR. o If the program fails because of a signal (WIFSIGNALED) or doesn't terminate normally (!WIFEXITED), the return code is now PAM_SERVICE_ERR, not PAM_SYSTEM_ERR. o If a syscall in pam_exec fails, the return code remains PAM_SYSTEM_ERR. waitpid(2) is called in a loop. If it returns because of EINTR, do it again. Before, it would return PAM_SYSTEM_ERR without waiting for the child to exit. Several log messages now include the PAM service module function name. The man page is updated accordingly. Reviewed by: gleb@, des@ Sponsored by: Yakaz (http://www.yakaz.com) MFC after: 2 weeks
* mdoc: document title should be all caps.joel2012-03-251-1/+1
|
* Make sure sections are sorted into conventional order.joel2012-03-253-29/+29
|
* Remove superfluous paragraph macro.joel2012-03-2535-38/+0
|
* Update manual pages for MIPS-related CPUs:gonzo2012-03-253-6/+261
| | | | | | | | - Rename pmc.mips to pmc.mips24k since it covers just one CPU, no whole architecture - Add documetnations for Octeon's PMC counters - Remove CAVEATS section from pmc.mips24k page: PMC for MIPS supports sampling now.
* Minor mdoc fixes.joel2012-03-241-11/+1
|
* Build libproc and librtld_db for MIPSgonzo2012-03-241-0/+5
|
* - Avoid using deprecated heimdal functions in pam_krb5.stas2012-03-242-69/+102
|
* Make libproc compilable for MIPSgonzo2012-03-232-0/+11
|
* Add handler for MIPS.options sectiongonzo2012-03-231-0/+2
|
* Silence alignment warnings from clang in libarchive's ppmd code (whichdim2012-03-231-0/+1
| | | | | is actually third-party code). Clang even warns about alignment issues on x86, and the warnings are not needed there.
* Make utmpx(3) thread safe if we support TLS.ed2012-03-232-0/+9
| | | | | | Because the utmpx interface is generally not required to be thread-safe, but it is nice to have, if easy to do so. Therefore don't make a mess out of the code and only use it if __NO_TLS is not defined.
* - Do not build libcom_err and compile_et when kerberos is disabled. Theystas2012-03-231-1/+4
| | | | | depends on several heimdal libraries and not used by anything but kerberos tools.
* Add Octeon-related parts to libpmcgonzo2012-03-231-0/+21
|
* Correct a function prototype.jkoshy2012-03-221-1/+1
| | | | Submitted by: "Anders Magnusson" <ragge at ludd.ltu.se>, via joel
* Make reusable part of code have mips prefix, not mips24gonzo2012-03-221-9/+10
|
* - Avoid use of deprecated KRB5 functions.stas2012-03-222-15/+25
|
* Fix style. Somehow I managed to lost a space when copy&paste.pluknet2012-03-221-1/+1
| | | | Pointed out by: stefanf
* Prevent fs_file NULL pointer dereference in fixfsfile() uncovered after r1.5pluknet2012-03-221-1/+1
| | | | | | when passing damaged user-supplied fstab file data. MFC after: 1 week
* - Update FreeBSD Heimdal distribution to version 1.5.1. This also bringsstas2012-03-227-0/+20
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | several new kerberos related libraries and applications to FreeBSD: o kgetcred(1) allows one to manually get a ticket for a particular service. o kf(1) securily forwards ticket to another host through an authenticated and encrypted stream. o kcc(1) is an umbrella program around klist(1), kswitch(1), kgetcred(1) and other user kerberos operations. klist and kswitch are just symlinks to kcc(1) now. o kswitch(1) allows you to easily switch between kerberos credentials if you're running KCM. o hxtool(1) is a certificate management tool to use with PKINIT. o string2key(1) maps a password into key. o kdigest(8) is a userland tool to access the KDC's digest interface. o kimpersonate(8) creates a "fake" ticket for a service. We also now install manpages for some lirbaries that were not installed before, libheimntlm and libhx509. - The new HEIMDAL version no longer supports Kerberos 4. All users are recommended to switch to Kerberos 5. - Weak ciphers are now disabled by default. To enable DES support (used by telnet(8)), use "allow_weak_crypto" option in krb5.conf. - libtelnet, pam_ksu and pam_krb5 are now compiled with error on warnings disabled due to the function they use (krb5_get_err_text(3)) being deprecated. I plan to work on this next. - Heimdal's KDC now require sqlite to operate. We use the bundled version and install it as libheimsqlite. If some other FreeBSD components will require it in the future we can rename it to libbsdsqlite and use for these components as well. - This is not a latest Heimdal version, the new one was released while I was working on the update. I will update it to 1.5.2 soon, as it fixes some important bugs and security issues.
| * - Update vendor tree of heimdal to 1.5.1.stas2011-10-0832-15261/+35060
| |
| * - Import Heimdal 1.5 distribution.stas2011-10-051509-52863/+406559
| |
| * - Kill files that do not belong to the laters heimdal version imported.stas2011-09-2961-8736/+0
| |
| * - Disable keyword expansion on vendor heimdal code.stas2011-09-291-1/+1
| |
| * - Flatten the vendor heimdal tree.stas2011-09-29945-0/+253324
|
* Revert previous change. It is an incomplete change from old branch. :-(davidxu2012-03-211-60/+39
|
* Use version 2 of semaphore provided by kernel umtx code, now if there isdavidxu2012-03-211-39/+60
| | | | | | | no waiters, we still increase and decrease count in user mode without entering kernel, once there is a waiter, sem_post will enter kernel to increase count and wake thread up, this is atomicy and allow us to gracefully destroy semaphore after sem_wait returned.
* Import new version of libcxxrt. Now works correctly with libobjc2 to implementtheraven2012-03-201-0/+5
| | | | | | the unified exception model for Objective-C++. Approved by: dim (mentor)
* Add symbol versioning to libcxxrt.theraven2012-03-192-0/+319
| | | | Approved by: dim (mentor)
* Make __get_locale() static inline, not just inline, so when compiling libc intheraven2012-03-191-1/+1
| | | | | | debug mode (without optimisations) it doesn't generate a linker failure. Approved by: dim (mentor)
* Remove trailing whitespace.bjk2012-03-191-2/+2
| | | | Approved by: hrs (mentor)
OpenPOWER on IntegriCloud