util-lib: wrap personality() to fix up broken glibc error handling (#6766)
authorLennart Poettering <lennart@poettering.net>
Fri, 8 Sep 2017 14:16:29 +0000 (16:16 +0200)
committerEvgeny Vereshchagin <evvers@ya.ru>
Fri, 8 Sep 2017 14:16:29 +0000 (17:16 +0300)
commit21022b9dded0baa21f7715625fbc24db9aebebde
tree5bd9d7f09dba1cbf13e8b67b6ec6ee3541d8e9b3
parent5463fa0a88f95d2002858592578f9bf4e0d2660a
util-lib: wrap personality() to fix up broken glibc error handling (#6766)

glibc appears to propagate different errors in different ways, let's fix
this up, so that our own code doesn't get confused by this.

See #6752 + #6737 for details.

Fixes: #6755
src/basic/process-util.c
src/basic/process-util.h
src/core/execute.c
src/nspawn/nspawn.c
src/test/test-seccomp.c