]> git.sesse.net Git - bcachefs-tools-debian/blob - include/linux/posix_acl_xattr.h
Move c_src dirs back to toplevel
[bcachefs-tools-debian] / include / linux / posix_acl_xattr.h
1 /*
2   File: linux/posix_acl_xattr.h
3
4   Extended attribute system call representation of Access Control Lists.
5
6   Copyright (C) 2000 by Andreas Gruenbacher <a.gruenbacher@computer.org>
7   Copyright (C) 2002 SGI - Silicon Graphics, Inc <linux-xfs@oss.sgi.com>
8  */
9 #ifndef _POSIX_ACL_XATTR_H
10 #define _POSIX_ACL_XATTR_H
11
12 #include <uapi/linux/xattr.h>
13
14 /* Supported ACL a_version fields */
15 #define POSIX_ACL_XATTR_VERSION 0x0002
16
17 /* An undefined entry e_id value */
18 #define ACL_UNDEFINED_ID        (-1)
19
20 typedef struct {
21         __le16                  e_tag;
22         __le16                  e_perm;
23         __le32                  e_id;
24 } posix_acl_xattr_entry;
25
26 typedef struct {
27         __le32                  a_version;
28         posix_acl_xattr_entry   a_entries[0];
29 } posix_acl_xattr_header;
30
31 extern const struct xattr_handler nop_posix_acl_access;
32 extern const struct xattr_handler nop_posix_acl_default;
33
34 #endif  /* _POSIX_ACL_XATTR_H */