Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jan 2014 20:20:31 +0100
From:      =?iso-8859-2?Q?Edward_Tomasz_Napiera=B3a?= <trasz@FreeBSD.org>
To:        Tim Kientzle <tim@kientzle.com>
Cc:        FreeBSD current <freebsd-current@freebsd.org>
Subject:   Re: mtree acl support
Message-ID:  <C48E8727-B311-4BC7-B80A-4F0288C1CBB7@FreeBSD.org>
In-Reply-To: <93FD368C-21D1-4A5F-986A-859D83AFB5BF@kientzle.com>
References:  <1389710847.2685.70601137.72B5C024@webmail.messagingengine.com> <93FD368C-21D1-4A5F-986A-859D83AFB5BF@kientzle.com>

index | next in thread | previous in thread | raw e-mail

Wiadomość napisana przez Tim Kientzle w dniu 16 sty 2014, o godz. 06:11:
> On Jan 14, 2014, at 6:47 AM, Mark Felder <feld@freebsd.org> 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:
>> 
>> http://lists.freebsd.org/pipermail/freebsd-hackers/2008-April/024173.html
>> 
>> 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
>> 
>> This old patch appears to still apply cleanly. I hate to see a patch die
>> and be forgotten.
> 
> One problem that ‘tar’ has addressed (inspired by Joerg Schilling’s
> 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.

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.

-- 
If you cut off my head, what would I say?  Me and my head, or me and my body?



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C48E8727-B311-4BC7-B80A-4F0288C1CBB7>