lkml.org 
[lkml]   [2003]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] new syscall: flink
On Mon, Apr 07, 2003 at 10:18:00AM +0200, Olivier Galibert wrote:
> On Mon, Apr 07, 2003 at 07:29:35AM +0000, Miquel van Smoorenburg wrote:
> > Can't you just check those permissions, i.e. behave like link() ?
> > If you cant't access the path to the file, don't permit flink() ?
>
> Which path ? A file can have many paths to it, or to the other
> extreme none at all.

There is at most one path associated with an opened file - d_path on
file->f_dentry. If a fd has no path, don't permit flink().
Alternatively, flink() could have 3 arguments, 2 like link and an opened
fd, which would atomically do if fd describes the same object as buf,
link buf to newname.

Jakub
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.044 / U:0.552 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site