summaryrefslogtreecommitdiffstats
path: root/source3/smbd/pysmbd.c
Commit message (Collapse)AuthorAgeFilesLines
* pysmbd: improve the return of error codes in the python smbd bindingsGarming Sam2014-02-051-31/+27
| | | | | | Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
* pysmbd: Convert py_smbd_unlink to synthetic_smb_fnameVolker Lendecke2013-04-171-4/+3
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* pysmbd: Convert set_nt_acl_conn to synthetic_smb_fnameVolker Lendecke2013-04-171-4/+3
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* source3/smbd/pysmbd.c: Always use create_conn_struct(). Don't hand create ↵Jeremy Allison2013-01-091-24/+10
| | | | | | | | connection structs. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* pysmbd: Change to keyword based argumentsAndrew Bartlett2013-01-071-23/+43
| | | | Reviewed-by: Jeremy Allison <jra@samba.org>
* pysmbd: Convert pysmbd to take an optional service to connect toAndrew Bartlett2013-01-071-125/+156
| | | | | | | | | This uses create_conn_struct to correctly call VFS_CONNECT(), but only if a service has been specified. Andrew Bartlett Reviewed-by: Jeremy Allison <jra@samba.org>
* Change get_nt_acl_no_snum() to return an NTSTATUS, not a struct ↵Andrew Bartlett2012-11-131-1/+3
| | | | | | | | | | | security_descriptor *. Internally change the implementation to use SMB_VFS_GET_NT_ACL() instead of SMB_VFS_FGET_NT_ACL() with a faked-up file struct. Andrew Bartlett Reviewed by: Jeremy Allison <jra@samba.org>
* smbd: Correctly set fsp->is_directory before dealing with ACLsAndrew Bartlett2012-11-131-1/+24
| | | | | | | Change set_nt_acl_no_snum() to correctly set up the fsp. This does a stat on a real fsp in set_nt_acl_no_snum. Reviewed by: Jeremy Allison <jra@samba.org>
* pysmbd: Add SMB_ACL_EXECUTE to the mask set by make_simple_acl()Andrew Bartlett2012-11-121-1/+1
| | | | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Remove two unused variablesVolker Lendecke2012-11-071-1/+0
| | | | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Wed Nov 7 17:18:06 CET 2012 on sn-devel-104
* pysmbd: Set umask to 0 during smbd operationsAndrew Bartlett2012-10-261-9/+34
|
* pysmbd: Remember to close files after setting the NT ACLAndrew Bartlett2012-10-261-0/+5
|
* pysmbd: Add hook for unlink() so python scripts can remove xattr.tdb entriesAndrew Bartlett2012-10-261-0/+68
| | | | | | If we do not provide a way to remove files from xattr.tdb, we can re-use the inode. Andrew Bartlett
* pysmbd: Fix pysmbd octal mode handlingAndrew Bartlett2012-10-251-2/+2
| | | | | | It is clearly too long since Computer Science 101... ;-) Andrew Bartlett
* smbd: Add mem_ctx to sys_acl_init() and all callersAndrew Bartlett2012-10-111-20/+20
| | | | | | | | | | This changes from allocation on NULL to allocation on the supplied memory context. Currently that supplied context is talloc_tos() at the the final consumer of the ACL. Andrew Bartlett
* s3: Fix some blank line endingsVolker Lendecke2012-09-251-6/+6
|
* pysmbd: Fix cut&paste errorsVolker Lendecke2012-09-251-2/+3
|
* smbd: Remove pre-allocation of ACL array in sys_acl_init()Andrew Bartlett2012-09-121-1/+1
| | | | | | | | Instead, this is just handled with realloc in sys_acl_create_entry() This allows us to remove the size element from the SMB_ACL_T. Andrew Bartlett
* s3-smbd: Add security_info_wanted argument to get_nt_acl_no_snumAndrew Bartlett2012-08-231-3/+3
| | | | | | | I need to get at the owner, group, DACL and SACL when testing correct ACL storage. Andrew Bartlett
* s3-pysmbd: Fix return type of smbd.get_nt_aclAndrew Bartlett2012-08-231-1/+1
| | | | | | The security_ prefix is stripped off in the python bindings. Andrew Bartlett
* s3-pysmbd: Fix error messageAndrew Bartlett2012-08-231-2/+2
|
* s3-pysmbd: Allow a mode to be specified for the simple ACLAndrew Bartlett2012-08-231-27/+32
| | | | | | The additional group for the ACL is now optional. Andrew Bartlett
* s3-pysmbd: Correct the python type for smb_acl_tAndrew Bartlett2012-08-221-2/+2
| | | | | | | The t is weird, but the python bindings trim the traditional IDL name prefix of each element, as it is usually rudundent. Andrew Bartlett
* s3-pysmbd: Add get/set functions for the posix ACL layerAndrew Bartlett2012-08-211-0/+89
| | | | | | | These will be used to verify that an ACL set as an NT ACL creates the correct posix ACL. Andrew Bartlett
* s3-pysmbd: Correct comments in python VFS bindingsAndrew Bartlett2012-08-211-2/+2
|
* s3-pysmbd: Add hook for a VFS chown()Andrew Bartlett2012-08-211-0/+53
|
* s3-libsmb: Add a python wrapperVolker Lendecke2012-08-161-1/+1
| | | | | | Please note that this is not finished and only for internal use. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-sysacls: Remove sys_acl_free_acl() and replace with TALLOC_FREE()Andrew Bartlett2012-08-151-17/+17
|
* s3-pysmbd: Try opening as a file, then as a directoryAndrew Bartlett2012-08-071-2/+2
| | | | | Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Aug 7 08:59:21 CEST 2012 on sn-devel-104
* s3-pysmbd: Use talloc_zero()Andrew Bartlett2012-08-071-1/+1
| | | | | | This avoids operating on uninitialised data Andrew Bartlett
* s3-pysmbd: Add talloc_stackframe() to smbd_set_simple_acl wrapperAndrew Bartlett2012-08-071-0/+6
|
* s3-pysmbd: Add hook for get_nt_acl()Andrew Bartlett2012-08-021-0/+26
| | | | | Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Aug 2 13:27:55 CEST 2012 on sn-devel-104
* s3-pysmbd: fix DEBUGAndrew Bartlett2012-08-021-1/+1
|
* s3-pysmbd: Add my copyrightAndrew Bartlett2012-08-021-1/+3
|
* s3-pysmbd: Add set_nt_acl() function based on parts of vfstestAndrew Bartlett2012-08-021-0/+111
| | | | | | | This will allow us to set the full NT ACL on a file, using the VFS layer, during provision of the AD DC. Andrew Bartlett
* s4-provision: Give better clues on what Samba needs for s3fs ACL supportAndrew Bartlett2012-06-211-0/+15
| | | | | Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Jun 21 14:07:55 CEST 2012 on sn-devel-104
* s3-python: Add python bindings for posix ACL layerAndrew Bartlett2012-05-081-0/+203
This will allow us to check that posix ACLs work in the s4 provision, and avoid --use-s3fs if they do not. Andrew Bartlett