[libcamera-devel] [PATCH v2 0/2] improve secure_getenv()
Giulio Benetti
giulio.benetti at micronovasrl.com
Fri Apr 26 12:28:41 CEST 2019
Hi Kieran
Il 26/04/2019 12:11, Kieran Bingham ha scritto:
> Hi Guilio,
>
> Thank you for the respin.
> These look good to me, and the tests are now passing again.
>
> For both of the patches,
>
> Reviewed-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
>
> There is a small comment from Laurent which I will apply locally before
> pusing to master.
Yes, I've seen.
> Once this is done would you like to handle bumping the
> buildroot package version?
Sure I will.
Btw, I've already tried building with test-pkg on Buildroot and in 2
cases using sparc-uclibc it gives linking problems due to linking issues
with -latomic.
I will deal with it asap.
Best regards
Giulio
> Then hopefully the automated builds on buildroot will be fixed.
> --
> Regards
>
> Kieran
>
>
> On 26/04/2019 10:42, Giulio Benetti wrote:
>> 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(-)
>>
>
--
Giulio Benetti
CTO
MICRONOVA SRL
Sede: Via A. Niedda 3 - 35010 Vigonza (PD)
Tel. 049/8931563 - Fax 049/8931346
Cod.Fiscale - P.IVA 02663420285
Capitale Sociale € 26.000 i.v.
Iscritta al Reg. Imprese di Padova N. 02663420285
Numero R.E.A. 258642
More information about the libcamera-devel
mailing list