Re: Should unprivileged linkat(..., AT_EMPTY_PATH) work on O_TMPFILE files?

2013-08-12 Thread Andy Lutomirski
On Sun, Aug 11, 2013 at 9:25 PM, Aneesh Kumar K.V wrote: > "Aneesh Kumar K.V" writes: > >> Andy Lutomirski writes: >> >>> On Sun, Aug 11, 2013 at 9:45 AM, Aneesh Kumar K.V >>> wrote: Andy Lutomirski writes: > The change: > > commit

Re: Should unprivileged linkat(..., AT_EMPTY_PATH) work on O_TMPFILE files?

2013-08-12 Thread Andy Lutomirski
On Sun, Aug 11, 2013 at 9:25 PM, Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com wrote: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com writes: Andy Lutomirski l...@amacapital.net writes: On Sun, Aug 11, 2013 at 9:45 AM, Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com wrote: Andy

Re: Should unprivileged linkat(..., AT_EMPTY_PATH) work on O_TMPFILE files?

2013-08-11 Thread Aneesh Kumar K.V
"Aneesh Kumar K.V" writes: > Andy Lutomirski writes: > >> On Sun, Aug 11, 2013 at 9:45 AM, Aneesh Kumar K.V >> wrote: >>> Andy Lutomirski writes: >>> The change: commit f4e0c30c191f87851c4a53454abb55ee276f4a7e Author: Al Viro Date: Tue Jun 11 08:34:36 2013 +0400

Re: Should unprivileged linkat(..., AT_EMPTY_PATH) work on O_TMPFILE files?

2013-08-11 Thread Aneesh Kumar K.V
Andy Lutomirski writes: > On Sun, Aug 11, 2013 at 9:45 AM, Aneesh Kumar K.V > wrote: >> Andy Lutomirski writes: >> >>> The change: >>> >>> commit f4e0c30c191f87851c4a53454abb55ee276f4a7e >>> Author: Al Viro >>> Date: Tue Jun 11 08:34:36 2013 +0400 >>> >>> allow the temp files created by

Re: Should unprivileged linkat(..., AT_EMPTY_PATH) work on O_TMPFILE files?

2013-08-11 Thread Andy Lutomirski
On Sun, Aug 11, 2013 at 9:45 AM, Aneesh Kumar K.V wrote: > Andy Lutomirski writes: > >> The change: >> >> commit f4e0c30c191f87851c4a53454abb55ee276f4a7e >> Author: Al Viro >> Date: Tue Jun 11 08:34:36 2013 +0400 >> >> allow the temp files created by open() to be linked to >> >>

Re: Should unprivileged linkat(..., AT_EMPTY_PATH) work on O_TMPFILE files?

2013-08-11 Thread Aneesh Kumar K.V
Andy Lutomirski writes: > The change: > > commit f4e0c30c191f87851c4a53454abb55ee276f4a7e > Author: Al Viro > Date: Tue Jun 11 08:34:36 2013 +0400 > > allow the temp files created by open() to be linked to > > O_TMPFILE | O_CREAT => linkat() with AT_SYMLINK_FOLLOW and >

Re: Should unprivileged linkat(..., AT_EMPTY_PATH) work on O_TMPFILE files?

2013-08-11 Thread Aneesh Kumar K.V
Andy Lutomirski l...@amacapital.net writes: The change: commit f4e0c30c191f87851c4a53454abb55ee276f4a7e Author: Al Viro v...@zeniv.linux.org.uk Date: Tue Jun 11 08:34:36 2013 +0400 allow the temp files created by open() to be linked to O_TMPFILE | O_CREAT = linkat() with

Re: Should unprivileged linkat(..., AT_EMPTY_PATH) work on O_TMPFILE files?

2013-08-11 Thread Andy Lutomirski
On Sun, Aug 11, 2013 at 9:45 AM, Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com wrote: Andy Lutomirski l...@amacapital.net writes: The change: commit f4e0c30c191f87851c4a53454abb55ee276f4a7e Author: Al Viro v...@zeniv.linux.org.uk Date: Tue Jun 11 08:34:36 2013 +0400 allow the

Re: Should unprivileged linkat(..., AT_EMPTY_PATH) work on O_TMPFILE files?

2013-08-11 Thread Aneesh Kumar K.V
Andy Lutomirski l...@amacapital.net writes: On Sun, Aug 11, 2013 at 9:45 AM, Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com wrote: Andy Lutomirski l...@amacapital.net writes: The change: commit f4e0c30c191f87851c4a53454abb55ee276f4a7e Author: Al Viro v...@zeniv.linux.org.uk Date: Tue

Re: Should unprivileged linkat(..., AT_EMPTY_PATH) work on O_TMPFILE files?

2013-08-11 Thread Aneesh Kumar K.V
Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com writes: Andy Lutomirski l...@amacapital.net writes: On Sun, Aug 11, 2013 at 9:45 AM, Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com wrote: Andy Lutomirski l...@amacapital.net writes: The change: commit

Should unprivileged linkat(..., AT_EMPTY_PATH) work on O_TMPFILE files?

2013-07-25 Thread Andy Lutomirski
The change: commit f4e0c30c191f87851c4a53454abb55ee276f4a7e Author: Al Viro Date: Tue Jun 11 08:34:36 2013 +0400 allow the temp files created by open() to be linked to O_TMPFILE | O_CREAT => linkat() with AT_SYMLINK_FOLLOW and /proc/self/fd/ as oldpath (i.e. flink()) will create

Should unprivileged linkat(..., AT_EMPTY_PATH) work on O_TMPFILE files?

2013-07-25 Thread Andy Lutomirski
The change: commit f4e0c30c191f87851c4a53454abb55ee276f4a7e Author: Al Viro v...@zeniv.linux.org.uk Date: Tue Jun 11 08:34:36 2013 +0400 allow the temp files created by open() to be linked to O_TMPFILE | O_CREAT = linkat() with AT_SYMLINK_FOLLOW and /proc/self/fd/n as oldpath