xref: /linux/include/uapi/linux/posix_acl_xattr.h (revision 498495dba268b20e8eadd7fe93c140c68b6cc9d2)
1*e2be04c7SGreg Kroah-Hartman /* SPDX-License-Identifier: LGPL-2.1+ WITH Linux-syscall-note */
2bc8bcf3bSAndreas Gruenbacher /*
3bc8bcf3bSAndreas Gruenbacher  * Copyright (C) 2002 Andreas Gruenbacher <a.gruenbacher@computer.org>
4bc8bcf3bSAndreas Gruenbacher  * Copyright (C) 2016 Red Hat, Inc.
5bc8bcf3bSAndreas Gruenbacher  *
6bc8bcf3bSAndreas Gruenbacher  * This file is free software; you can redistribute it and/or
7bc8bcf3bSAndreas Gruenbacher  * modify it under the terms of the GNU Lesser General Public
8bc8bcf3bSAndreas Gruenbacher  * License as published by the Free Software Foundation; either
9bc8bcf3bSAndreas Gruenbacher  * version 2.1 of the License, or (at your option) any later version.
10bc8bcf3bSAndreas Gruenbacher  *
11bc8bcf3bSAndreas Gruenbacher  * This file is distributed in the hope that it will be useful,
12bc8bcf3bSAndreas Gruenbacher  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13bc8bcf3bSAndreas Gruenbacher  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14bc8bcf3bSAndreas Gruenbacher  * Lesser General Public License for more details.
15bc8bcf3bSAndreas Gruenbacher  *
16bc8bcf3bSAndreas Gruenbacher  */
17bc8bcf3bSAndreas Gruenbacher 
18bc8bcf3bSAndreas Gruenbacher #ifndef __UAPI_POSIX_ACL_XATTR_H
19bc8bcf3bSAndreas Gruenbacher #define __UAPI_POSIX_ACL_XATTR_H
20bc8bcf3bSAndreas Gruenbacher 
21bc8bcf3bSAndreas Gruenbacher #include <linux/types.h>
22bc8bcf3bSAndreas Gruenbacher 
23bc8bcf3bSAndreas Gruenbacher /* Supported ACL a_version fields */
24bc8bcf3bSAndreas Gruenbacher #define POSIX_ACL_XATTR_VERSION	0x0002
25bc8bcf3bSAndreas Gruenbacher 
26bc8bcf3bSAndreas Gruenbacher /* An undefined entry e_id value */
27bc8bcf3bSAndreas Gruenbacher #define ACL_UNDEFINED_ID	(-1)
28bc8bcf3bSAndreas Gruenbacher 
29bc8bcf3bSAndreas Gruenbacher struct posix_acl_xattr_entry {
30bc8bcf3bSAndreas Gruenbacher 	__le16			e_tag;
31bc8bcf3bSAndreas Gruenbacher 	__le16			e_perm;
32bc8bcf3bSAndreas Gruenbacher 	__le32			e_id;
33bc8bcf3bSAndreas Gruenbacher };
34bc8bcf3bSAndreas Gruenbacher 
35bc8bcf3bSAndreas Gruenbacher struct posix_acl_xattr_header {
36bc8bcf3bSAndreas Gruenbacher 	__le32			a_version;
37bc8bcf3bSAndreas Gruenbacher };
38bc8bcf3bSAndreas Gruenbacher 
39bc8bcf3bSAndreas Gruenbacher #endif	/* __UAPI_POSIX_ACL_XATTR_H */
40