summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix/src
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2011-07-01 16:55:18 +0000
committerAnand Avati <avati@gluster.com>2011-07-01 15:58:32 -0700
commit3911634c7f4e8ed6eb61c27b596e88b0a69a3202 (patch)
treec60f464dc4ec6d8e2848665e3989596230fb50be /xlators/storage/posix/src
parent9f7c50da005fc73a211bb8255b75cd014e0eff75 (diff)
posix-acl: implementation of POSIX ACL as a translator
Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2815 (Server-enforced ACLs) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2815
Diffstat (limited to 'xlators/storage/posix/src')
-rw-r--r--xlators/storage/posix/src/posix.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index 6121b5f5a..fd7f2e27c 100644
--- a/xlators/storage/posix/src/posix.c
+++ b/xlators/storage/posix/src/posix.c
@@ -4537,6 +4537,11 @@ init (xlator_t *this)
}
}
+ op_ret = sys_lgetxattr (dir_data->data, "system.posix_acl_access",
+ NULL, 0);
+ if ((op_ret < 0) && (errno == ENOTSUP))
+ gf_log (this->name, GF_LOG_WARNING,
+ "Posix access control list is not supported.");
_private = GF_CALLOC (1, sizeof (*_private),
gf_posix_mt_posix_private);
if (!_private) {