On 01/17/2010 04:56 PM, KOSAKI Motohiro wrote:
>>
>> Sorry for the late feedback...
>>
>> On the subject of this patch: would it also make sense to have a prctl()
>> to give the kernel the address of the "environ" variable, so that
>> /proc/*/environ can give the *current* environment inside the process
>> (which is otherwise strictly a user-space matter) as opposed to the
>> initial environment passed by the kernel (unless modified in-place)?
>
> Thank you good comments!
> I have two comments.
>
> 1 Yes, to change /proc/*/environ makes lots sense. probably.
> My last worry is, If security aware daemon want to hide environment
> intentionally,
> it should be able to do. iow, automatical environ area finding seems bad.
> probably we need new prctl or new syscall.
Finding environ automatically is not only bad, but totally impractical
(how would the kernel know where environ is?) However, libc could
invoke a prctl to point the kernel at environ.
-hpa
--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.
--
To unsubscribe from this list: send the line "unsubscribe linux-api" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html