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