{"id":1099,"url":"https://patchwork.libcamera.org/api/1.1/covers/1099/?format=json","web_url":"https://patchwork.libcamera.org/cover/1099/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20190424110044.12608-1-giulio.benetti@micronovasrl.com>","date":"2019-04-24T11:00:42","name":"[libcamera-devel,0/2] improve secure_getenv()","submitter":{"id":16,"url":"https://patchwork.libcamera.org/api/1.1/people/16/?format=json","name":"Giulio Benetti","email":"giulio.benetti@micronovasrl.com"},"mbox":"https://patchwork.libcamera.org/cover/1099/mbox/","series":[{"id":268,"url":"https://patchwork.libcamera.org/api/1.1/series/268/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=268","date":"2019-04-24T11:00:42","name":"improve secure_getenv()","version":1,"mbox":"https://patchwork.libcamera.org/series/268/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/1099/comments/","headers":{"Return-Path":"<giulio.benetti@micronovasrl.com>","Received":["from mail.micronovasrl.com (mail.micronovasrl.com [212.103.203.10])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id CF21660DB4\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 24 Apr 2019 13:00:49 +0200 (CEST)","from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1])\n\tby mail.micronovasrl.com (Postfix) with ESMTP id 588A2B014D2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 24 Apr 2019 13:00:49 +0200 (CEST)","from mail.micronovasrl.com ([127.0.0.1])\n\tby mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1])\n\t(amavisd-new, port 10026)\n\twith ESMTP id Mp-3Z80ymBXg for <libcamera-devel@lists.libcamera.org>; \n\tWed, 24 Apr 2019 13:00:48 +0200 (CEST)","from ubuntu.localdomain (88-149-228-83.v4.ngi.it [88.149.228.83])\n\tby mail.micronovasrl.com (Postfix) with ESMTPSA id BB0BCB0067F;\n\tWed, 24 Apr 2019 13:00:47 +0200 (CEST)"],"Authentication-Results":"mail.micronovasrl.com (amavisd-new); dkim=pass\n\treason=\"pass (just generated, assumed good)\" header.d=micronovasrl.com","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=micronovasrl.com;\n\th=references:in-reply-to:x-mailer:message-id:date:date:subject\n\t:subject:to:from:from; s=dkim; t=1556103648; x=1556967649; bh=Vc\n\tEnqagBzd/AeEeW2wub9PfSdvXbqyoJ5h0iyrH5By4=; b=eCWpUXrjIuL58LBUXb\n\t3uPY8P91PVoUjdgKbicG+EyRg8xAtYByVnqlc0VBeJOAyLrubu0UYGS0IVH0B/dx\n\tALb+lgO+z8UiLE1mSM/1fcSmNzEWHEQCiO96VGp2ocUfcQwU3jQjyzMtMMoVWXxT\n\tZ6R+y3qmHVvy+oQBHg3o6XRlc=","X-Virus-Scanned":"Debian amavisd-new at mail.micronovasrl.com","X-Spam-Flag":"NO","X-Spam-Score":"-2.9","X-Spam-Level":"","X-Spam-Status":"No, score=-2.9 tagged_above=-10 required=4.5\n\ttests=[ALL_TRUSTED=-1, BAYES_00=-1.9]\n\tautolearn=unavailable autolearn_force=no","From":"Giulio Benetti <giulio.benetti@micronovasrl.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Wed, 24 Apr 2019 13:00:42 +0200","Message-Id":"<20190424110044.12608-1-giulio.benetti@micronovasrl.com>","X-Mailer":"git-send-email 2.17.1","In-Reply-To":"<364aa322-85ca-2c17-984e-1e807bd832ca@micronovasrl.com>","References":"<364aa322-85ca-2c17-984e-1e807bd832ca@micronovasrl.com>","Subject":"[libcamera-devel] [PATCH 0/2] improve secure_getenv()","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.23","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","X-List-Received-Date":"Wed, 24 Apr 2019 11:00:50 -0000"},"content":"Local secure_getenv() at the moment uses getauxval(AT_SECURE), but it's\nnot always present in libc and secure_getenv() instead could be.\n\nCheck if secure_getenv() is available from libc and use it, otherwise\nworkaround it using issetugid().\n\nGiulio Benetti (2):\n  meson: check if secure_getenv() is present\n  libcamera: utils: call secure_getenv() if it exists or workaround with\n    issetugid()\n\n meson.build             | 12 ++++++++++++\n src/libcamera/utils.cpp |  8 ++++++--\n 2 files changed, 18 insertions(+), 2 deletions(-)"}