From 33ff033204c29adb669b3c93536fe4712428ec88 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 21 Jun 2012 16:21:54 +1000 Subject: s4-provision: Give better clues on what Samba needs for s3fs ACL support Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Thu Jun 21 14:07:55 CEST 2012 on sn-devel-104 --- source3/smbd/pysmbd.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'source3/smbd/pysmbd.c') 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 }, -- cgit