summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-06-21 16:21:54 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-06-21 14:07:55 +0200
commit33ff033204c29adb669b3c93536fe4712428ec88 (patch)
tree7fb840b1fe078c305368d31c6a8a0d98230c8307 /source3
parent9e116e8a5e2c9ae834b7b500cb0833201bfd148b (diff)
downloadsamba-33ff033204c29adb669b3c93536fe4712428ec88.tar.gz
samba-33ff033204c29adb669b3c93536fe4712428ec88.tar.bz2
samba-33ff033204c29adb669b3c93536fe4712428ec88.zip
s4-provision: Give better clues on what Samba needs for s3fs ACL support
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Jun 21 14:07:55 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/pysmbd.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/source3/smbd/pysmbd.c b/source3/smbd/pysmbd.c
index 76167e1477..5badb3a744 100644
--- a/source3/smbd/pysmbd.c
+++ b/source3/smbd/pysmbd.c
@@ -183,7 +183,22 @@ static PyObject *py_smbd_set_simple_acl(PyObject *self, PyObject *args)
Py_RETURN_NONE;
}
+/*
+ check if we have ACL support
+ */
+static PyObject *py_smbd_have_posix_acls(PyObject *self, PyObject *args)
+{
+#ifdef HAVE_POSIX_ACLS
+ return PyBool_FromLong(true);
+#else
+ return PyBool_FromLong(false);
+#endif
+}
+
static PyMethodDef py_smbd_methods[] = {
+ { "have_posix_acls",
+ (PyCFunction)py_smbd_have_posix_acls, METH_VARARGS,
+ NULL },
{ "set_simple_acl",
(PyCFunction)py_smbd_set_simple_acl, METH_VARARGS,
NULL },