[libcamera-devel] [PATCH v2 0/2] improve secure_getenv()
Giulio Benetti
giulio.benetti at micronovasrl.com
Fri Apr 26 10:42:18 CEST 2019
Local secure_getenv() at the moment uses getauxval(AT_SECURE), but it's
not always present in libc and secure_getenv() instead could be.
Check if secure_getenv() is available from libc and use it, otherwise
workaround it using issetugid().
Changes:
V1->V2:
* improve meson.build
* fix recursive secure_getenv()
Giulio Benetti (2):
meson: check if secure_getenv() is present
libcamera: utils: call secure_getenv() if it exists or workaround with
issetugid()
meson.build | 11 +++++++++++
src/libcamera/utils.cpp | 8 ++++++--
2 files changed, 17 insertions(+), 2 deletions(-)
--
2.17.1
More information about the libcamera-devel
mailing list