xfs
[Top] [All Lists]

Re: [PATCH 2/4] xfs: SGI ACLs: Fix caching and mode setting

To: Brian Foster <bfoster@xxxxxxxxxx>
Subject: Re: [PATCH 2/4] xfs: SGI ACLs: Fix caching and mode setting
From: Andreas Gruenbacher <agruenba@xxxxxxxxxx>
Date: Mon, 26 Oct 2015 16:39:20 +0100
Cc: xfs@xxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat_com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=F+gM+T8qpI+vpBmH4hlgnzzBQmflUREaAkeg8DqoIpY=; b=Xok8so+fBKKyTadlO3D55f/4Z2mFiqbcHLCB8dlcjJZFn+cXyNFo0CZWXA9HNDJJLE AFNdD4AN34ZKaXXR+i5zHiPvPbIQ8hryfnbfp//NFRNkcBSuiPs18eP4/8LNHJBHXdZF zSniBAsba9snfC+50e0Z0SuY0cCXfpTBoGzd4snO0UXdIfj+5Hu8lA8+e1ghr/PGH8/E 4wZ3q8S9EK93n2k2x3GERKD78a9bv6sZ0/cFJr+4W0oALQ1NuV3ysPXF/wQ1wQngbF8u 8NmERM1l/GvOp9o3pO7FgM+czK2FIXF2imj96JvYR3HoGNpR7LaINuB4txacv0OQOAoX C/iA==
In-reply-to: <20151026140202.GB59738@xxxxxxxxxxxxxxx>
References: <1445721369-25679-1-git-send-email-agruenba@xxxxxxxxxx> <1445721369-25679-3-git-send-email-agruenba@xxxxxxxxxx> <20151026140202.GB59738@xxxxxxxxxxxxxxx>
On Mon, Oct 26, 2015 at 3:02 PM, Brian Foster <bfoster@xxxxxxxxxx> wrote:
> Finally, another random thought... another way to approach this whole
> thing might be just to redirect the SGI_FILE_* xattr calls to the
> system.posix_acl_* calls.

You mean silently changing the binary format of those attributes?
That's the worst thing we could possibly do.

> The SGI_FILE_* xattr data changes along with the required conversions
> and whatnot, but then at least we expose data in a more generic format.

I really doubt that we can get rid of those attributes.

The patches in this queue don't "change" the format of those
attributes, they only fix them for use in UID/GID  namespaces where
they are currently broken. Validation when setting those xattrs could
be removed, allowing sysadmins to set acls which the kernel and
xfs_repair would reject; it seems rather pointless though.

Thanks,
Andreas

<Prev in Thread] Current Thread [Next in Thread>