linux/include/uapi/linux/xattr.h

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
  File: linux/xattr.h

  Extended attributes handling.

  Copyright (C) 2001 by Andreas Gruenbacher <[email protected]>
  Copyright (c) 2001-2002 Silicon Graphics, Inc.  All Rights Reserved.
  Copyright (c) 2004 Red Hat, Inc., James Morris <[email protected]>
  Copyright (c) 2020 Jan (janneke) Nieuwenhuizen <[email protected]>
*/

#include <linux/libc-compat.h>

#ifndef _UAPI_LINUX_XATTR_H
#define _UAPI_LINUX_XATTR_H

#if __UAPI_DEF_XATTR
#define __USE_KERNEL_XATTR_DEFS

#define XATTR_CREATE
#define XATTR_REPLACE
#endif

/* Namespaces */
#define XATTR_OS2_PREFIX
#define XATTR_OS2_PREFIX_LEN

#define XATTR_MAC_OSX_PREFIX
#define XATTR_MAC_OSX_PREFIX_LEN

#define XATTR_BTRFS_PREFIX
#define XATTR_BTRFS_PREFIX_LEN

#define XATTR_HURD_PREFIX
#define XATTR_HURD_PREFIX_LEN

#define XATTR_SECURITY_PREFIX
#define XATTR_SECURITY_PREFIX_LEN

#define XATTR_SYSTEM_PREFIX
#define XATTR_SYSTEM_PREFIX_LEN

#define XATTR_TRUSTED_PREFIX
#define XATTR_TRUSTED_PREFIX_LEN

#define XATTR_USER_PREFIX
#define XATTR_USER_PREFIX_LEN

/* Security namespace */
#define XATTR_EVM_SUFFIX
#define XATTR_NAME_EVM

#define XATTR_IMA_SUFFIX
#define XATTR_NAME_IMA

#define XATTR_SELINUX_SUFFIX
#define XATTR_NAME_SELINUX

#define XATTR_SMACK_SUFFIX
#define XATTR_SMACK_IPIN
#define XATTR_SMACK_IPOUT
#define XATTR_SMACK_EXEC
#define XATTR_SMACK_TRANSMUTE
#define XATTR_SMACK_MMAP
#define XATTR_NAME_SMACK
#define XATTR_NAME_SMACKIPIN
#define XATTR_NAME_SMACKIPOUT
#define XATTR_NAME_SMACKEXEC
#define XATTR_NAME_SMACKTRANSMUTE
#define XATTR_NAME_SMACKMMAP

#define XATTR_APPARMOR_SUFFIX
#define XATTR_NAME_APPARMOR

#define XATTR_CAPS_SUFFIX
#define XATTR_NAME_CAPS

#define XATTR_POSIX_ACL_ACCESS
#define XATTR_NAME_POSIX_ACL_ACCESS
#define XATTR_POSIX_ACL_DEFAULT
#define XATTR_NAME_POSIX_ACL_DEFAULT


#endif /* _UAPI_LINUX_XATTR_H */