summaryrefslogtreecommitdiff
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
* common: Make issetugid check simplerDaiki Ueno2019-06-181-15/+1
|
* Release 0.23.16Daiki Ueno2019-05-221-1/+1
|
* Release 0.23.15Daiki Ueno2019-01-181-1/+1
|
* build: Require pkg.m4 >= 0.29 at bootstrapDaiki Ueno2018-10-311-0/+2
|
* Release 0.23.14Daiki Ueno2018-08-281-1/+1
|
* Revert "build: Explicitly link threaded test programs to libpthread"Daiki Ueno2018-08-171-10/+0
| | | | This reverts commit dc4a6eaddbb36a344cc6a9c7eb12cab9df4899b0.
* Revert "build: Stop linking the library with libpthread when possible"Daiki Ueno2018-08-171-3/+3
| | | | This reverts commit 50f8906e63c9413a7687bab6608496d83c29a222.
* Revert "common: Prefer __register_atfork() to pthread_atfork() if possible"Daiki Ueno2018-08-171-2/+0
| | | | This reverts commit ce3cec7f8742254b8627b9db48973b81e91cbfc8.
* Revert "build: Link to libpthread, if pthread_atfork() needs to be used"Daiki Ueno2018-08-171-6/+1
| | | | This reverts commit 541d79cb651cfd3238b9aa41fce70208df8e9496.
* build: Link to libpthread, if pthread_atfork() needs to be usedDaiki Ueno2018-08-101-1/+6
| | | | | | | | On non-glibc systems (e.g., FreeBSD), pthread_atfork() stub is provided as a nop and our fork detection mechanism doesn't work. Pull in the actual implementation from libpthread in that case. Signed-off-by: Daiki Ueno <dueno@redhat.com>
* Release 0.23.13Daiki Ueno2018-08-101-1/+1
|
* common: Prefer __register_atfork() to pthread_atfork() if possibleDaiki Ueno2018-08-101-0/+2
|
* build: Stop linking the library with libpthread when possibleDaiki Ueno2018-08-101-3/+3
|
* common: Use thread-local storage class when possibleDaiki Ueno2018-08-101-0/+12
| | | | | This eliminates the unconditional use of pthread_{get,set}specific() and pthread_key_{create,delete}(), which glibc doesn't provide the stubs.
* build: Explicitly link threaded test programs to libpthreadDaiki Ueno2018-08-101-0/+10
| | | | | Some test programs use pthread_create(), which glibc doesn't provide the stub. Link those programs with -lpthread.
* build: Make reallocarray detection robusterDaiki Ueno2018-07-161-0/+1
| | | | | | On NetBSD, reallocarray is not declared until _OPENBSD_SOURCE is defined. Reported by Patrick Welche in: https://lists.freedesktop.org/archives/p11-glue/2018-July/000691.html
* server: Enable socket activation through systemdDaiki Ueno2018-06-201-0/+23
| | | | | | | | | | | This enables socket activation of "p11-kit server" through systemd. The feature provided is essentially the same as commit a4fb2bb5 (reverted), but implemented with "p11-kit server" and libsystemd API instead of wrapping "p11-kit remote" in the unit file. Note that, while it exposes all tokens through the socket, it doesn't increase attack surface beyond the PKCS#11 binary interface provided by p11-kit-proxy.so, because the service is per-user.
* build: Ease issetugid() check when cross-compilingDaiki Ueno2018-06-081-7/+9
| | | | | | | | | When cross-compiling, the configure check for issetugid() aborts, because of the pessimistic default of AC_RUN_IFELSE. This patch provides the non-pessimistic default to AC_RUN_IFELSE and wrap the macro invocation with AC_CACHE_CHECK so that the user can override the check by setting ac_cv_issetugid_openbsd=yes, as suggested in: https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Runtime.html#Runtime
* Release 0.23.12Daiki Ueno2018-05-301-1/+1
|
* common: Don't rely on issetugid() when it is brokenDaiki Ueno2018-05-301-1/+14
| | | | | | | | | | | On macOS and FreeBSD, issetugid() has different semantics from the original OpenBSD implementation and cannot reliably detect if the process made setuid/setgid: https://gist.github.com/nicowilliams/4daf74a3a0c86848d3cbd9d0cdb5e26e This should fix: https://bugs.freedesktop.org/show_bug.cgi?id=67451 https://bugs.freedesktop.org/show_bug.cgi?id=100287
* build: Don't use locale funcs if locale_t is not defined in locale.hDaiki Ueno2018-05-281-3/+8
| | | | | | On macOS, locale_t is not defined in <locale.h>. Although it is defined in <xlocale.h>, we rather not use locales at all for POSIX compliance.
* Release 0.23.11Daiki Ueno2018-05-071-1/+1
|
* library: Use dedicated locale object for printing errorDaiki Ueno2018-05-011-1/+1
|
* Revert "build: Check strerror_l() and uselocale() seperately"Daiki Ueno2018-05-011-1/+1
| | | | | | | | | This reverts commit 173ad93cc54057886b2055f3d73ea64a047127d1. We should rather use newlocale() when per-thread locale is not set. Otherwise uselocale() could return LC_GLOBAL_LOCALE on some platforms (e.g. musl-libc) and calling strerror_l() with it leads to an undefined behavior.
* build: Check strerror_l() and uselocale() seperatelyDaiki Ueno2018-04-191-1/+1
| | | | | | NetBSD deliberately doesn't support per-thread locale and our thread-safe replacement of strerror() using strerror_l() cannot be used. Fallback to strerror_r() in that case.
* test: Factor out common harness from test-extract.inDaiki Ueno2018-04-101-1/+1
|
* test: Take advantage of TAP test driverDaiki Ueno2018-03-291-0/+1
|
* Release 0.23.10Daiki Ueno2018-02-271-1/+1
|
* maint: Point to the new URLsDaiki Ueno2018-02-271-2/+2
|
* build: Split out generated code from p11-kit/virtual.cDaiki Ueno2018-01-311-0/+13
|
* build: Take advantage of parallel-testsDaiki Ueno2017-10-061-1/+1
|
* Release 0.23.9Daiki Ueno2017-10-021-1/+1
|
* Release 0.23.8Daiki Ueno2017-08-151-1/+1
|
* common: Use reallocarray instead of realloc as appropriateDaiki Ueno2017-08-081-0/+1
| | | | | | reallocarray is a new POSIX function added in glibc 2.26, with built-in overflow checks. Take advantage of that function for internal array allocation.
* p11_get_upeer_id: implement case using ucred.hFabian Groffen2017-06-271-1/+2
| | | | Solaris can retrieve this information via getpeerucred().
* configure: pull in -lnsl -lsocket for socket functionsFabian Groffen2017-06-271-0/+7
| | | | Solaris has socket() etc. in these two libs.
* build: Allow use of _GNU_SOURCEDaiki Ueno2017-06-121-0/+3
| | | | | | This reverts commit 6b457ffc, which forbids the use of GNU extension for the incompatibility of strerror_r. However, now that strerror_l is used instead on glibc systems, it has no point to do that.
* compat: Prefer strerror_l to strerror_rDaiki Ueno2017-06-121-2/+2
| | | | | strerror_r is being obsolete in the next POSIX specification: http://austingroupbugs.net/view.php?id=655
* Release 0.23.7Daiki Ueno2017-05-311-1/+1
|
* Release 0.23.6Daiki Ueno2017-05-261-1/+1
|
* test: Check the size of unsigned longDaiki Ueno2017-05-261-0/+2
|
* correct text for --user-config optionDaniel Black2017-03-061-1/+1
|
* Release 0.23.5Daiki Ueno2017-03-021-1/+1
|
* systemd: Fix location of p11-kit-remoteDaiki Ueno2017-02-271-1/+0
| | | | | The p11-kit-remote executable is now located under $libexecdir, but we should use the p11-kit command to launch the subcommand.
* build: check for getpeereidRoman Bogorodskiy2017-02-241-0/+1
| | | | | | In common/unix-peer.c, we are checking if HAVE_GETPEEREID is defined, however, we never actually check if getpeereid() is available, so fix that by checking this function using AC_CHECK_FUNCS().
* Release 0.23.4Daiki Ueno2017-02-221-3/+3
|
* p11-kit: Add 'p11-kit server' commandNikos Mavrogiannopoulos2017-02-171-0/+3
| | | | | | | | This adds a new tool to the p11-kit command called 'server', which allows us to access a PKCS#11 module over a Unix domain socket. Internally, it is implemented as a wrapper around 'p11-kit remote'. Upon connection it executes 'p11-kit remote' in a forked process.
* build: Adjust executable/module names for WindowsDaiki Ueno2017-02-161-0/+2
| | | | Append EXEEXT or SHLEXT to the filename if needed.
* build: Check *asprintf on all platformsDaiki Ueno2017-02-161-3/+4
|
* build: Make libffi closure optionalDaiki Ueno2017-01-241-11/+0
| | | | | | | | libffi's closure support is not available on all platforms and may fail at run time if running under a stricter SELinux policy. Fallback to pre-compiled closures if it is not usable. https://bugs.freedesktop.org/show_bug.cgi?id=97611