/*
Unix SMB/CIFS implementation.
- Set NT and POSIX ACLs and other VFS operations from Python
-
+ Set NT and POSIX ACLs and other VFS operations from Python
+
Copyrigyt (C) Andrew Bartlett 2012
Copyright (C) Jeremy Allison 1994-2009.
Copyright (C) Andreas Gruenbacher 2002.
TALLOC_FREE(acl);
return NULL;
}
-
+
if (sys_acl_set_tag_type(entry, SMB_ACL_GROUP) != 0) {
TALLOC_FREE(acl);
return NULL;
}
-
+
if (sys_acl_set_qualifier(entry, &gid) != 0) {
TALLOC_FREE(acl);
return NULL;
}
-
+
if (sys_acl_set_permset(entry, &mode_group) != 0) {
TALLOC_FREE(acl);
return NULL;
if (!PyArg_ParseTuple(args, "si", &fname, &security_info_wanted))
return NULL;
-
+
sd = get_nt_acl_no_snum(tmp_ctx, fname, security_info_wanted);
py_sd = py_return_ndr_struct("samba.dcerpc.security", "descriptor", sd, sd);