diff options
author | Niels de Vos <ndevos@redhat.com> | 2015-02-24 19:42:49 +0100 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2015-03-18 10:39:03 -0700 |
commit | 728fcd41eb39f66744d84b979dd8195fd47313ed (patch) | |
tree | edb89fa083b164d37a69e4107cdaeebdfb5d9c53 /api/src/glfs.h | |
parent | 87c7fa3cfdadca4ee883daf84373302a42ad5fdc (diff) |
gfapi: add glfs_h_acl_set() and glfs_h_acl_get()
These two functions add support for POSIX ACLs through the GFAPI-handle
interface.
The initial infrastructure for POSIX ACLs based on libacl has been added
with the required changes to the POSIX xlator:
- http://review.gluster.org/9627
NetBSD does not support POSIX ACLs, so using any of the functions should
return ENOTSUP.
URL: http://www.gluster.org/community/documentation/index.php/Features/Improved_POSIX_ACLs
Change-Id: Ie74f3f963c3f9d576cb2f2a1e6d97e3cd4b01eda
BUG: 1185654
Signed-off-by: Niels de Vos <ndevos@redhat.com>
Reviewed-on: http://review.gluster.org/9736
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'api/src/glfs.h')
-rw-r--r-- | api/src/glfs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/api/src/glfs.h b/api/src/glfs.h index 9ee772741e6..b073d8d1b17 100644 --- a/api/src/glfs.h +++ b/api/src/glfs.h @@ -42,6 +42,13 @@ #include <dirent.h> #include <sys/statvfs.h> +#if defined(HAVE_SYS_ACL_H) || (defined(USE_POSIX_ACLS) && USE_POSIX_ACLS) +#include <sys/acl.h> +#else +typedef void *acl_t; +typedef int acl_type_t; +#endif + /* Portability non glibc c++ build systems */ #ifndef __THROW # if defined __cplusplus |