public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* posix acl to nfs4 acl mapping - status?
@ 2014-09-26 15:08 Stefan Bauer
  2014-09-26 16:11 ` Frank Filz
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Bauer @ 2014-09-26 15:08 UTC (permalink / raw)
  To: linux-nfs@vger.kernel.org

Hi,

I'm just a regular sysadmin and want to use NFS4 shares for backup purpose and keep existing posix acls from local filesystems during transfer.

It seems to not be supported:

root@s1:/# mount.nfs4 -o acl 192.168.0.254:/ /bla
root@s1:/# cp -Rvp omg /bla/
‘omg’ -> ‘/bla/omg’
cp: preserving permissions for ‘/bla/omg’: Operation not supported

What is the status on that? I'm aware of nfs4_getfacl but dont want to adjust permissions manually.

I also found https://tools.ietf.org/html/draft-ietf-nfsv4-acl-mapping-05 which describes a working algorithm for posix->nfs4 mapping but no evidence whether this is implemented and if so - how.

I'm using Debian testing with kernel 3.14.3.4 #5 SMP Thu May 8 16:31:22 CEST 2014 x86_64 GNU/Linux.
mount.nfs4: (linux nfs-utils 1.2.8)

Kind regards

Stefan

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: posix acl to nfs4 acl mapping - status?
  2014-09-26 15:08 posix acl to nfs4 acl mapping - status? Stefan Bauer
@ 2014-09-26 16:11 ` Frank Filz
  0 siblings, 0 replies; 2+ messages in thread
From: Frank Filz @ 2014-09-26 16:11 UTC (permalink / raw)
  To: 'Stefan Bauer', linux-nfs

> I'm just a regular sysadmin and want to use NFS4 shares for backup purpose
> and keep existing posix acls from local filesystems during transfer.
> 
> It seems to not be supported:
> 
> root@s1:/# mount.nfs4 -o acl 192.168.0.254:/ /bla root@s1:/# cp -Rvp omg
> /bla/ ‘omg’ -> ‘/bla/omg’
> cp: preserving permissions for ‘/bla/omg’: Operation not supported

cp will not attempt to copy the NFS v4 ACL.

> What is the status on that? I'm aware of nfs4_getfacl but dont want to adjust
> permissions manually.
> 
> I also found https://tools.ietf.org/html/draft-ietf-nfsv4-acl-mapping-05
> which describes a working algorithm for posix->nfs4 mapping but no
> evidence whether this is implemented and if so - how.

I believe the implementation follows this document. I do know that several years ago, we had some significant ACL testing using AIX clients that exposed many issues in the translation.

Unfortunately, the translation is always doomed to be imperfect, and is probably not suitable for backup-purposes. Any POSIX ACL that includes a mask will certainly be changed to lose that mask (with the CURRENT effect of the mask being applied permanently).

> I'm using Debian testing with kernel 3.14.3.4 #5 SMP Thu May 8 16:31:22 CEST
> 2014 x86_64 GNU/Linux.
> mount.nfs4: (linux nfs-utils 1.2.8)

Frank



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-26 16:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-26 15:08 posix acl to nfs4 acl mapping - status? Stefan Bauer
2014-09-26 16:11 ` Frank Filz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox