Thread (1 message) 1 message, 1 author, 2010-01-18

Re: + prctl-add-pr_set_proctitle_area-option-for-prctl.patch added to -mm tree

From: H. Peter Anvin <hidden>
Date: 2010-01-18 01:46:09

On 01/17/2010 04:56 PM, KOSAKI Motohiro wrote:
quoted
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help