| [EACCES] |
| | MAC write access to the file is denied. |
| [EBADF] |
| | The fd argument is not a valid file descriptor. |
| [EINVAL] |
| | The label argument is not a valid MAC label, or the object referenced by fd is not appropriate for label operations. |
| [EOPNOTSUPP] |
| | Setting MAC labels is not supported by the file referenced by fd. |
| [EPERM] |
| | The calling process had insufficient privilege to change the MAC label. |
| [EROFS] |
| | File system for the object being modified is read only. |
| [ENAMETOOLONG] |
| | The length of the pathname in path_p exceeds PATH_MAX, or a component of the pathname is longer than NAME_MAX. |
| [ENOENT] |
| | The file referenced by path_p does not exist. |
| [ENOTDIR] |
| | A component of the pathname referenced by path_p is not a directory. |
|