bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Basic support for checking NFSv4 ACLs in Linux


From: Ondrej Valousek
Subject: Re: [PATCH] Basic support for checking NFSv4 ACLs in Linux
Date: Fri, 28 Oct 2022 14:33:15 +0000

Hi Bruno,
1. Yes, file_has_acl() function need to be able to detect ACLs on a NFSv4 mounted volume.
Such a volume has ACLs in special format which is quite different from Posix ACLs which we only handle today.
Note that nfsv4 is standard today I.e. if you mount remote volume today on Linux via "mount server:/volume ", it will most likely will be a NFSv4 mount where gnulib can't detect acls.
2. The 'acl' package (as of today) only supports Posix ACLs and not the NFSv4 style. And besides, we do not use it anyway on modern Linux distros - see the code, instead of calling acl library, we just call getxattr() function directly. 

Does it help you to understand it now?
Thanks 
Ondrej

ZĂ­skat Outlook pro Android

From: Bruno Haible <bruno@clisp.org>
Sent: Thursday, October 27, 2022 9:52:32 PM
To: bug-gnulib@gnu.org <bug-gnulib@gnu.org>
Cc: Ondrej Valousek <ondrej.valousek.xm@renesas.com>
Subject: Re: [PATCH] Basic support for checking NFSv4 ACLs in Linux
 
Hi Ondrej,

Thanks for the proposed patch.

But before we go into details, I would like to understand the big picture:

  1) What is the scenario in which the patch should make a difference?
     An NFSv4 volume exported from a different machine, and mounted on Linux,
     right?
     Which OSes are supported for the exporting machine?
     Which configurations need to be applied on the exporting machine?
     Which mount options need to be used on the Linux machine?

  2) When I look at the acl-2.3.1 source code [1], I get the impression that
     the Linux kernel exports the ACL attributes also for NFS. Is this true?
     To which extend does the 'acl' package support NFSv4 ACLs? To which
     extent do the maintainers of this package plan to do so?

Bruno

[1] https://jpn01.safelinks.protection.outlook.com/?url="">




reply via email to

[Prev in Thread] Current Thread [Next in Thread]