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