* ACLs
@ 2010-08-05 12:47 Lukas Hejtmanek
2010-08-05 18:52 ` ACLs J. Bruce Fields
0 siblings, 1 reply; 2+ messages in thread
From: Lukas Hejtmanek @ 2010-08-05 12:47 UTC (permalink / raw)
To: linux-nfs
Hello,
I use nfs4-acl-tools-0.3.3 and I get some oddities when setting the ACL:
$ nfs4_getfacl test
A::OWNER@:rwatTcCy
A::xhejtman@META:rtcy
A::GROUP@:tcy
A::EVERYONE@:tcy
$ nfs4_setfacl -s "A::ludek@META:R" test
$ nfs4_getfacl test
D::OWNER@:r
A::OWNER@:tTcCy
A::ludek@META:rtcy
A::GROUP@:tcy
A::EVERYONE@:tcy
is this something expected or buggy acl-tools?
--
Lukáš Hejtmánek
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ACLs
2010-08-05 12:47 ACLs Lukas Hejtmanek
@ 2010-08-05 18:52 ` J. Bruce Fields
0 siblings, 0 replies; 2+ messages in thread
From: J. Bruce Fields @ 2010-08-05 18:52 UTC (permalink / raw)
To: Lukas Hejtmanek; +Cc: linux-nfs
On Thu, Aug 05, 2010 at 02:47:29PM +0200, Lukas Hejtmanek wrote:
> Hello,
>
> I use nfs4-acl-tools-0.3.3 and I get some oddities when setting the ACL:
>
> $ nfs4_getfacl test
> A::OWNER@:rwatTcCy
> A::xhejtman@META:rtcy
> A::GROUP@:tcy
> A::EVERYONE@:tcy
> $ nfs4_setfacl -s "A::ludek@META:R" test
> $ nfs4_getfacl test
> D::OWNER@:r
> A::OWNER@:tTcCy
> A::ludek@META:rtcy
> A::GROUP@:tcy
> A::EVERYONE@:tcy
>
> is this something expected or buggy acl-tools?
NFSv4 ACLs deny by default. Thus the ACL "A::ludek@META:R" denies
permission to everyone else--including the owner of the file, if the
owner is not ludek.
The linux server has no way to store in its filesystem an acl that says
that; it *always* checks permissions for the owner before checking any
user permissions.
So the server decides it's safer to be pessimistic and adds that first
DENY....
Arguably the server could be less paranoid here. But we'll always have
oddities like this as long as it doesn't have NFSv4 ACLs to work with on
the exported filesystem. (Somebody's working on that.)
Workaround for now is probably just to always set the OWNER permissions
to be at least as permisive as anyone else's. Or just add the
"A::ludek@META:R" ace instead of replacing the ACL wholesale (which is
what "-s" does).
(And then you'll still get ONWER, GROUP, and EVERYONE ACEs added on, but
they won't be as silly.)
--b.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-05 18:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-05 12:47 ACLs Lukas Hejtmanek
2010-08-05 18:52 ` ACLs J. Bruce Fields
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).