summaryrefslogtreecommitdiff
path: root/source3/include
AgeCommit message (Collapse)AuthorFilesLines
2026-03-13profile: add xattr and fstatvfs syscallsShachar Sharon1-0/+10
Add missing *xattr and fstatvfs to profile's syscall counters. Signed-off-by: Shachar Sharon <ssharon@redhat.com> Reviewed-by: Anoop C S <anoopcs@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2026-03-01vfs: Remove unused SMB_VFS_GETWD()Volker Lendecke3-13/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Sun Mar 1 21:22:24 UTC 2026 on atb-devel-224
2026-03-01s3/include: Remove unused BIG_UINTAnoop C S1-3/+0
Signed-off-by: Anoop C S <anoopcs@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Sun Mar 1 11:18:37 UTC 2026 on atb-devel-224
2026-03-01s3/include: Remove unused SBIG_UINTAnoop C S1-1/+0
Signed-off-by: Anoop C S <anoopcs@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
2026-02-15lib: Streamline finding a file's block device for quota codeVolker Lendecke1-2/+10
Use /proc/self/mountinfo to find the block device a file is mounted on for quotactl purposes. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2026-02-15vfs: Add "fsp" to SMB_VFS_SET_QUOTAVolker Lendecke2-7/+17
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2026-02-15vfs: Change SMB_VFS_GET_QUOTA to take a fsp instead of a nameVolker Lendecke2-16/+18
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2026-02-15vfs: Remove SMB_VFS_STATVFSVolker Lendecke2-14/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2026-02-15vfs: Add SMB_VFS_FSTATVFSVolker Lendecke2-0/+15
To replace SMB_VFS_STATVFS next Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2026-02-15smbd: Give statvfs.c its own header fileVolker Lendecke1-30/+0
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2026-02-15vfs: Change SMB_VFS_DISK_FREE to take a fspVolker Lendecke2-14/+18
The modules that change the pathname need a synthetic_pathref now for the SMB_VFS_NEXT_DISK_FREE() call. I think this is the right thing to do anyway, as this goes through all the path scrutiny and does not depend on direct multi-component paths anymore. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2026-01-20printing: Inline oneliners used just onceVolker Lendecke1-4/+0
This patch and the 2 previous ones could be squashed, but it's the way those unfolded :-) Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2026-01-20lib: Remove a function unused since 2016Volker Lendecke1-1/+0
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2026-01-20srvsvc: Move valid_share_pathname() to where it's usedVolker Lendecke1-1/+0
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2026-01-20lib: Remove the pointless unix_format() macroVolker Lendecke1-1/+0
One of the two callers even had a comment what it does... Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2026-01-20smbd: Remove unused STR_TO_SMB_BIG_UINTVolker Lendecke1-1/+0
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2026-01-13s3:libsmb: Rework check_negative_conn_cache()Andreas Schneider1-1/+1
The name and results are confusing. Rename the function and use a bool that it is easier to understand. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Pavel Filipenský <pfilipensky@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Tue Jan 13 17:00:06 UTC 2026 on atb-devel-224
2026-01-13s3:lib/util_sock: allow {before,after}_connect hooks to be passed to ↵Stefan Metzmacher1-1/+4
open_socket_out_send() async_connect_send() already has these hooks now open_socket_out_send() callers can pass them through. This will be useful for IPPROTO_SMBDIRECT sockets to setup things between the socket() and connect() syscalls. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Tue Jan 13 08:13:04 UTC 2026 on atb-devel-224
2026-01-12lib: Remove [set|drop]_effective_capability and enum smbd_capabilityVolker Lendecke2-11/+0
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Mon Jan 12 10:39:38 UTC 2026 on atb-devel-224
2026-01-12lib: Add capability-specific functionsVolker Lendecke1-0/+2
This makes the one-attempt logic for dac_override simpler to understand. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2026-01-12lib: Remove LEASE_CAPABILITYVolker Lendecke1-1/+0
This was only used via vfs_gpfs, and that removed its use in 2020. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2026-01-12lib: Remove KERNEL_OPLOCK_CAPABILITYVolker Lendecke1-1/+0
This was only used in the IRIX oplock code, which was removed in 2018. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2026-01-07lib: Move a few smb-related constant #defines to common codeVolker Lendecke1-45/+0
No need to have two copies in source3 and source4 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Wed Jan 7 11:00:48 UTC 2026 on atb-devel-224
2026-01-07lib: Remove a few unused #definesVolker Lendecke1-32/+0
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2026-01-07smbd: Move utok_string() into smbdVolker Lendecke1-1/+0
Only used in chdir_current_service() Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2026-01-07lib: Remove two unused functionsVolker Lendecke1-2/+0
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2026-01-07lib: Simplify sys_acl_to_text() with talloc_asprintf_addbuf()Volker Lendecke1-1/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2026-01-07smbd: Remove #defines used just onceVolker Lendecke1-12/+0
For me they were not giving additional insights, they only made me jump somewhere else to see what's going on. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2026-01-07smbd: Remove unused #definesVolker Lendecke1-15/+0
Unused since 2001... Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2026-01-07lib: Fix some whitespaceVolker Lendecke3-15/+15
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2025-12-09s3:include: Fix the smbc_fgetxattr() documentation in libsmbclientAndreas Schneider1-1/+27
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15960 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Tue Dec 9 19:33:22 UTC 2025 on atb-devel-224
2025-11-18vfs: Bump VFS interface version after adding VFS_OPEN_HOW_RESOLVE_NO_XDEVSamuel Cabrero1-1/+2
If a module was compiled with an older version it won't handle the new flag. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15805 Signed-off-by: Samuel Cabrero <scabrero@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2025-11-18vfs: Add VFS_OPEN_HOW_RESOLVE_NO_XDEV flagSamuel Cabrero1-0/+1
It disallows traversal of mount points during path resolution, including bind mounts. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15805 Signed-off-by: Samuel Cabrero <scabrero@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2025-11-12printing: Update version for print databaseVinit Agnihotri1-1/+1
Updating version to change time_t related store/fetch from exisiting uint32_t values to time_t (64-bit) values. Signed-off-by: Vinit Agnihotri <vagnihot@redhat.com> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2025-11-10lib: Introduce cp_smb_basename() helper functionVolker Lendecke1-0/+1
I always had to look up the sequence of NULLs and 0s. Save lines. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Mon Nov 10 14:33:28 UTC 2025 on atb-devel-224
2025-11-10lib: Remove some unused code #ifdef'ed out for more than 10 yearsVolker Lendecke1-3/+0
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2025-11-10lib: Remove an ancient prototypeVolker Lendecke1-4/+0
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2025-11-10lib: Remove duplicate #define of TALLOC_FREE()Volker Lendecke1-4/+0
These days talloc.h has it. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2025-11-10s3: Remove TALLOC_REALLOC() macroVolker Lendecke1-1/+0
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2025-11-10s3: talloc_destroy() -> TALLOC_FREE()Volker Lendecke1-1/+0
Sweeping change, I know. Should not change compiled code in most cases, the compiler should be smart enough to elide the assignment right before a return. In the cases where this is not right before the return, TALLOC_FREE() is safer as it makes use-after-free crash. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2025-11-10s3: Replace TALLOC_SIZE() with talloc_size()Volker Lendecke1-1/+0
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2025-11-10s3: Remove the now-unused TALLOC() macroVolker Lendecke1-1/+0
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2025-11-10vfs: Remove audit_file functionVolker Lendecke2-21/+1
Added in 2012 with 0dc3f423d25d3a, but I could not find any user of that call. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2025-11-10vfs: Remove connectpath functionVolker Lendecke2-16/+1
Nobody called this Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2025-11-06s3:libsmb: Add a talloc context to the internal data structureAndreas Schneider1-0/+2
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2025-10-21vfs: Add SMB_VFS_RENAME_STREAMVolker Lendecke3-0/+29
[MS-FSA] 2.1.5.15.12.1 Algorithm for Performing Stream Rename is simpler and diffent enough from renaming a file or directory that I believe a separate VFS operation is justified instead of tunneling it through the renameat call. For example it's only possible to rename streams within a file, so only one stream open fsp and a newname which is guaranteed to be a stream name is necessary. Add stub implementations to our streams modules, to be filled later. Signed-off-by: Volker Lendecke <vl@samba.org> vfs_streams_xattr: rename_streams Reviewed-by: Ralph Boehme <slow@samba.org>
2025-10-10s3/locking: comment reformattingRalph Boehme1-4/+9
Prepares for upcoming changes. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2025-10-10vfs_fruit: add option "fruit:posix_opens = yes|no" (default: yes)Ralph Boehme1-0/+18
Tags alls opens as POSIX by setting fsp_flags.posix_open to true. POSIX handles have different behaviour compared to Windows: Behaviour | POSIX | Windows | macOS |fruit:posix_opens = yes -----------------------------------+------------+---------------------------------------- Deleting files with open handles | yes | no | yes | yes Moving directories with open files | yes | no | yes | yes Byterange locks behaviour | POSIX-ish | Window-ish | POSIX-ish | POSIX-ish Sticky writetime | no | yes | no | no Case sensitive | no | yes | yes | yes Streams allowed | no | yes | yes | yes macOS follows POSIX for the first four, but needs case insensitive behaviour and needs streams. By carefully setting fsp_flags.posix_open to true *after* going through the path resolution logic, but before opens are added to locking.tdb, with "fruit:posix_opens = yes" we get closest to macOS semantics. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15926 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2025-09-30smbd: Add vfswrap_check_async_with_thread_creds() helperPawan Sahu1-0/+3
Move the logic that checks for sufficient threads and per-thread credential support into a dedicated helper function: vfswrap_check_async_with_thread_creds(). Signed-off-by: Pawan Sahu <Pawan.Sahu1@ibm.com> Reviewed-by: Vinit Agnihotri <vagnihot@redhat.com> Reviewed-by: Christof Schmitt <cs@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
2025-09-30smbd: Introduce struct vfs_pthread_pool_job_statePawan Sahu1-0/+21
Refactor the vfswrap_getattrat_state structure by extracting the members specific to pthreadpool job handling into a new struct vfs_pthread_pool_job_state. This improves code clarity and allows reuse of the job-related state in other contexts. Signed-off-by: Pawan Sahu <Pawan.Sahu1@ibm.com> Reviewed-by: Vinit Agnihotri <vagnihot@redhat.com> Reviewed-by: Christof Schmitt <cs@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>