posix_acl_xattr.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. #ifndef __UAPI_POSIX_ACL_XATTR_H
  17. #define __UAPI_POSIX_ACL_XATTR_H
  18. #include <linux/types.h>
  19. /* Supported ACL a_version fields */
  20. #define POSIX_ACL_XATTR_VERSION 0x0002
  21. /* An undefined entry e_id value */
  22. #define ACL_UNDEFINED_ID (-1)
  23. struct posix_acl_xattr_entry {
  24. __le16 e_tag;
  25. __le16 e_perm;
  26. __le32 e_id;
  27. };
  28. struct posix_acl_xattr_header {
  29. __le32 a_version;
  30. };
  31. #endif /* __UAPI_POSIX_ACL_XATTR_H */