1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00
samba-mirror/source3
Ralph Boehme 62d73f5b93 vfs_gpfs: handle EACCES when fetching DOS attributes from xattr
When trying to fetch the DOS attributes via gpfswrap_get_winattrs_path()
if the filesystem doesn't grant READ_ATTR to the file the function fails
with EACCESS.

But according to MS-FSA 2.1.5.1.2.1 "Algorithm to Check Access to an
Existing File" FILE_LIST_DIRECTORY on a directory implies
FILE_READ_ATTRIBUTES for directory entries.

So if the user can open the parent directory for reading this implies
FILE_LIST_DIRECTORY and we can safely call gpfswrap_get_winattrs_path()
with DAC_OVERRIDE_CAPABILITY.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12944

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>

Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Wed Aug  9 01:21:14 CEST 2017 on sn-devel-144
2017-08-09 01:21:13 +02:00
..
auth auth/common: add support for auth4_ctx->check_ntlm_password_send/recv() 2017-08-07 15:20:03 +02:00
build
client source3/client: Fix typo in help message displayed by default 2017-08-07 15:20:04 +02:00
exports
groupdb Correct "errror" typos. 2017-02-22 08:26:22 +01:00
include s3: clients: Use netlogon_creds_cli_close_global_db() in all normal exit paths. 2017-07-26 21:35:22 +02:00
intl lib: Give util_paths.c its own header 2017-06-24 01:21:10 +02:00
lib s3: clients: Use netlogon_creds_cli_close_global_db() in all normal exit paths. 2017-07-26 21:35:22 +02:00
libads s3:libads: make use of secrets_*_password_change() in ads_change_trust_account_password() 2017-06-27 16:57:46 +02:00
libgpo s3-gpo: Fix CID #1405972 Resource leak 2017-05-09 23:20:08 +02:00
libnet s3:libnet: make use of secrets_store_JoinCtx() 2017-06-27 16:57:46 +02:00
librpc secrets.idl: add secrets_domain_info that will be used in secrets.tdb for machine account trusts 2017-06-27 16:57:46 +02:00
libsmb libsmb: Enable "cli_notify" for SMB2+ 2017-07-26 01:33:25 +02:00
locale Correct "descriptior" typos. 2017-02-22 08:26:22 +01:00
locking s3/vfs: rename SMB_VFS_STRICT_LOCK to SMB_VFS_STRICT_LOCK_CHECK 2017-07-11 03:37:44 +02:00
modules vfs_gpfs: handle EACCES when fetching DOS attributes from xattr 2017-08-09 01:21:13 +02:00
nmbd Correct "errror" typos. 2017-02-22 08:26:22 +01:00
param param: Disable LanMan authentication unless NTLMv1 is also enabled 2017-07-04 06:57:20 +02:00
passdb s3:secrets: remove unused secrets_store_[prev_]machine_password() 2017-06-27 16:57:46 +02:00
printing s3-printing: precreate DriverStore directories. 2017-07-26 05:34:14 +02:00
profile s3-profile: reduce dependencies of smbprofile.h 2016-03-28 20:45:16 +02:00
registry s3-rpc_cli: add winreg_add_core_driver() 2017-05-09 16:43:13 +02:00
rpc_client s3: rpc_client: Allocate struct db_context * off the local frame, as all other variables in this function. 2017-07-26 21:35:22 +02:00
rpc_server rpc: use symbolic constant to replace /root/ncalrpc_as_system 2017-07-24 23:29:22 +02:00
rpcclient s3: clients: Use netlogon_creds_cli_close_global_db() in all normal exit paths. 2017-07-26 21:35:22 +02:00
script source3/client: Fix typo in help message displayed by default 2017-08-07 15:20:04 +02:00
selftest torture3: Test dbwrap_do_locked 2017-07-25 17:43:16 +02:00
services Update smbrun to allow for settings environment variables. 2016-10-13 04:26:26 +02:00
smbd s3/smbd: handle EACCES when fetching DOS attributes from xattr 2017-08-08 21:23:10 +02:00
torture idmap: remove unused function idmap_is_online() 2017-08-04 14:08:37 +02:00
utils smbpasswd: Initialize messaging for messaging_ctdb_conn 2017-07-25 17:43:18 +02:00
web
winbindd winbindd: give an IRPC error if wb_irpc_SamLogon() is called without useful routing information 2017-08-07 15:20:04 +02:00
.clang_complete
.dmallocrc
.indent.pro
Doxyfile
mainpage.dox
smbadduser.in
wscript build: fix ceph_statx check when configured with libcephfs_dir 2017-07-20 23:02:27 +02:00
wscript_build ctdb_conn: Use messaging_ctdb_connection 2017-07-25 17:43:18 +02:00
wscript_configure_system_ncurses