acl.h 742 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * linux/fs/hfsplus/acl.h
  4. *
  5. * Vyacheslav Dubeyko <slava@dubeyko.com>
  6. *
  7. * Handler for Posix Access Control Lists (ACLs) support.
  8. */
  9. #include <linux/posix_acl_xattr.h>
  10. #ifdef CONFIG_HFSPLUS_FS_POSIX_ACL
  11. /* posix_acl.c */
  12. struct posix_acl *hfsplus_get_posix_acl(struct inode *inode, int type);
  13. int hfsplus_set_posix_acl(struct inode *inode, struct posix_acl *acl,
  14. int type);
  15. extern int hfsplus_init_posix_acl(struct inode *, struct inode *);
  16. #else /* CONFIG_HFSPLUS_FS_POSIX_ACL */
  17. #define hfsplus_get_posix_acl NULL
  18. #define hfsplus_set_posix_acl NULL
  19. static inline int hfsplus_init_posix_acl(struct inode *inode, struct inode *dir)
  20. {
  21. return 0;
  22. }
  23. #endif /* CONFIG_HFSPLUS_FS_POSIX_ACL */