xfs
[Top] [All Lists]

Re: "xfs_io -c chattr +i " on a symlink

To: Nathan Scott <nathans@xxxxxxx>
Subject: Re: "xfs_io -c chattr +i " on a symlink
From: Chris Wedgwood <cw@xxxxxxxx>
Date: Thu, 3 Aug 2006 21:20:03 -0700
Cc: Dan Am <xfs@xxxxxxxx>, xfs@xxxxxxxxxxx
In-reply-to: <20060804102814.A2401829@xxxxxxxxxxxxxxxxxxxxxxxx>
References: <28749.62.159.242.114.1154600816.squirrel@xxxxxxxxxxxxx> <20060804102814.A2401829@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
On Fri, Aug 04, 2006 at 10:28:14AM +1000, Nathan Scott wrote:

> Its not possible to open(2) a symbolic link (see
> fs/namei.c::may_open), which means you cannot get a file descriptor
> for a symlink, which means you cannot issue an ioctl(2) to a symlink
> (which is how the inode flags are set), which means you're out of
> luck on this one, sorry.

I always disliked open/ioctl for this.  I think we should actually
have a separate syscall for chattr, etc. (FreeBSD does this I think?)


<Prev in Thread] Current Thread [Next in Thread>