summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* vfs: RIP SMB_VFS_GETXATTR()Jeremy Allison2021-07-042-21/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | .--. .-, .-..-.__ .'(`.-` \_.-'-./` |\_( "\__ __.>\ '; _;---,._| / __/`'--) /.--. : |/' _.--.<| / | | _..-' `\ /' /` /_/ _/_/ >_.-``-. `Y /' _;---.`|/)))) '` .-''. \|: .' __, .-'"` .'--._ `-: \/: /' '.\ _|_ /.'`\ :; /' `- `-|-` -` | | | :.; : | .-'~^~`-. |: | .' _ _ `. |:. | | |_) | |_) | :. : | | | \ | | | : ; | | | : ; | | SMB_VFS | : ; | | GETXATTR | : ; | | | .jgs. : ; | | -."-/\\\/:::. `\."-._'."-"_\\-| |///."- " -."-.\\"-."//.-".`-."_\\-.".-\\`=.........=`//-". Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* VFS: Remove SMB_VFS_CHFLAGS, not used anymoreNoel Power2021-06-292-17/+0
| | | | | Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org>
* VFS: Add initial implemenataion for SMB_VFS_FCHFLAGSNoel Power2021-06-292-0/+17
| | | | | Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org>
* winexe: Some code cleanup and fixesAndreas Schneider2021-06-201-3/+3
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* winexe: Use the new cmdline option parserAndreas Schneider2021-06-202-109/+36
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=14616 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3: VFS: RIP SMB_VFS_SYS_ACL_BLOB_GET_FILE()Jeremy Allison2021-06-092-22/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (\ _ /) ( \ O / ) (// \\) X / \ /___\ _____/ \\_____ | + || | || | SMB_VFS_SYS_ACL || | BLOB_GET_FILE() || | || | || | || | _ ___ _ || | | \ | | \ || | | | | | | || | |_/ | |_/ || | | \ | | || | | \ | | || | | \. _|_. | . || | || * * | * ** * ** |** ** \)),.,\(/.,(//,,..,,\||(,,.,\\,.((// Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* s3: VFS: RIP SMB_VFS_SYS_ACL_GET_FILE()Jeremy Allison2021-06-092-19/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (\ _ /) ( \ O / ) (// \\) X / \ /___\ _____/ \\_____ | + || | || | SMB_VFS_SYS_ || | ACL_GET_FILE() || | || | || | || | _ ___ _ || | | \ | | \ || | | | | | | || | |_/ | |_/ || | | \ | | || | | \ | | || | | \. _|_. | . || | || * * | * ** * ** |** ** \)),.,\(/.,(//,,..,,\||(,,.,\\,.((// Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* vfs: RIP SMB_VFS_GET_NT_ACL_AT()Jeremy Allison2021-06-092-27/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | .--. .-, .-..-.__ .'(`.-` \_.-'-./` |\_( "\__ __.>\ '; _;---,._| / __/`'--) /.--. : |/' _.--.<| / | | _..-' `\ /' /` /_/ _/_/ >_.-``-. `Y /' _;---.`|/)))) '` .-''. \|: .' __, .-'"` .'--._ `-: \/: /' '.\ _|_ /.'`\ :; /' `- `-|-` -` | | | :.; : | .-'~^~`-. |: | .' _ _ `. |:. | | |_) | |_) | :. : | | | \ | | | : ; | | | : ; | | SMB_VFS | : ; | | GET_NT_ | : ; | | ACL_AT | .jgs. : ; | | -."-/\\\/:::. `\."-._'."-"_\\-| |///."- " -."-.\\"-."//.-".`-."_\\-.".-\\`=.........=`//-". Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* VFS: SMB_VFS_SYS_ACL_GET_FD: Modify api to take additional type paramNoel Power2021-06-092-3/+7
| | | | | | | | | Modify all implementations (and the definitions) related to SMB_VFS_SYS_ACL_GET_FD to accept additional SMB_ACL_TYPE_T type param. Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* s3: VFS: Add SMB_VFS_PARENT_PATHNAME().Jeremy Allison2021-06-022-0/+24
| | | | | | | | | | | | | Not yet used. Default is NTSTATUS version of parent_smb_fname(). Now to replace all users of parent_smb_fname() with SMB_VFS_PARENT_PATHNAME() and then remove parent_smb_fname(). Needed due to snapdirseverywhere code in vfs_shadow_copy2. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* examples: Migrate smb2mount to new cmdline option parserAndreas Schneider2021-05-282-8/+23
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* examples: Pass cli_credentials to connect_one in smb2mountAndreas Schneider2021-05-281-3/+6
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* vfs: RIP SMB_VFS_SYS_ACL_DELETE_DEF_FILE()Jeremy Allison2021-05-182-15/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | .--. .-, .-..-.__ .'(`.-` \_.-'-./` |\_( "\__ __.>\ '; _;---,._| / __/`'--) /.--. : |/' _.--.<| / | | _..-' `\ /' /` /_/ _/_/ >_.-``-. `Y /' _;---.`|/)))) '` .-''. \|: .' __, .-'"` .'--._ `-: \/: /' '.\ _|_ /.'`\ :; /' `- `-|-` -` | | | :.; : | .-'~^~`-. |: | .' _ _ `. |:. | | |_) | |_) | :. : | | | \ | | | : ; | | | : ; | | SMB_VFS | : ; | | SYS_ACL | : ; | |DELETE_DEF | .jgs. : ; | FILE | -."-/\\\/:::. `\."-._'."-"_\\-| |///."- " -."-.\\"-."//.-".`-."_\\-.".-\\`=.........=`//-". Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Noel Power <npower@samba.org>
* s3: VFS: Add SMB_VFS_SYS_ACL_DELETE_DEF_FD(),Jeremy Allison2021-05-182-0/+15
| | | | | | | Not yet used. Eventually will replace SMB_VFS_SYS_ACL_DELETE_DEF_FILE(). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Noel Power <noel.power@suse.com>
* s3: VFS: Remove SMB_VFS_READDIR_ATTR(), no longer usedSamuel Cabrero2021-05-142-18/+0
| | | | | | | | | | | | | | | | | | | | | | ---------------- / \ / REST \ / IN \ / PEACE \ / \ | | | SMB_VFS_READDIR_ATTR | | | | | | 13 May | | 2021 | | | | | *| * * * | * _________)/\\_//(\/(/\)/\//\/\///\/|_)_______ Signed-off-by: Samuel Cabrero <scabrero@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* VFS: Add SMB_VFS_FREADDIR_ATTR()Samuel Cabrero2021-05-142-0/+18
| | | | | Signed-off-by: Samuel Cabrero <scabrero@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3: VFS: Remove SMB_VFS_STREAMINFO(), no longer usedNoel Power2021-05-112-27/+0
| | | | | | | | | | | | | | | | | | | | | | --------------- / \ / REST \ / IN \ / PEACE \ / \ | | | SMB_VFS_STREAMINFO | | | | | | 28 April | | 2021 | | | | | *| * * * | * _________)/\\_//(\/(/\)/\//\/\////|_)_______ Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org>
* VFS: Add SMB_VFS_FSTREAMINFONoel Power2021-05-112-0/+24
| | | | | Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org>
* auth:creds: Add obtained arg to cli_credentials_set_kerberos_state()Andreas Schneider2021-04-281-1/+2
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* tests: Use --configfile instead of -sAndreas Schneider2021-04-284-15/+15
| | | | | | | | | | We should use long options in tests to make clear what we are trying to do. Also the -s short option will be removed for --configfile later. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* auth3: Remove auth_skel.cVolker Lendecke2021-04-193-118/+0
| | | | | | | | | | | | | | | Authentication is a very complex topic, and someone who is able to write a custom auth module turning a struct auth_usersupplied_info into a struct auth_serversupplied_info should be able to live without this skeleton module. This module also gave an example to load a secondary authentication module via a module parameter (the call to load_module()). We have abandoned this practice, and since the "auth methods" parameter has gone we don't use this anymore internally. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:script: Remove findsmb from default installationAndreas Schneider2021-04-192-0/+305
| | | | | | | | | | | | | | | This tool is the only client tool which requires perl. Distributions are removing perl from the default installation now. Also this is a wrapper around nmblookup which is obsolete in the AD world. However it might still be used by someone so move it just to examples/scripts/nmb/ Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Mon Apr 19 14:37:04 UTC 2021 on sn-devel-184
* s3: VFS: Remove SMB_VFS_NTIMES(), no longer usedSamuel Cabrero2021-04-192-17/+0
| | | | | | | | | | | | | | | | | | | | | | | | | --------------- / \ / REST \ / IN \ / PEACE \ / \ | | | SMB_VFS_NTIMES | | | | | | 13 April | | 2021 | | | | | *| * * * | * _________)/\\_//(\/(/\)/\//\/\////|_)_______ Signed-off-by: Samuel Cabrero <scabrero@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Samuel Cabrero <scabrero@samba.org> Autobuild-Date(master): Mon Apr 19 13:19:35 UTC 2021 on sn-devel-184
* VFS: Add SMB_VFS_FNTIMESSamuel Cabrero2021-04-192-0/+17
| | | | | Signed-off-by: Samuel Cabrero <scabrero@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* VFS: Remove SMB_VFS_CHMOD, no longer usedNoel Power2021-04-112-17/+0
| | | | | | | | | | | | | | | | | | | | | | | | | --------------- / \ / REST \ / IN \ / PEACE \ / \ | | | SMB_VFS_CHMOD | | | | | | 08 April | | 2021 | | | | | *| * * * | * _________)/\\_//(\/(/\)/\//\/\////|_)_______ Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Noel Power <npower@samba.org> Autobuild-Date(master): Sun Apr 11 23:25:31 UTC 2021 on sn-devel-184
* VFS: Remove SMB_VFS_SET_DOS_ATTRIBUTE, no longer usedNoel Power2021-04-082-18/+0
| | | | | | | | | | | | | | | | | | | | | | | | ------------------- / \ / REST \ / IN \ / PEACE \ / \ | | | SMB_VFS_SET_DOS_ATTRIBUTE | | | | | | 3 March | | 2021 | | | | | *| * * * * * | * _________)/\\_//(\/(/\)/\//\/\////\\/|_)_______ Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Apr 8 18:38:40 UTC 2021 on sn-devel-184
* VFS: Remove SMB_VFS_REMOVEXATTR, no longer usedJeremy Allison2021-04-072-17/+0
| | | | | | | | | | | | | | | | | | | | | | --------------- / \ / REST \ / IN \ / PEACE \ / \ | | | SMB_VFS_REMOVEXATTR | | | | | | 22 March | | 2021 | | | | | *| * * * | * _________)/\\_//(\/(/\)/\//\/\////|_)_______ Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* 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>