vfs_fruit: don't use MS NFS ACEs with Windows clients
authorRalph Boehme <slow@samba.org>
Wed, 12 Jul 2017 07:33:59 +0000 (09:33 +0200)
committerKarolin Seeger <kseeger@samba.org>
Sun, 23 Jul 2017 20:25:23 +0000 (22:25 +0200)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=12897

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Thu Jul 13 22:21:08 CEST 2017 on sn-devel-144

(cherry picked from commit df0db9d8f893f9245c6289200303b94a6e2d48d0)

source3/modules/vfs_fruit.c

index a06381d3776a7007e1b2ae52dc0a0d8571c2b040..df0a7007636c03612e83b9bfa9a2d523b3c5c60a 100644 (file)
@@ -2561,6 +2561,9 @@ static NTSTATUS check_ms_nfs(vfs_handle_struct *handle,
                                struct fruit_config_data,
                                return NT_STATUS_UNSUCCESSFUL);
 
+       if (!global_fruit_config.nego_aapl) {
+               return NT_STATUS_OK;
+       }
        if (psd->dacl == NULL || !config->unix_info_enabled) {
                return NT_STATUS_OK;
        }
@@ -5140,6 +5143,9 @@ static NTSTATUS fruit_fget_nt_acl(vfs_handle_struct *handle,
        /*
         * Add MS NFS style ACEs with uid, gid and mode
         */
+       if (!global_fruit_config.nego_aapl) {
+               return NT_STATUS_OK;
+       }
        if (!config->unix_info_enabled) {
                return NT_STATUS_OK;
        }