summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* VFS: Remove SMB_VFS_SETXATTR, no longer usedNoel Power2021-03-112-24/+0
| | | | | | | | | | | | | | | | | | | | | | | | --------------- / \ / REST \ / IN \ / PEACE \ / \ | | | SMB_VFS_SETXATTR | | | | | | 19 February | | 2021 | | | | | *| * * * | * _________)/\\_//(\/(/\)/\//\/\////|_)_______ Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org> Signed-off-by: Noel Power <noel.power@suse.com>
* VFS: Remove SMB_VFS_LISTXATTR, no longer usedNoel Power2021-02-262-19/+0
| | | | | | | | | | | | | | | | | | | | | | --------------- / \ / REST \ / IN \ / PEACE \ / \ | | | SMB_VFS_LISTXATTR | | | | | | 10 February | | 2021 | | | | | *| * * * | * _________)/\\_//(\/(/\)/\//\/\////|_)_______ Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org>
* examples/fuse/smb2mount: fix compiler warning on ubuntu20.04 with -O3Stefan Metzmacher2021-02-101-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* vfs: RIP SMB_VFS_SYS_ACL_SET_FILE()Ralph Boehme2020-12-172-20/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | .--. .-, .-..-.__ .'(`.-` \_.-'-./` |\_( "\__ __.>\ '; _;---,._| / __/`'--) /.--. : |/' _.--.<| / | | _..-' `\ /' /` /_/ _/_/ >_.-``-. `Y /' _;---.`|/)))) '` .-''. \|: .' __, .-'"` .'--._ `-: \/: /' '.\ _|_ /.'`\ :; /' `- `-|-` -` | | | :.; : | .-'~^~`-. |: | .' _ _ `. |:. | | |_) | |_) | :. : | | | \ | | | : ; | | | : ; | | SMB_VFS | : ; | | SYS_ACL | : ; | | SET_FILE | .jgs. : ; | | -."-/\\\/:::. `\."-._'."-"_\\-| |///."- " -."-.\\"-."//.-".`-."_\\-.".-\\`=.........=`//-". Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfs: add acl type arg to SMB_VFS_SYS_ACL_SET_FD()Ralph Boehme2020-12-172-3/+7
| | | | | | | No change in behaviour, the new arg is not yet used in any module. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfs: SMB_VFS_GET_COMPRESSION() -> SMB_VFS_FGET_COMPRESSION()Ralph Boehme2020-12-162-7/+5
| | | | | | | | | Now that handle based fdos_mode() is used everywhere we can be sure that we're also always getting a handle in SMB_VFS_GET_COMPRESSION() so we can now safely remove the path parameter. :) Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfs: RIP SMB_VFS_GET_DOS_ATTRIBUTES()Ralph Boehme2020-12-162-18/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (\ _ /) ( \ O / ) (// \\) X / \ /___\ _____/ \\_____ | + || | || | SMB_VFS_GET_ || | DOS_ATTRIBUTES() || | || | || | || | _ ___ _ || | | \ | | \ || | | | | | | || | |_/ | |_/ || | | \ | | || | | \ | | || | | \. _|_. | . || | || * * | * ** * ** |** ** \)),.,\(/.,(//,,..,,\||(,,.,\\,.((// Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfs: Add dirfsp arg to SMB_VFS_READDIR()Ralph Boehme2020-12-162-3/+7
| | | | | | | | | This allows for optimisations in VFS module: by passing the dirfsp as an additional arg, the function can check fsp->fsp_name->flags which may include eg SMB_FILENAME_POSIX_PATH to trigger POSIX pathname processing. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* winexe: Fix a possible null pointer derferenceAndreas Schneider2020-11-261-9/+13
| | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* auth:creds: Rename CRED_USE_KERBEROS valuesAndreas Schneider2020-11-031-2/+2
| | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
* examples:auth: Do not install example pluginAndreas Schneider2020-10-231-1/+2
| | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=14550 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Oct 23 15:32:08 UTC 2020 on sn-devel-184
* vfs: make dirfsp arg to SMB_VFS_READLINKAT() constRalph Boehme2020-10-232-2/+2
| | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfs: remove dirfsp arg from SMB_VFS_CREATE_FILE()Ralph Boehme2020-10-022-3/+0
| | | | | | | | | | | | | | | | | This was supposed to be a shortcut to avoid passing dirfsp around as an explicit function argument throughout the whole codebase when the new VFS design idea was based on using *AT functions throughout the VFS. Now that we've opted for basing the VFS on handles and *AT functions will only be used in a much more limitted extent, it makes sense to remove this internal dirfsp reference, otherwise the combination of internal fsp->dirfsp and smb_fname->fsp is going to be a tough to wrap your head around. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Oct 2 21:00:05 UTC 2020 on sn-devel-184
* examples: Remove obsolete force encryption from smb2mountAndreas Schneider2020-08-191-11/+0
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3:libsmb: Remove signing_state from cli_full_connection_creds()Andreas Schneider2020-08-192-5/+2
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3:libsmb: Introduce CLI_FULL_CONNECTION_IPCAndreas Schneider2020-08-191-1/+1
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* docs: Point to wiki Contribute page rather than samba-technicalAndrew Bartlett2020-06-121-1/+1
| | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3: libsmb: Change size of finfo->attr to uint32_t.Jeremy Allison2020-06-041-1/+1
| | | | | | | That's what modern servers return. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: In struct file_info rename mode -> attr.Jeremy Allison2020-06-041-3/+3
| | | | | | | | Cleanup. It's never been a UNIX mode, always a DOS attribute field. Make that explicit. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* examples: clifuse: Info level SMB_FIND_FILE_BOTH_DIRECTORY_INFO encodes ↵Jeremy Allison2020-06-041-1/+1
| | | | | | | | | | attibutes as a uint32, not a uint8. Cast to a uint16_t for now after pulling the information as finfo->mode is currently only 16 bits. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: VFS: Change the function signature for SMB_VFS_READ_DFS_PATHAT() to take ↵Jeremy Allison2020-06-032-2/+2
| | | | | | | | | | | | a non-const smb_filename. Otherwise there's no good way to return proper stat(2) information for a DFS link without making assumptions it's a symlink store. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14391 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* examples/fuse/smb2mount: avoid using ↵Stefan Metzmacher2020-05-281-5/+0
| | | | | | CLI_FULL_CONNECTION_{USE,FALLBACK_AFTER}_KERBEROS flags Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* examples/fuse/smb2mount: make use of get_cmdline_auth_info_creds()Stefan Metzmacher2020-05-281-8/+4
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* OID: Reserve 1.3.6.1.4.1.7165.777.x for use on the wikiAndrew Bartlett2020-05-271-1/+6
| | | | | | | | | | | This allows us to handle some OIDs more freely and use them in example schema without patching the main git repo each time. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz> Autobuild-User(master): Gary Lockyer <gary@samba.org> Autobuild-Date(master): Wed May 27 22:17:10 UTC 2020 on sn-devel-184
* vfs: remove SMB_VFS_OPEN()Ralph Boehme2020-05-212-15/+0
| | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfs: add SMB_VFS_OPENAT()Ralph Boehme2020-05-212-0/+23
| | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* smbd: add dirfsp arg to SMB_VFS_CREATE_FILE()Ralph Boehme2020-05-212-0/+3
| | | | | | | | | As create_file_default() still need to be updated in the future to replace the SMB_VFS_STAT() calls with AT-based versions, it asserts (dirfsp == dirfsp->conn->cwd_fsp). Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfs: remove root_dir_fid arg from SMB_VFS_CREATE_FILE()Ralph Boehme2020-05-142-3/+0
| | | | | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu May 14 19:43:27 UTC 2020 on sn-devel-184
* Fix clang 9 missing-field-initializer warningsGary Lockyer2020-05-081-3/+1
| | | | Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3: VFS: Complete the replacement of SMB_VFS_GET_NT_ACL() -> ↵Jeremy Allison2020-05-072-24/+0
| | | | | | | | | | SMB_VFS_GET_NT_ACL_AT(). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu May 7 21:04:59 UTC 2020 on sn-devel-184
* s3: VFS: Add SMB_VFS_GET_NT_ACL_AT().Jeremy Allison2020-05-072-0/+27
| | | | | | | | | | | | | | Currently identical to SMB_VFS_GET_NT_ACL(). Next, add to all VFS modules that implement get_nt_acl and eventually remove get_nt_acl. NB. Modules that use smb_vfs_assert_all_fns() have SMB_VFS_GET_NT_ACL_AT() will not build until they have this function added. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* smbd: vfs: convert link_contents arg of SMB_VFS_SYMLINKAT() to struct ↵Ralph Boehme2020-05-052-2/+2
| | | | | | | smb_filename Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* smbd: convert SMB_VFS_GET_REAL_FILENAME() arg path to be a struct smb_filenameRalph Boehme2020-05-052-2/+2
| | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfs: remove SMB_VFS_OPENDIR()Ralph Boehme2020-03-242-18/+0
| | | | | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Mar 24 21:23:43 UTC 2020 on sn-devel-184
* winexe: add configure option to control whether to build it (default: auto)Günther Deschner2020-03-091-1/+2
| | | | | | | | | | Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Mon Mar 9 16:27:21 UTC 2020 on sn-devel-184
* librpc: fix IDL for svcctl_ChangeServiceConfigWGünther Deschner2020-03-091-0/+2
| | | | | | | | | | | Found while trying to run winexe against Windows Server 2019. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14313 Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3: VFS: Add SMB_VFS_READ_DFS_PATHAT().Jeremy Allison2020-02-182-0/+27
| | | | | | | Not yet used. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* s3: VFS: Add SMB_VFS_CREATE_DFS_PATHAT().Jeremy Allison2020-01-102-0/+24
| | | | | | | Not yet used. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* auth: Remove the "typedef auth_methods"Volker Lendecke2020-01-061-2/+5
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
* examples/VFS/skel_transparent.c: typo fixesBjörn Jacke2019-10-311-1/+1
| | | | | Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
* s3: VFS: Complete the removal of SMB_VFS_CHOWN()Jeremy Allison2019-10-152-19/+0
| | | | | | | | | | No longer used anywhere. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Oct 15 20:07:51 UTC 2019 on sn-devel-184
* s3: VFS: Complete the removal of SMB_VFS_RMDIR()Jeremy Allison2019-10-102-15/+0
| | | | | | | | | | All users now use SMB_VFS_UNLINKAT(..., AT_REMOVEDIR). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Thu Oct 10 07:26:43 UTC 2019 on sn-devel-184
* s3: VFS: Add SMB_VFS_FCNTLAnoop C S2019-10-082-0/+24
| | | | | | Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3: VFS: Complete the replacement of SMB_VFS_UNLINK() -> SMB_VFS_UNLINKAT().Jeremy Allison2019-09-262-15/+0
| | | | | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Thu Sep 26 18:40:53 UTC 2019 on sn-devel-184
* s3: VFS: Add SMB_VFS_UNLINKAT().Jeremy Allison2019-09-262-0/+22
| | | | | | | | | | Currently identical to SMB_VFS_UNLINK(). Next, add to all VFS modules that implement unlink and eventually remove unlink. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* misc: fix AD trust attributes in adssearchGünther Deschner2019-09-201-5/+12
| | | | | | | Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3: VFS: Complete the replacement of SMB_VFS_MKDIR() -> SMB_VFS_MKDIRAT().Jeremy Allison2019-09-112-17/+0
| | | | | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Wed Sep 11 19:44:44 UTC 2019 on sn-devel-184
* s3: VFS: Add SMB_VFS_MKDIRAT().Jeremy Allison2019-09-112-0/+22
| | | | | | | | | | Currently identical to SMB_VFS_MKDIR(). Next, add to all VFS modules that implement mkdir and eventually remove mkdir. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* s3: VFS: Complete the replacement of SMB_VFS_SYMLINK() -> SMB_VFS_SYMLINKAT().Jeremy Allison2019-09-032-17/+0
| | | | | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Sep 3 22:32:30 UTC 2019 on sn-devel-184
* s3: VFS: Add SMB_VFS_SYMLINKAT().Jeremy Allison2019-09-032-0/+22
| | | | | | | | | | Currently identical to SMB_VFS_SYMLINK(). Next, add to all VFS modules that implement symlink and eventually remove symlink. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>