[apparmor] [PATCH] libapparmor: Fix FTBFS when secure_getenv() is not available
Steve Beattie
steve at nxnw.org
Thu Mar 26 20:43:17 UTC 2015
On Thu, Mar 26, 2015 at 11:04:30AM -0500, Tyler Hicks wrote:
> Allow libapparmor to build on older systems where secure_getenv() is
> still named __secure_getenv(). This snippet was taken from the glibc
> wiki:
>
> https://sourceware.org/glibc/wiki/Tips_and_Tricks/secure_getenv
>
> Signed-off-by: Tyler Hicks <tyhicks at canonical.com>
Acked-by: Steve Beattie <steve at nxnw.org> as-is, though it perhaps
might make sense to hide this in an aa_secure_getenv() function,
to keep the ifdef rats nest contained to a single source.
> We need to start using a configuration header file (config.h) for things like
> this, the recent asprintf() redefine, etc.
>
> https://www.gnu.org/software/autoconf/manual/autoconf-2.65/html_node/Configuration-Headers.html
Agreed. I'll take a look at some point.
--
Steve Beattie
<sbeattie at ubuntu.com>
http://NxNW.org/~steve/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20150326/78510123/attachment.pgp>
More information about the AppArmor
mailing list