From owner-freebsd-fs@FreeBSD.ORG Sun Mar 14 01:50:39 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A67AB1065709; Sun, 14 Mar 2010 01:50:39 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.24]) by mx1.freebsd.org (Postfix) with ESMTP id 4432E8FC14; Sun, 14 Mar 2010 01:50:38 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 5so702612qwi.7 for ; Sat, 13 Mar 2010 17:50:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:cc :subject:in-reply-to:message-id:references:user-agent :x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; bh=N0HzVyndFN1w7vjzBRUOdjZ/xWdseQ4lmHQVwrIlTuY=; b=OrMnlj68LR5wMHDb4o7WI4rDX6QH2niqtbOp1kSxrRMuQYaSoEC7yiek9VLMK3Td/S N/lXb8rdY2S2QKmtBU63rCdYogi0gAsRGsK0uSqB/qYzzrkmgt1P7bK9ev/qeObqTYLN vg/ah5DlupH4yXz1ZDnXaqMWmlkAinXLKqLME= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; b=qbPTseKr6Ce1wRZJxe3Euve+VB2ShcsREZLiv2pngSLuJFTWdDNh4qWQJvgydjP0m6 ac/nrZ2Z1PGA+1ttAmXB2WPJah7RkK+mALbZzsSFme+F38ooFge1Pyo6Q7Mn5rnuvoEq +uAqcomrRfMwtE7iHOG0FIwloZjH9u5uiFgno= Received: by 10.229.251.69 with SMTP id mr5mr1546426qcb.91.1268531438526; Sat, 13 Mar 2010 17:50:38 -0800 (PST) Received: from ppp-21.234.dialinfree.com (ppp-21.234.dialinfree.com [209.172.21.234]) by mx.google.com with ESMTPS id 21sm2251474qyk.1.2010.03.13.17.50.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 13 Mar 2010 17:50:37 -0800 (PST) Sender: "J. Hellenthal" Date: Sat, 13 Mar 2010 20:40:57 -0500 From: jhell To: Alexander Zagrebin In-Reply-To: <3A28259E0677447BBFDECFCCDBD97FD5@vosz.local> Message-ID: References: <3A28259E0677447BBFDECFCCDBD97FD5@vosz.local> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Cc: freebsd-fs@freebsd.org, freebsd-current@freebsd.org Subject: Re: ZFS allows deletion of files in a sticky directory X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Mar 2010 01:50:39 -0000 On Fri, 19 Feb 2010 18:23, alexz@ wrote: > I have found that directory entry may be deleted from a ZFS directory > with the sticky bit, if "the entry is a plain file and you have write > access" > (this is citation from a comments in zfs_dir.c) > But this behavior isn't described in the sticky(8) and isn't allowed on a > UFS. > The attached patch provides the UFS-like behavior of a sticky directories on > a ZFS. > Is this bug or feature? > > Perhaps you have removed a directory on a share that is managed through Samba and somehow you have had a ACL entry that allowed you to remove that directory ?. This patch is unsuitable for implementation. It effectively removes ACL access for determining writes to a object that you have ACL write access to. Regards, -- jhell