[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1525165387.23227.44.camel@petrovitsch.priv.at>
Date: Tue, 01 May 2018 11:03:07 +0200
From: Bernd Petrovitsch <bernd@...rovitsch.priv.at>
To: Tony Wallace <tony@...y.gen.nz>, linux-kernel@...r.kernel.org
Subject: Re: Suggested new user link command
Hi
On Tue, 2018-05-01 at 20:03 +1200, Tony Wallace wrote:
> I am suggesting a new command for linking files. Currently there is
> no
> easy way to link a file with a known inode number to its correct
> position in the directory tree.
>
>
> int ilink(const int inode, const char *newpath)
... avoiding any permission checks on all paths to the existing names.
> The current alternative to this command is to find the file path
> associated with an inode using the find command and then once found
> using a standard link command. Obviously this is very inefficient.
That's the price for security as it requires proper permissions.
Or is this a root-only syscall?
MfG,
Bernd
--
Bernd Petrovitsch Email : bernd@...rovitsch.priv.at
LUGA : http://www.luga.at
Powered by blists - more mailing lists