summaryrefslogtreecommitdiff
path: root/p11-kit/p11-kit.c
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2013-07-16 22:43:37 +0200
committerStef Walter <stef@thewalter.net>2013-07-18 07:33:57 +0200
commitab1caffd9e09fd4d6ab92713de29436db0da6dea (patch)
tree0098dbb6ac26ba5d3e882155f368bc9c3010b230 /p11-kit/p11-kit.c
parent9886b39e2ebd2f711b5b0c3ca2e24694a9ffd361 (diff)
downloadp11-kit-ab1caffd9e09fd4d6ab92713de29436db0da6dea.tar.gz
open files with O_CLOEXEC when possible
This helps prevent leaked file descriptors when the library is used in a process which exec's. opendir() already uses O_CLOEXEC on platforms that support O_CLOEXEC so we don't need to make changes there. In addition read config files using p11_mmap_open() so that we get the simple benefits of O_CLOEXEC with the open() call there. https://bugzilla.redhat.com/show_bug.cgi?id=984986
Diffstat (limited to 'p11-kit/p11-kit.c')
0 files changed, 0 insertions, 0 deletions