blob: 488c2b75cf41acf1c822b3b26f494db60eebdc32 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Vyacheslav Dubeyko2c920572013-09-11 14:24:28 -07002/*
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
10#include <linux/posix_acl_xattr.h>
11
12#ifdef CONFIG_HFSPLUS_FS_POSIX_ACL
13
14/* posix_acl.c */
15struct posix_acl *hfsplus_get_posix_acl(struct inode *inode, int type);
Christoph Hellwigb0a7ab52013-12-20 05:16:46 -080016int hfsplus_set_posix_acl(struct inode *inode, struct posix_acl *acl,
17 int type);
Vyacheslav Dubeyko2c920572013-09-11 14:24:28 -070018extern int hfsplus_init_posix_acl(struct inode *, struct inode *);
19
20#else /* CONFIG_HFSPLUS_FS_POSIX_ACL */
21#define hfsplus_get_posix_acl NULL
Christoph Hellwigb0a7ab52013-12-20 05:16:46 -080022#define hfsplus_set_posix_acl NULL
Vyacheslav Dubeyko2c920572013-09-11 14:24:28 -070023
24static inline int hfsplus_init_posix_acl(struct inode *inode, struct inode *dir)
25{
26 return 0;
27}
28#endif /* CONFIG_HFSPLUS_FS_POSIX_ACL */