xfs
[Top] [All Lists]

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

To: Dan Am <xfs@xxxxxxxx>
Subject: Re: "xfs_io -c chattr +i " on a symlink
From: Nathan Scott <nathans@xxxxxxx>
Date: Fri, 4 Aug 2006 10:28:14 +1000
Cc: xfs@xxxxxxxxxxx
In-reply-to: <28749.62.159.242.114.1154600816.squirrel@otto.lonx.net>; from xfs@lonx.net on Thu, Aug 03, 2006 at 12:26:56PM +0200
References: <28749.62.159.242.114.1154600816.squirrel@otto.lonx.net>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
On Thu, Aug 03, 2006 at 12:26:56PM +0200, Dan Am wrote:
> (resend, since I used the wrong account to send the initial mail, sorry)
> 
> Dear list,
> 
> I am trying to make a symlink immutable with chattr, however the command
> seems to follow the link, which point to a NFS Mount.
> Setting xattr works on symlink btw, which is useful.
> More data below
> Any ideas ?

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.

cheers.

-- 
Nathan


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