From owner-freebsd-current@FreeBSD.ORG Thu Jan 16 19:20:36 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 AB6F3D0B; Thu, 16 Jan 2014 19:20:36 +0000 (UTC) Received: from mail-ee0-x22f.google.com (mail-ee0-x22f.google.com [IPv6:2a00:1450:4013:c00::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 16D7E1FD4; Thu, 16 Jan 2014 19:20:35 +0000 (UTC) Received: by mail-ee0-f47.google.com with SMTP id d49so954904eek.20 for ; Thu, 16 Jan 2014 11:20:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=xLl5N6UhL200xOK0rsgBRrWmjzWMp7bxLxCHxGFgxCU=; b=lEuLrqfSeMrMWicCtIlPBlztCFlsoA2gHxbrCdGxzyssNchGvQcNGaqXHDDJXUnXxu 4uEEmYfk+ImL7dTc+H/IT8+kpcILoiw+21LjVDEdWBUTdZhs0ZO48bUhkzEIhaFG1bk/ snO582YGaco8UFRtkAVMMHD2JKzdjLSATycIxqAe4BfGmP9P5M02ff8oA//QPVGlg0m8 txZbjsl1sB6DtUJeys/ZF9x9taeIoBvO/1umnRwdK739TigrMfmp91eM0e2BkjFmjeWi a2xH78fjbGg8uOguxdPqaHFM+ow13kECe4b3YgO+8z/1Ub9Mkd6UL1tJVe12mNwUgOhX 6iFQ== X-Received: by 10.14.0.201 with SMTP id 49mr14553001eeb.38.1389900034210; Thu, 16 Jan 2014 11:20:34 -0800 (PST) Received: from [192.168.1.101] (45.81.datacomsa.pl. [195.34.81.45]) by mx.google.com with ESMTPSA id z46sm20658835een.1.2014.01.16.11.20.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 16 Jan 2014 11:20:33 -0800 (PST) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Subject: Re: mtree acl support Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=windows-1250 From: =?iso-8859-2?Q?Edward_Tomasz_Napiera=B3a?= In-Reply-To: <93FD368C-21D1-4A5F-986A-859D83AFB5BF@kientzle.com> Date: Thu, 16 Jan 2014 20:20:31 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1389710847.2685.70601137.72B5C024@webmail.messagingengine.com> <93FD368C-21D1-4A5F-986A-859D83AFB5BF@kientzle.com> To: Tim Kientzle X-Mailer: Apple Mail (2.1283) 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 19:20:36 -0000 Wiadomo=9C=E6 napisana przez Tim Kientzle w dniu 16 sty 2014, o godz. = 06:11: > 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. It's ACL_TEXT_APPEND_ID, used with acl_to_text_np(3). The other side, acl_from_text(3), already does the right thing when appended IDs are = present in the textual form. --=20 If you cut off my head, what would I say? Me and my head, or me and my = body?