From nobody@FreeBSD.org  Thu Sep 11 07:52:32 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 4D3F3106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 11 Sep 2008 07:52:32 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 3851C8FC18
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 11 Sep 2008 07:52:32 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m8B7qVGl092599
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 11 Sep 2008 07:52:31 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m8B7qVXR092598;
	Thu, 11 Sep 2008 07:52:31 GMT
	(envelope-from nobody)
Message-Id: <200809110752.m8B7qVXR092598@www.freebsd.org>
Date: Thu, 11 Sep 2008 07:52:31 GMT
From: Alex Keda <admin@lissyara.su>
To: freebsd-gnats-submit@FreeBSD.org
Subject: not work cancel inheritance on share
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         127292
>Category:       ports
>Synopsis:       net/samba3: not work cancel inheritance on share
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pgollucci
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 11 08:00:09 UTC 2008
>Closed-Date:    Wed Feb 15 04:32:40 UTC 2012
>Last-Modified:  Wed Feb 15 04:32:40 UTC 2012
>Originator:     Alex Keda
>Release:        6,2
>Organization:
ussr
>Environment:
FreeBSD vlgsrv.moskb.local 6.2-STABLE FreeBSD 6.2-STABLE #0: Wed Jun 13 12:23:52 MSD 2007     lissyara@chlsrv.moskb.local:/usr/obj/usr/src/sys/SMP  i386
>Description:
see full description https://bugzilla.samba.org/show_bug.cgi?id=5052

it actually for all release after 3.0.25

>How-To-Repeat:
create folder in share
>Fix:
vlgsrv# cat /usr/ports/net/samba3/files/patch-posix_acls.c
--- smbd/posix_acls.c.orig      2008-08-26 01:09:21.000000000 +0400
+++ smbd/posix_acls.c   2008-09-11 09:00:41.000000000 +0400
@@ -3300,10 +3300,17 @@

        }

-       parent_sd->dacl->aces = new_ace;
-       parent_sd->dacl->num_aces = i;
+       /* This sucks. psd should be const and we should
+        * be doing a deep-copy here. We're getting away
+        * with is as we know parent_sd is talloced off
+        * talloc_tos() as well as psd. JRA. */
+
+       psd->dacl->aces = new_ace;
+       psd->dacl->num_aces = i;
+       psd->type &= ~(SE_DESC_DACL_AUTO_INHERITED|
+                         SE_DESC_DACL_AUTO_INHERIT_REQ);

-       *pp_new_sd = parent_sd;
+       *pp_new_sd = psd;
        return status;
 }

vlgsrv#   

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->timur 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Sep 11 08:45:02 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=127292 
State-Changed-From-To: open->closed 
State-Changed-By: pgollucci 
State-Changed-When: Wed Feb 15 04:31:31 UTC 2012 
State-Changed-Why:  
net/samba3 is not in the tree anymore 


Responsible-Changed-From-To: timur->pgollucci 
Responsible-Changed-By: pgollucci 
Responsible-Changed-When: Wed Feb 15 04:31:31 UTC 2012 
Responsible-Changed-Why:  
net/samba3 is not in the tree anymore 

http://www.freebsd.org/cgi/query-pr.cgi?pr=127292 
>Unformatted:
