Eu encontrei este comentário em fs / xattr.c:
/* In user.* namespace, only regular files and directories can have
* extended attributes. For sticky directories, only the owner and
* privileged user can write attributes.
*/
Lá você tem isso; o kernel não permitirá definir atributos no namespace do usuário em nada além de um arquivo ou diretório regular.
xattr(7)
fornece mais detalhes:
Atributos de usuário estendidos
Extended user attributes may be assigned to files and directories for
storing arbitrary additional information such as the mime type,
character set or encoding of a file. The access permissions for user
attributes are defined by the file permission bits: read permission
is required to retrieve the attribute value, and writer permission is
required to change it.
The file permission bits of regular files and directories are
interpreted differently from the file permission bits of special
files and symbolic links. For regular files and directories the file
permission bits define access to the file's contents, while for
device special files they define access to the device described by
the special file. The file permissions of symbolic links are not
used in access checks. These differences would allow users to
consume filesystem resources in a way not controllable by disk quotas
for group or world writable special files and directories.
For this reason, extended user attributes are allowed only for
regular files and directories, and access to extended user attributes
is restricted to the owner and to users with appropriate capabilities
for directories with the sticky bit set (see the chmod(1) manual page
for an explanation of the sticky bit).