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/
28 #ifndef __BACL_Solaris_H_
29 #define __BACL_Solaris_H_
31 #if defined(HAVE_SUN_OS)
33 /* check if ACL support is enabled */
39 #error "configure failed to detect availability of sys/acl.h"
45 #if defined(HAVE_EXTENDED_ACL)
46 #if !defined(_SYS_ACL_IMPL_H)
47 typedef enum acl_type {
57 int acl_type(acl_t *);
58 char *acl_strerror(int);
66 class BACL_Solaris : public BACL {
69 bRC_BACL os_backup_acl (JCR *jcr, FF_PKT *ff_pkt);
70 bRC_BACL os_restore_acl (JCR *jcr, int stream, char *content, uint32_t length);
71 bRC_BACL os_get_acl(JCR *jcr, int *stream);
72 bRC_BACL os_set_acl(JCR *jcr, int stream, char *content, uint32_t length);
73 /* requires acl.h available */
74 bRC_BACL check_bacltype (JCR *jcr, int name);
82 #endif /* HAVE_SUN_OS */
84 #endif /* __BACL_Solaris_H_ */