From: Alex Elsayed <eternaleye@gmail.com>
To: linux-mm@kvack.org
Cc: linux-kernel@vger.kernel.org
Subject: Re: RFC: named anonymous vmas
Date: Sat, 22 Jun 2013 12:47:29 -0700 [thread overview]
Message-ID: <kq4v0b$p8p$3@ger.gmane.org> (raw)
In-Reply-To: CAMbhsRTz246dWPQOburNor2HvrgbN-AWb2jT_AEywtJHFbKWsA@mail.gmail.com
Colin Cross wrote:
> On Sat, Jun 22, 2013 at 3:31 AM, Christoph Hellwig <hch@infradead.org>
> wrote:
>> On Fri, Jun 21, 2013 at 04:42:41PM -0700, Colin Cross wrote:
>>> ranges, which John Stultz has been implementing. The second is
>>> anonymous shareable memory without having a world-writable tmpfs that
>>> untrusted apps could fill with files.
>>
>> I still haven't seen any explanation of what ashmem buys over a shared
>> mmap of /dev/zero in that respect, btw.
>
> I believe the difference is that ashmem ties the memory to an fd, so
> it can be passed to another process and mmaped to get to the same
> memory, but /dev/zero does not. Passing a /dev/zero fd and mmaping it
> would result in a brand new region of zeroed memory. Opening a tmpfs
> file would allow sharing memory by passing the fd, but we don't want a
> world-writable tmpfs.
Couldn't this be done by having a root-only tmpfs, and having a userspace
component that creates per-app directories with restrictive permissions on
startup/app install? Then each app creates files in its own directory, and
can pass the fds around.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2013-06-22 19:47 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-21 23:42 RFC: named anonymous vmas Colin Cross
2013-06-21 23:42 ` Colin Cross
2013-06-22 5:12 ` Kyungmin Park
2013-06-22 5:12 ` Kyungmin Park
2013-06-22 5:20 ` Colin Cross
2013-06-22 5:20 ` Colin Cross
2013-06-22 10:31 ` Christoph Hellwig
2013-06-22 10:31 ` Christoph Hellwig
2013-06-22 17:30 ` Colin Cross
2013-06-22 17:30 ` Colin Cross
2013-06-22 19:47 ` Alex Elsayed [this message]
2013-06-24 11:48 ` Christoph Hellwig
2013-06-24 11:48 ` Christoph Hellwig
2013-06-24 17:26 ` Colin Cross
2013-06-24 17:26 ` Colin Cross
2013-06-24 23:45 ` John Stultz
2013-06-24 23:45 ` John Stultz
2013-06-26 18:53 ` Alex Elsayed
2013-07-14 0:57 ` Sam Ben
2013-07-14 0:57 ` Sam Ben
2013-08-01 8:29 ` Christoph Hellwig
2013-08-01 8:29 ` Christoph Hellwig
2013-08-01 8:36 ` Rich Felker
2013-08-01 8:36 ` Rich Felker
2013-08-02 15:11 ` Christoph Hellwig
2013-08-02 15:11 ` Christoph Hellwig
2013-08-03 23:54 ` KOSAKI Motohiro
2013-08-03 23:54 ` KOSAKI Motohiro
2013-07-14 0:27 ` Sam Ben
2013-07-14 0:27 ` Sam Ben
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='kq4v0b$p8p$3@ger.gmane.org' \
--to=eternaleye@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.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.