[libcamera-devel] [PATCH 0/2] improve secure_getenv()

Giulio Benetti giulio.benetti at micronovasrl.com
Wed Apr 24 13:00:42 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().

Giulio Benetti (2):
  meson: check if secure_getenv() is present
  libcamera: utils: call secure_getenv() if it exists or workaround with
    issetugid()

 meson.build             | 12 ++++++++++++
 src/libcamera/utils.cpp |  8 ++++++--
 2 files changed, 18 insertions(+), 2 deletions(-)

-- 
2.17.1



More information about the libcamera-devel mailing list