Re: [PATCH v2] vfs: new O_NODE open flag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 8 Oct 2009, Jamie Lokier wrote:
> fchmodat(2) says:
> 
>        AT_SYMLINK_NOFOLLOW
>               If pathname is a symbolic link, do not dereference it:
>               instead operate on the link itself.  This flag is not
>               currently implemented.
> 
> If the flag were implemented, it would make sense for fchmod() on a
> symlink to succeed, wouldn't it?

I think allowing permission bits to be changed for symlinks would lead
to a mess.  It doesn't much make any sense anyway.

A logical implementation for fchmodat(..., AT_SYMLINK_NOFOLLOW) would be to
return an error if the target is a symlink (instead of dereferencing
it).

Thanks,
Miklos
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux