La funci贸n establece el valor de un atributo extendido del archivo.
Extended attributes have two different namespaces: user and root namespace. User namespace is available for all users while root namespace is available only for user with root privileges. xattr operates on user namespace by default, but you can change that using flags argument.
El archivo al que se establecer谩 el atributo.
Nombre del atributo extendido. El atributo se crea si no existe y se reemplaza si ya exist铆a. Se puede modificar este comportamiento con el par谩metro opciones.
El valor del atributo.
Tabla 1. Opciones de xattr soportadas
| XATTR_CREATE | La funci贸n falla si el atributo extendido ya exist铆a. |
| XATTR_REPLACE | La funci贸n falla si el atributo extendido no existe. |
| XATTR_DONTFOLLOW | Realizar las operaciones en el propio enlace simb贸lico (no seguirlo). |
| XATTR_ROOT | Establecer atributo en el espacio de nombres ra铆z (y de confianza). Requiere privilegios de root. |