From owner-freebsd-current@FreeBSD.ORG Thu Jan 16 05:13:49 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6CD4487F for ; Thu, 16 Jan 2014 05:13:49 +0000 (UTC) Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3F7BC1D25 for ; Thu, 16 Jan 2014 05:13:49 +0000 (UTC) Received: by mail-pa0-f43.google.com with SMTP id rd3so2161165pab.30 for ; Wed, 15 Jan 2014 21:13:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=BsgE2tblbiotx6JK5H/oAftocexLAbPxqXGCeRtWEVo=; b=JQUMK1DhJyINEoBSt6JDCZAqXnXpl/Bc1PtQJCNgtUCC10csbgW+ndfm2f4uMBU9GY k7FxulbfqNpW1qJ4yARlJxucHgCebK2n1v1If6kFGVajenZidnTjIT6iGYMbx7YRQ9R4 3WAG3OhuabvVuJ6uu0GrRrS/cBNkWUCnZvMBE76KNtT5nW8liqex5o1k43QitOX/kzLK qe7DMK59t5R/OsrQdQOQbqLQfUfUzJLa5zxQsLs8pcdc0nHLykw57EaxLIB3O0cFf/Gf DOvqYddYywWIsX4Lq+xrz4UnpoOqV3xMssawI9+zWTqkNSX/cBC0H7ATDx8uMw6ZGZBs Qn8A== X-Gm-Message-State: ALoCoQn95YX6IQEvls8CVFJ2DPc/sakxE6VC1MIrWTG6ycksittcc6BDvmE7FTPgy5flXJZhympe X-Received: by 10.66.156.137 with SMTP id we9mr7648417pab.30.1389849222486; Wed, 15 Jan 2014 21:13:42 -0800 (PST) Received: from [192.168.1.2] (c-24-6-182-22.hsd1.ca.comcast.net. [24.6.182.22]) by mx.google.com with ESMTPSA id bz4sm12011132pbb.12.2014.01.15.21.13.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 Jan 2014 21:13:41 -0800 (PST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: mtree acl support From: Tim Kientzle In-Reply-To: <93FD368C-21D1-4A5F-986A-859D83AFB5BF@kientzle.com> Date: Wed, 15 Jan 2014 21:13:39 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <0D61C030-E1A3-4056-A6F1-00AF39F2ED0B@kientzle.com> References: <1389710847.2685.70601137.72B5C024@webmail.messagingengine.com> <93FD368C-21D1-4A5F-986A-859D83AFB5BF@kientzle.com> To: Mark Felder X-Mailer: Apple Mail (2.1827) Cc: FreeBSD current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jan 2014 05:13:49 -0000 On Jan 15, 2014, at 9:11 PM, Tim Kientzle wrote: >=20 > On Jan 14, 2014, at 6:47 AM, Mark Felder wrote: >=20 >> I was recently talking to someone about how one would backup / = restore >> ACLs reliably. I didn't see any mention of ACLs in the mtree man page >> and after a quick google I came upon this old mailing list post: >>=20 >> = http://lists.freebsd.org/pipermail/freebsd-hackers/2008-April/024173.html >>=20 >> patch in list is here: = http://heka.cenkes.org/sat/diffs/mtree_acl.diff >> I've mirrored it here: https://feld.me/freebsd/mtree_acl.diff >>=20 >> This old patch appears to still apply cleanly. I hate to see a patch = die >> and be forgotten. >=20 > One problem that =91tar=92 has addressed (inspired by Joerg = Schilling=92s > work on star) is to permit ACLs to be restored even if the user = database > is out of date. >=20 > This is done by including a fourth field in each ACE with the > numeric user ID. >=20 > I suspect you want to do the same for mtree. I thought > I remembered acl_to_text having an option to use > an extended text format, so it might be a trivial change. Also, comparing ACLs using strcmp() seems a little odd to me. Tim