The EA set is typically divided into namespaces
For Linux the namespace is the prefix of the EA name:
user
trusted
security
System
For XFS, the namespace is encoded in bits in a flags field with these values:
#define ATTR_ROOT 0x0002 /* use attrs in root (trusted) namespace */
#define ATTR_SECURE 0x0008 /* use attrs in security namespace */
#define ATTR_SYSTEM 0x0100 /* use attrs in system (pseudo) namespace */
So for XFS, EAs are really a triple <name, value, flags>