Re: [PATCH v3 3/7] shm: add memfd_create() syscall

2014-07-19 Thread David Herrmann
Hi On Wed, Jul 16, 2014 at 12:07 PM, Hugh Dickins wrote: > On Fri, 13 Jun 2014, David Herrmann wrote: > >> memfd_create() is similar to mmap(MAP_ANON), but returns a file-descriptor >> that you can pass to mmap(). It can support sealing and avoids any >> connection to user-visible mount-points. T

Re: [PATCH v3 3/7] shm: add memfd_create() syscall

2014-07-16 Thread Hugh Dickins
On Fri, 13 Jun 2014, David Herrmann wrote: > memfd_create() is similar to mmap(MAP_ANON), but returns a file-descriptor > that you can pass to mmap(). It can support sealing and avoids any > connection to user-visible mount-points. Thus, it's not subject to quotas > on mounted file-systems, but ca

Re: [PATCH v3 3/7] shm: add memfd_create() syscall

2014-07-08 Thread David Herrmann
Hi On Fri, Jun 13, 2014 at 4:20 PM, Michael Kerrisk (man-pages) wrote: > Hi David, > > On Fri, Jun 13, 2014 at 2:41 PM, David Herrmann wrote: >> Hi >> >> On Fri, Jun 13, 2014 at 2:27 PM, Michael Kerrisk (man-pages) >> wrote: >>> Hi David, >>> >>> On Fri, Jun 13, 2014 at 12:36 PM, David Herrmann

Re: [PATCH v3 3/7] shm: add memfd_create() syscall

2014-06-15 Thread Michael Kerrisk (man-pages)
On 06/13/2014 06:20 PM, John Stultz wrote: > On Fri, Jun 13, 2014 at 7:20 AM, Michael Kerrisk (man-pages) > wrote: >> >> The general notion these days is that a (comprehensive) manual page >> _should_ come *with* the system call, rather than after the fact. And >> there's a lot of value in that. I

Re: [PATCH v3 3/7] shm: add memfd_create() syscall

2014-06-15 Thread Jann Horn
On Fri, Jun 13, 2014 at 12:36:55PM +0200, David Herrmann wrote: > +asmlinkage long sys_memfd_create(const char *uname_ptr, unsigned int flags); [...] > +SYSCALL_DEFINE2(memfd_create, > + const char*, uname, > + unsigned int, flags) > +{ Shouldn't uname_ptr and uname be "con

Re: [PATCH v3 3/7] shm: add memfd_create() syscall

2014-06-13 Thread John Stultz
On Fri, Jun 13, 2014 at 7:20 AM, Michael Kerrisk (man-pages) wrote: > > The general notion these days is that a (comprehensive) manual page > _should_ come *with* the system call, rather than after the fact. And > there's a lot of value in that. I've found no end of bugs and design > errors while

Re: [PATCH v3 3/7] shm: add memfd_create() syscall

2014-06-13 Thread Michael Kerrisk (man-pages)
Hi David, On Fri, Jun 13, 2014 at 2:41 PM, David Herrmann wrote: > Hi > > On Fri, Jun 13, 2014 at 2:27 PM, Michael Kerrisk (man-pages) > wrote: >> Hi David, >> >> On Fri, Jun 13, 2014 at 12:36 PM, David Herrmann >> wrote: >>> memfd_create() is similar to mmap(MAP_ANON), but returns a file-desc

Re: [PATCH v3 3/7] shm: add memfd_create() syscall

2014-06-13 Thread David Herrmann
Hi On Fri, Jun 13, 2014 at 2:27 PM, Michael Kerrisk (man-pages) wrote: > Hi David, > > On Fri, Jun 13, 2014 at 12:36 PM, David Herrmann > wrote: >> memfd_create() is similar to mmap(MAP_ANON), but returns a file-descriptor >> that you can pass to mmap(). It can support sealing and avoids any >>

Re: [PATCH v3 3/7] shm: add memfd_create() syscall

2014-06-13 Thread Michael Kerrisk (man-pages)
Hi David, On Fri, Jun 13, 2014 at 12:36 PM, David Herrmann wrote: > memfd_create() is similar to mmap(MAP_ANON), but returns a file-descriptor > that you can pass to mmap(). It can support sealing and avoids any > connection to user-visible mount-points. Thus, it's not subject to quotas > on moun