.. | .. |
---|
7 | 7 | Copyright (C) 2001 by Andreas Gruenbacher <a.gruenbacher@computer.org> |
---|
8 | 8 | Copyright (c) 2001-2002 Silicon Graphics, Inc. All Rights Reserved. |
---|
9 | 9 | Copyright (c) 2004 Red Hat, Inc., James Morris <jmorris@redhat.com> |
---|
| 10 | + Copyright (c) 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org> |
---|
10 | 11 | */ |
---|
11 | 12 | |
---|
12 | 13 | #include <linux/libc-compat.h> |
---|
.. | .. |
---|
17 | 18 | #if __UAPI_DEF_XATTR |
---|
18 | 19 | #define __USE_KERNEL_XATTR_DEFS |
---|
19 | 20 | |
---|
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 |
---|
22 | 26 | #endif |
---|
23 | 27 | |
---|
24 | 28 | /* Namespaces */ |
---|
.. | .. |
---|
31 | 35 | #define XATTR_BTRFS_PREFIX "btrfs." |
---|
32 | 36 | #define XATTR_BTRFS_PREFIX_LEN (sizeof(XATTR_BTRFS_PREFIX) - 1) |
---|
33 | 37 | |
---|
| 38 | +#define XATTR_HURD_PREFIX "gnu." |
---|
| 39 | +#define XATTR_HURD_PREFIX_LEN (sizeof(XATTR_HURD_PREFIX) - 1) |
---|
| 40 | + |
---|
34 | 41 | #define XATTR_SECURITY_PREFIX "security." |
---|
35 | 42 | #define XATTR_SECURITY_PREFIX_LEN (sizeof(XATTR_SECURITY_PREFIX) - 1) |
---|
36 | 43 | |
---|