]> granicus.if.org Git - p11-kit/commit
common: Don't rely on issetugid() when it is broken
authorDaiki Ueno <dueno@redhat.com>
Tue, 29 May 2018 14:30:35 +0000 (16:30 +0200)
committerDaiki Ueno <ueno@gnu.org>
Wed, 30 May 2018 13:21:25 +0000 (15:21 +0200)
commit71b62aa1cdbdec3724c8e451f621309994dc59a0
tree4ae3c255e69f94c5920b89c1e1b91d6ffd44ebab
parent79f928492dba6a46c63e77d6b22c17c23e66403b
common: Don't rely on issetugid() when it is broken

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
common/compat.c
configure.ac