diff options
| author | Anand Avati <avati@gluster.com> | 2011-07-01 17:18:10 +0000 | 
|---|---|---|
| committer | Anand Avati <avati@gluster.com> | 2011-07-08 02:26:11 -0700 | 
| commit | 04ed499a8eef1c77c491227941d187778fb5c2e4 (patch) | |
| tree | 7ba88ae7d30a01c22bba8e8c70abc6de301ce125 /xlators/storage | |
| parent | 6433214452c5d8d3ae63c5f4f578862be348ca63 (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')
| -rw-r--r-- | xlators/storage/posix/src/posix.c | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 7357331f992..1dcaba3dc57 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -4598,6 +4598,12 @@ 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) {  | 
