From: "H. Peter Anvin" <hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
To: KOSAKI Motohiro
<kosaki.motohiro-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
Cc: akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org,
mm-commits-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
bdonlan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
drepper-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
mingo-X9Un+BFzKDI@public.gmane.org,
oleg-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
tss-X3B1VOXEql0@public.gmane.org,
xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Subject: Re: + prctl-add-pr_set_proctitle_area-option-for-prctl.patch added to -mm tree
Date: Sun, 17 Jan 2010 17:46:09 -0800 [thread overview]
Message-ID: <4B53BD61.9040609@zytor.com> (raw)
In-Reply-To: <20100118093413.AE1C.A69D9226-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
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.
next prev parent reply other threads:[~2010-01-18 1:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-30 23:23 + prctl-add-pr_set_proctitle_area-option-for-prctl.patch added to -mm tree akpm
[not found] ` <200912302323.nBUNNsGv008033-AB4EexQrvXRQetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>
2010-01-15 23:16 ` H. Peter Anvin
[not found] ` <4B50F74F.2060608-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
2010-01-18 0:56 ` KOSAKI Motohiro
[not found] ` <20100118093413.AE1C.A69D9226-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2010-01-18 1:46 ` H. Peter Anvin [this message]
[not found] ` <4B53BD61.9040609-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
2010-01-18 1:48 ` KOSAKI Motohiro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B53BD61.9040609@zytor.com \
--to=hpa-ymnouzjc4hwavxtiumwx3w@public.gmane.org \
--cc=akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
--cc=bdonlan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=drepper-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=kosaki.motohiro-+CUm20s59erQFUHtdCDX3A@public.gmane.org \
--cc=linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mingo-X9Un+BFzKDI@public.gmane.org \
--cc=mm-commits-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=oleg-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=tss-X3B1VOXEql0@public.gmane.org \
--cc=xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.