2 Bacula(R) - The Network Backup Solution
4 Copyright (C) 2000-2016 Kern Sibbald
6 The original author of Bacula is Kern Sibbald, with contributions
7 from many others, a complete list can be found in the file AUTHORS.
9 You may use this file and others of this release according to the
10 license defined in the LICENSE file, which includes the Affero General
11 Public License, v3.0 ("AGPLv3") and some additional permissions and
12 terms pursuant to its AGPLv3 Section 7.
14 This notice must be preserved when any source code is
15 conveyed and/or propagated.
17 Bacula(R) is a registered trademark of Kern Sibbald.
20 * Major refactoring of ACL code written by:
22 * Radosław Korzeniewski, MMXVI
23 * radoslaw@korzeniewski.net, radekk@inteos.pl
24 * Inteos Sp. z o.o. http://www.inteos.pl/
31 #if defined(HAVE_DARWIN_OS)
32 #include <sys/types.h>
34 /* check if ACL support is enabled */
40 #error "configure failed to detect availability of sys/acl.h"
47 class BACL_OSX : public BACL {
49 bRC_BACL os_backup_acl (JCR *jcr, FF_PKT *ff_pkt);
50 bRC_BACL os_restore_acl (JCR *jcr, int stream, char *content, uint32_t length);
51 bRC_BACL os_get_acl(JCR *jcr, BACL_type bacltype);
52 bRC_BACL os_set_acl(JCR *jcr, BACL_type bacltype, char *content, uint32_t length);
53 /* requires acl.h available */
54 acl_type_t get_acltype(BACL_type bacltype);
55 int acl_nrentries(acl_t acl);
62 #endif /* HAVE_DARWIN_OS */
64 #endif /* __BACL_OSX_H_ */