]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/filed/acl.h
- Apply all of Preben's patches, but revert to old backup.c
[bacula/bacula] / bacula / src / filed / acl.h
1 /*
2  * Properties we use for getting and setting ACLs.
3  */
4
5 #ifndef _BACULA_ACL_
6 #define _BACULA_ACL_
7
8 /* If you want shorter ACL strings when possible, uncomment this */
9 #define BACL_WANT_SHORT_ACLS
10
11 /* If you want numeric user/group ids when possible, uncomment this */
12 /* #define BACL_WANT_NUMERIC_IDS */
13
14 /* We support the following types of ACLs */
15 #define BACL_TYPE_NONE        0x000
16 #define BACL_TYPE_ACCESS      0x001
17 #define BACL_TYPE_DEFAULT     0x002
18
19 #define BACL_CAP_NONE         0x000    /* No special capabilities */
20 #define BACL_CAP_DEFAULTS     0x001    /* Has default ACLs for directories */
21 #define BACL_CAP_DEFAULTS_DIR 0x002    /* Default ACLs must be read separately */
22
23 /* Set capabilities for various OS */
24 #if defined(HAVE_SUN_OS)
25 #define BACL_CAP              BACL_CAP_DEFAULTS
26 #elif defined(HAVE_FREEBSD_OS) \
27    || defined(HAVE_IRIX_OS) \
28    || defined(HAVE_OSF1_OS) \
29    || defined(HAVE_LINUX_OS)
30 #define BACL_CAP              (BACL_CAP_DEFAULTS|BACL_CAP_DEFAULTS_DIR)
31 #else
32 #define BACL_CAP              BACL_CAP_NONE
33 #endif
34
35 #endif
36 /*
37  * Properties we use for getting and setting ACLs.
38  */
39
40 #ifndef _BACULA_ACL_
41 #define _BACULA_ACL_
42
43 /* If you want shorter ACL strings when possible, uncomment this */
44 #define BACL_WANT_SHORT_ACLS
45
46 /* If you want numeric user/group ids when possible, uncomment this */
47 /* #define BACL_WANT_NUMERIC_IDS */
48
49 /* We support the following types of ACLs */
50 #define BACL_TYPE_NONE        0x000
51 #define BACL_TYPE_ACCESS      0x001
52 #define BACL_TYPE_DEFAULT     0x002
53
54 #define BACL_CAP_NONE         0x000    /* No special capabilities */
55 #define BACL_CAP_DEFAULTS     0x001    /* Has default ACLs for directories */
56 #define BACL_CAP_DEFAULTS_DIR 0x002    /* Default ACLs must be read separately */
57
58 /* Set capabilities for various OS */
59 #if defined(HAVE_SUN_OS)
60 #define BACL_CAP              BACL_CAP_DEFAULTS
61 #elif defined(HAVE_FREEBSD_OS) \
62    || defined(HAVE_IRIX_OS) \
63    || defined(HAVE_OSF1_OS) \
64    || defined(HAVE_LINUX_OS)
65 #define BACL_CAP              (BACL_CAP_DEFAULTS|BACL_CAP_DEFAULTS_DIR)
66 #else
67 #define BACL_CAP              BACL_CAP_NONE
68 #endif
69
70 #endif