Ignore:
Timestamp:
Mar 11, 2009, 9:14:55 AM (16 years ago)
Author:
Paul Smedley
Message:

Add 'missing' 3.0.34 diffs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/smbd/posix_acls.c

    r140 r165  
    31203120}
    31213121
     3122#if 0
     3123/* Disable this - prevents ACL inheritance from the ACL editor. JRA. */
     3124
    31223125/****************************************************************************
    31233126 Take care of parent ACL inheritance.
     
    33013304        }
    33023305
    3303         parent_sd->dacl->aces = new_ace;
    3304         parent_sd->dacl->num_aces = i;
    3305 
    3306         *pp_new_sd = parent_sd;
     3306        /* This sucks. psd should be const and we should
     3307         * be doing a deep-copy here. We're getting away
     3308         * with is as we know parent_sd is talloced off
     3309         * talloc_tos() as well as psd. JRA. */
     3310
     3311        psd->dacl->aces = new_ace;
     3312        psd->dacl->num_aces = i;
     3313        psd->type &= ~(SE_DESC_DACL_AUTO_INHERITED|
     3314                         SE_DESC_DACL_AUTO_INHERIT_REQ);
     3315
     3316        *pp_new_sd = psd;
    33073317        return status;
    33083318}
     3319#endif
    33093320
    33103321/****************************************************************************
     
    34203431        create_file_sids(&sbuf, &file_owner_sid, &file_grp_sid);
    34213432
     3433#if 0
     3434        /* Disable this - prevents ACL inheritance from the ACL editor. JRA. */
     3435
     3436        /* See here: http://www.codeproject.com/KB/winsdk/accessctrl2.aspx
     3437         * for details and also the log trace in bug #4308. JRA.
     3438        */
     3439
    34223440        if ((security_info_sent & DACL_SECURITY_INFORMATION) &&
    34233441                psd->dacl != NULL &&
     
    34313449                }
    34323450        }
     3451#endif
    34333452
    34343453        acl_perms = unpack_canon_ace( fsp, &sbuf, &file_owner_sid, &file_grp_sid,
     
    42714290                return False;
    42724291        }
     4292#ifndef __OS2__
     4293        /* Samba always runs as root on OS/2 */
    42734294        if (current_user.ut.uid == 0 || conn->admin_user) {
    42744295                /* I'm sorry sir, I didn't know you were root... */
    42754296                return True;
    42764297        }
     4298#endif
    42774299
    42784300        /* Check primary owner write access. */
     
    43274349                (unsigned int)access_mask, fname ));
    43284350
    4329 #ifndef __OS2__
    4330         /* Samba always runs as root on OS/2 */
    43314351        if (current_user.ut.uid == 0 || conn->admin_user) {
    43324352                /* I'm sorry sir, I didn't know you were root... */
    43334353                return True;
    43344354        }
    4335 #endif
     4355
    43364356        if (!VALID_STAT(*psbuf)) {
    43374357                /* Get the file permission mask and owners. */
Note: See TracChangeset for help on using the changeset viewer.