Changeset 165 for branches/samba-3.0/source/smbd/posix_acls.c
- Timestamp:
- Mar 11, 2009, 9:14:55 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/smbd/posix_acls.c
r140 r165 3120 3120 } 3121 3121 3122 #if 0 3123 /* Disable this - prevents ACL inheritance from the ACL editor. JRA. */ 3124 3122 3125 /**************************************************************************** 3123 3126 Take care of parent ACL inheritance. … … 3301 3304 } 3302 3305 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; 3307 3317 return status; 3308 3318 } 3319 #endif 3309 3320 3310 3321 /**************************************************************************** … … 3420 3431 create_file_sids(&sbuf, &file_owner_sid, &file_grp_sid); 3421 3432 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 3422 3440 if ((security_info_sent & DACL_SECURITY_INFORMATION) && 3423 3441 psd->dacl != NULL && … … 3431 3449 } 3432 3450 } 3451 #endif 3433 3452 3434 3453 acl_perms = unpack_canon_ace( fsp, &sbuf, &file_owner_sid, &file_grp_sid, … … 4271 4290 return False; 4272 4291 } 4292 #ifndef __OS2__ 4293 /* Samba always runs as root on OS/2 */ 4273 4294 if (current_user.ut.uid == 0 || conn->admin_user) { 4274 4295 /* I'm sorry sir, I didn't know you were root... */ 4275 4296 return True; 4276 4297 } 4298 #endif 4277 4299 4278 4300 /* Check primary owner write access. */ … … 4327 4349 (unsigned int)access_mask, fname )); 4328 4350 4329 #ifndef __OS2__4330 /* Samba always runs as root on OS/2 */4331 4351 if (current_user.ut.uid == 0 || conn->admin_user) { 4332 4352 /* I'm sorry sir, I didn't know you were root... */ 4333 4353 return True; 4334 4354 } 4335 #endif 4355 4336 4356 if (!VALID_STAT(*psbuf)) { 4337 4357 /* Get the file permission mask and owners. */
Note:
See TracChangeset
for help on using the changeset viewer.