[Patch] Define secure_getenv
Carlos O'Donell
carlos_odonell@mentor.com
Thu Jul 19 15:36:00 GMT 2012
On 7/19/2012 10:43 AM, Florian Weimer wrote:
> On 07/19/2012 03:50 PM, Florian Weimer wrote:
>> On 07/13/2012 06:07 PM, Carlos O'Donell wrote:
>>
>>> One last thing...
>>>
>>> ... it needs a testcase.
>>
>> I thought very hard about something which would not require root
>> privileges, and came up with the attached test.
>>
>> But it will not work without installing libc first (and having root
>> privileges does not change that) because the LD_* environment variables
>> are ignored by SGID programs.
>
> Never mind, statically linking the test works.
>
Excellent!
I think that static linking is a good compromise at least until we have the
discussion about installed testing (which I feel is the right way to test
anything e.g. test as close as possible to what you ship).
Cheers,
Carlos.
--
Carlos O'Donell
Mentor Graphics / CodeSourcery
carlos_odonell@mentor.com
carlos@codesourcery.com
+1 (613) 963 1026
More information about the Libc-alpha
mailing list