drm/rockchip: Don't change hdmi reference clock rate
[drm/drm-misc.git] / include / uapi / linux / xattr.h
blob9854f9cff3c6615cd1024719dd11d5f8c43b7c09
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 /*
3 File: linux/xattr.h
5 Extended attributes handling.
7 Copyright (C) 2001 by Andreas Gruenbacher <a.gruenbacher@computer.org>
8 Copyright (c) 2001-2002 Silicon Graphics, Inc. All Rights Reserved.
9 Copyright (c) 2004 Red Hat, Inc., James Morris <jmorris@redhat.com>
10 Copyright (c) 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
13 #include <linux/libc-compat.h>
14 #include <linux/types.h>
16 #ifndef _UAPI_LINUX_XATTR_H
17 #define _UAPI_LINUX_XATTR_H
19 #if __UAPI_DEF_XATTR
20 #define __USE_KERNEL_XATTR_DEFS
22 #define XATTR_CREATE 0x1 /* set value, fail if attr already exists */
23 #define XATTR_REPLACE 0x2 /* set value, fail if attr does not exist */
25 struct xattr_args {
26 __aligned_u64 __user value;
27 __u32 size;
28 __u32 flags;
30 #endif
32 /* Namespaces */
33 #define XATTR_OS2_PREFIX "os2."
34 #define XATTR_OS2_PREFIX_LEN (sizeof(XATTR_OS2_PREFIX) - 1)
36 #define XATTR_MAC_OSX_PREFIX "osx."
37 #define XATTR_MAC_OSX_PREFIX_LEN (sizeof(XATTR_MAC_OSX_PREFIX) - 1)
39 #define XATTR_BTRFS_PREFIX "btrfs."
40 #define XATTR_BTRFS_PREFIX_LEN (sizeof(XATTR_BTRFS_PREFIX) - 1)
42 #define XATTR_HURD_PREFIX "gnu."
43 #define XATTR_HURD_PREFIX_LEN (sizeof(XATTR_HURD_PREFIX) - 1)
45 #define XATTR_SECURITY_PREFIX "security."
46 #define XATTR_SECURITY_PREFIX_LEN (sizeof(XATTR_SECURITY_PREFIX) - 1)
48 #define XATTR_SYSTEM_PREFIX "system."
49 #define XATTR_SYSTEM_PREFIX_LEN (sizeof(XATTR_SYSTEM_PREFIX) - 1)
51 #define XATTR_TRUSTED_PREFIX "trusted."
52 #define XATTR_TRUSTED_PREFIX_LEN (sizeof(XATTR_TRUSTED_PREFIX) - 1)
54 #define XATTR_USER_PREFIX "user."
55 #define XATTR_USER_PREFIX_LEN (sizeof(XATTR_USER_PREFIX) - 1)
57 /* Security namespace */
58 #define XATTR_EVM_SUFFIX "evm"
59 #define XATTR_NAME_EVM XATTR_SECURITY_PREFIX XATTR_EVM_SUFFIX
61 #define XATTR_IMA_SUFFIX "ima"
62 #define XATTR_NAME_IMA XATTR_SECURITY_PREFIX XATTR_IMA_SUFFIX
64 #define XATTR_SELINUX_SUFFIX "selinux"
65 #define XATTR_NAME_SELINUX XATTR_SECURITY_PREFIX XATTR_SELINUX_SUFFIX
67 #define XATTR_SMACK_SUFFIX "SMACK64"
68 #define XATTR_SMACK_IPIN "SMACK64IPIN"
69 #define XATTR_SMACK_IPOUT "SMACK64IPOUT"
70 #define XATTR_SMACK_EXEC "SMACK64EXEC"
71 #define XATTR_SMACK_TRANSMUTE "SMACK64TRANSMUTE"
72 #define XATTR_SMACK_MMAP "SMACK64MMAP"
73 #define XATTR_NAME_SMACK XATTR_SECURITY_PREFIX XATTR_SMACK_SUFFIX
74 #define XATTR_NAME_SMACKIPIN XATTR_SECURITY_PREFIX XATTR_SMACK_IPIN
75 #define XATTR_NAME_SMACKIPOUT XATTR_SECURITY_PREFIX XATTR_SMACK_IPOUT
76 #define XATTR_NAME_SMACKEXEC XATTR_SECURITY_PREFIX XATTR_SMACK_EXEC
77 #define XATTR_NAME_SMACKTRANSMUTE XATTR_SECURITY_PREFIX XATTR_SMACK_TRANSMUTE
78 #define XATTR_NAME_SMACKMMAP XATTR_SECURITY_PREFIX XATTR_SMACK_MMAP
80 #define XATTR_APPARMOR_SUFFIX "apparmor"
81 #define XATTR_NAME_APPARMOR XATTR_SECURITY_PREFIX XATTR_APPARMOR_SUFFIX
83 #define XATTR_CAPS_SUFFIX "capability"
84 #define XATTR_NAME_CAPS XATTR_SECURITY_PREFIX XATTR_CAPS_SUFFIX
86 #define XATTR_POSIX_ACL_ACCESS "posix_acl_access"
87 #define XATTR_NAME_POSIX_ACL_ACCESS XATTR_SYSTEM_PREFIX XATTR_POSIX_ACL_ACCESS
88 #define XATTR_POSIX_ACL_DEFAULT "posix_acl_default"
89 #define XATTR_NAME_POSIX_ACL_DEFAULT XATTR_SYSTEM_PREFIX XATTR_POSIX_ACL_DEFAULT
92 #endif /* _UAPI_LINUX_XATTR_H */