I'm trying to set some extended attributes on a symbolic link on Fedora 15.According to setfattr's usage, there is an option -h for such purpose:setfattr 2.4.44 -- set extended attributesUsage: setfattr {-n name} [-v value] [-h] file...       setfattr {-x name} [-h] file...  -n, --name=name         set the value of the named extended attribute  -x, --remove=name       remove the named extended attribute  -v, --value=value       use value as the attribute value  -h, --no-dereference    do not dereference symbolic links      --restore=file      restore extended attributes      --version           print version and exit      --help              this help textHowever, the option doesn't seem to work. Using -h on symlink files just reports Operation not permitted without setting the extended attribute.For example:[dummy@notebook test]$ ls -ltotal 0-rw-rw-r-- 1 dummy dummy 0 Jul 12 14:35 filelrwxrwxrwx 1 dummy dummy 6 Jul 12 14:35 link -> ./file[dummy@notebook test]$ setfattr -n user.name -v value1 file[dummy@notebook test]$ getfattr -n user.name file# file: fileuser.name=value1[dummy@notebook test]$ setfattr -n user.name -v value2 link[dummy@notebook test]$ getfattr -n user.name file# file: fileuser.name=value2[dummy@notebook test]$ setfattr -n user.name -v value3 -h linksetfattr: link: Operation not permitted[dummy@notebook test]$ getfattr -n user.name -h linklink: user.name: Operation not permittedWhy is this?
Extended attribute on symbolic link
linux;fedora;symlink;xattr