acl.h 776 B

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