From owner-freebsd-current@FreeBSD.ORG Thu Jan 16 05:17:51 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 16E06AD2 for ; Thu, 16 Jan 2014 05:17:51 +0000 (UTC) Received: from mail-pb0-f47.google.com (mail-pb0-f47.google.com [209.85.160.47]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DD9831D53 for ; Thu, 16 Jan 2014 05:17:50 +0000 (UTC) Received: by mail-pb0-f47.google.com with SMTP id um1so2149687pbc.6 for ; Wed, 15 Jan 2014 21:17:50 -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=v/3Ubd7aDkQzPMXOATHbc+11ARHy+4XAudtwcSLux8M=; b=W3p/BYq7bqgeQZEQkkXa0In5thfT21L5itI8Tjxtn3BySC4nfCEoIuOchF4xi2Rm4s 2CbHI1WZioJBh3zZfylCBP4cN42Z05UXQ3IelGu/vFRsnoONI5VzldlH93T1QsogT8NP F6cRLMzIiHjqZlWt3ana8Fld3XYiHtsG3sj2/qeTz5AkKrRmO7yO/cx59wS124YJozdm ru+NqdjfETnos/Oxls/mUleVgahTRuuYt1ztcQT8BqZ7xK6H3WMMGLgHzBtxZ7Zl6RYg /ggsjpqGxNyaOZtgQ6yB1AnSP0YQ37LxZr2a92V8eqUbWFVog7luKgDbrH8RQ7KM8baj Ubbg== X-Gm-Message-State: ALoCoQk1/MhtQFVzTE4ssUgwNaGKi+ZzUGYVwHa0TWbcOJaewy5tMZH0xGLLZlRFaYh1UjK4OmuC X-Received: by 10.67.3.68 with SMTP id bu4mr7499766pad.144.1389849105365; Wed, 15 Jan 2014 21:11:45 -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 j3sm11962901pbh.38.2014.01.15.21.11.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 Jan 2014 21:11:43 -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: <1389710847.2685.70601137.72B5C024@webmail.messagingengine.com> Date: Wed, 15 Jan 2014 21:11:36 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <93FD368C-21D1-4A5F-986A-859D83AFB5BF@kientzle.com> References: <1389710847.2685.70601137.72B5C024@webmail.messagingengine.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:17:51 -0000 On Jan 14, 2014, at 6:47 AM, Mark Felder wrote: > 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. 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. This is done by including a fourth field in each ACE with the numeric user ID. 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. Tim