1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source3
Ralph Boehme ecb8a99a2c smbd: use metadata_fsp(fsp) in copy_access_posix_acl() for SMB_VFS_SYS_ACL_SET_FD
When inherting permissions on the created stream, we call into the VFS to fetch
the streams security descriptor via inherit_access_posix_acl() ->
copy_access_posix_acl() -> SMB_VFS_SYS_ACL_SET_FD() passing the stream fsp which
triggers the assert SMB_ASSERT(!fsp_is_alternate_stream(fsp)) in
vfswrap_sys_acl_set_fd() in vfs_default.

Just passing the base fsp to the VFS fixes this.

vfs_streams_depot which *does use* distinct backend filesystem files for the
streams, currently does not apply permissions to the stream files at all, so the
incomplete behaviour of vfs_streams_depot is not affected by this change.

If in the future someone want to fix this defficiency in vfs_streams_depot, the
module code can use fsp->stream_fsp to base decisions in VFS ops whether the
module should carry out some action.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15695

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Sep  2 08:55:28 UTC 2024 on atb-devel-224
2024-09-02 08:55:28 +00:00
..
auth s3:auth: allow real plaintext authentication 2024-07-17 11:17:54 +00:00
build
client libsmb: Convert cli_RNetShareEnum() to NTSTATUS 2024-08-20 09:34:40 +00:00
exports
groupdb s3:groupdb: Add missing newline to logging message 2023-08-08 04:39:38 +00:00
include lib: Add libcli/util/ntstatus.h in a few headers where it's needed 2024-08-27 07:19:32 +00:00
intl
lib s3:lib: add winbind_lookup_name_ex() fallback for --without-winbind 2024-08-07 06:18:31 +00:00
libads s3:libads: Do not print error message for a default configuration 2024-08-19 13:21:08 +00:00
libgpo/gpext lib: Give lib/util/util_file.c its own header file 2024-04-16 23:51:45 +00:00
libnet s3:libnet: Fix code spelling 2024-08-04 00:32:39 +00:00
librpc s3:librpc: Fix a typo in DEBUG text 2024-07-17 07:48:31 +00:00
libsmb libsmb: Remove cli_state->rap_error 2024-08-21 12:49:45 +00:00
locale s3:utils: Fix code spelling 2023-08-08 04:39:38 +00:00
locking lib: Add libcli/util/ntstatus.h in a few headers where it's needed 2024-08-27 07:19:32 +00:00
modules vfs_ceph_new: handle case of readlinkat with empty name string 2024-08-30 10:42:27 +00:00
nmbd s3:libsmb: Pass memory context to cli_connect_nb() 2024-04-29 08:43:32 +00:00
param docs-xml: add 'vfs mkdir use tmp name' option 2024-08-21 08:02:30 +00:00
passdb libsmb: Simplify pdb_sethexpwd with hex_byte() 2024-08-27 07:19:32 +00:00
printing s3:printing: Allow to run samba-bgqd as a standalone systemd service 2024-07-19 11:13:28 +00:00
profile profile: Fix rusage reporting 2023-12-19 16:05:36 +00:00
registry lib: Add a few explicit includes 2024-08-27 07:19:32 +00:00
rpc_client s3/rpc_client: fix handling of NT_STATUS_SOME_NOT_MAPPED 2024-07-26 10:06:31 +00:00
rpc_server samr: Avoid a "ret == false" for a bool 2024-08-20 09:34:39 +00:00
rpcclient s3:lib: Merge library trusts_util into library ads 2024-07-26 17:12:36 +00:00
script s3:tests: make use of TMPDIR in test_symlink_traversal_*.sh 2024-08-29 18:25:28 +00:00
selftest smbtorture: test creating stream doesn't crash when using "inherit permissions = yes" 2024-09-02 07:19:38 +00:00
services s3:services: Initialize struct security_ace array 2024-07-16 11:41:33 +00:00
smbd smbd: use metadata_fsp(fsp) in copy_access_posix_acl() for SMB_VFS_SYS_ACL_SET_FD 2024-09-02 08:55:28 +00:00
torture s3:vfs: add vfs_rename_how to SMB_VFS_RENAMEAT() 2024-08-21 08:02:30 +00:00
utils libsmb: Remove cli_state->rap_error 2024-08-21 12:49:45 +00:00
web
winbindd winbindd: let LookupNames return NT_STATUS_OK and SID_NAME_UNKNOWN for unmapped names 2024-07-26 10:06:31 +00:00
.clang_complete
.dmallocrc
.indent.pro
Doxyfile
mainpage.dox
smbadduser.in
wscript source3/wscript: Introduce auto mode to build ceph vfs modules 2024-08-27 06:18:51 +00:00
wscript_build build: Fix LIBCLI_SAMR dependencies 2024-08-20 09:34:39 +00:00
wscript_configure_system_ncurses