acl.h 753 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * acl.h
  4. *
  5. * Copyright (C) 2004, 2008 Oracle. All rights reserved.
  6. */
  7. #ifndef OCFS2_ACL_H
  8. #define OCFS2_ACL_H
  9. #include <linux/posix_acl_xattr.h>
  10. struct ocfs2_acl_entry {
  11. __le16 e_tag;
  12. __le16 e_perm;
  13. __le32 e_id;
  14. };
  15. struct posix_acl *ocfs2_iop_get_acl(struct inode *inode, int type, bool rcu);
  16. int ocfs2_iop_set_acl(struct user_namespace *mnt_userns, struct inode *inode,
  17. struct posix_acl *acl, int type);
  18. extern int ocfs2_acl_chmod(struct inode *, struct buffer_head *);
  19. extern int ocfs2_init_acl(handle_t *, struct inode *, struct inode *,
  20. struct buffer_head *, struct buffer_head *,
  21. struct ocfs2_alloc_context *,
  22. struct ocfs2_alloc_context *);
  23. #endif /* OCFS2_ACL_H */