hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/include/uapi/linux/xattr.h
....@@ -7,6 +7,7 @@
77 Copyright (C) 2001 by Andreas Gruenbacher <a.gruenbacher@computer.org>
88 Copyright (c) 2001-2002 Silicon Graphics, Inc. All Rights Reserved.
99 Copyright (c) 2004 Red Hat, Inc., James Morris <jmorris@redhat.com>
10
+ Copyright (c) 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
1011 */
1112
1213 #include <linux/libc-compat.h>
....@@ -17,8 +18,11 @@
1718 #if __UAPI_DEF_XATTR
1819 #define __USE_KERNEL_XATTR_DEFS
1920
20
-#define XATTR_CREATE 0x1 /* set value, fail if attr already exists */
21
-#define XATTR_REPLACE 0x2 /* set value, fail if attr does not exist */
21
+#define XATTR_CREATE 0x1 /* set value, fail if attr already exists */
22
+#define XATTR_REPLACE 0x2 /* set value, fail if attr does not exist */
23
+#ifdef __KERNEL__ /* following is kernel internal, colocated for maintenance */
24
+#define XATTR_NOSECURITY 0x4 /* get value, do not involve security check */
25
+#endif
2226 #endif
2327
2428 /* Namespaces */
....@@ -31,6 +35,9 @@
3135 #define XATTR_BTRFS_PREFIX "btrfs."
3236 #define XATTR_BTRFS_PREFIX_LEN (sizeof(XATTR_BTRFS_PREFIX) - 1)
3337
38
+#define XATTR_HURD_PREFIX "gnu."
39
+#define XATTR_HURD_PREFIX_LEN (sizeof(XATTR_HURD_PREFIX) - 1)
40
+
3441 #define XATTR_SECURITY_PREFIX "security."
3542 #define XATTR_SECURITY_PREFIX_LEN (sizeof(XATTR_SECURITY_PREFIX) - 1)
3643