Hello all,

Sort of on this topic has anyone have a transfer tool like rsync or mmxcp that transfers the NFSv4 ACL’s correctly?

Thanks

Matt

 

From: gpfsug-discuss <gpfsug-discuss-bounces@gpfsug.org> on behalf of Anh Dao <adao@ibm.com>
Date: Wednesday, September 7, 2022 at 3:48 PM
To: gpfsug-discuss@gpfsug.org <gpfsug-discuss@gpfsug.org>
Subject: Re: [gpfsug-discuss] NF4 ACLs (Joshua Taylor)

In-Reply-To: CAGhSTwiMcszfSE0JmqAmooLE9yBGbd_v1tHsJAWuan1Rk4CRAA@mail.gmail.com

In Linux, chown has the following note:
man 2 chown
“Only a privileged process (Linux: one with the CAP_CHOWN capability) may change the owner of a file.

  The owner of a file may change the group of the file to any group of which that owner is a member.

 A privileged process (Linux: with CAP_CHOWN) may change the group arbitrarily.”

Scale now adds NFSv4 ACLs, and the CHOWN permission is basically an additional restriction on top of what Linux does. Since Scale is only invoked after Linux has perform its checks (chown_ok https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/fs/attr.c?h=v5.19.7), it cannot overcome the restrictions in place in the Linux VFS.

Regarding the wrapper mentioned, the admin (root) is certainly able to implement such setuid wrapper, but they should be very careful on the security aspects of doing so. This seems risky for Scale to implement such program.

Regards,
Anh Dao
IBM Spectrum Scale
Software Developer
adao@ibm.com