Page MenuHomeFreeBSD

restore: fix restore of NFS4 ACLs
ClosedPublic

Authored by chs on Dec 6 2022, 10:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 22, 12:28 PM
Unknown Object (File)
Fri, Mar 22, 11:13 AM
Unknown Object (File)
Mar 8 2024, 6:51 AM
Unknown Object (File)
Mar 8 2024, 3:32 AM
Unknown Object (File)
Feb 23 2024, 12:58 AM
Unknown Object (File)
Feb 22 2024, 9:52 AM
Unknown Object (File)
Dec 23 2023, 12:12 AM
Unknown Object (File)
Dec 5 2023, 11:14 PM
Subscribers

Details

Summary

Changing the mode bits on a file with an NFS4 ACL results in theNFS4 ACL being replaced by one matching the new mode bits being set, so when restoring a file with an NFS4 ACL, set the owner/group/mode first and then set the NFS4 ACL, so that setting the mode does not throw away the ACL that we just set.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

chs requested review of this revision.Dec 6 2022, 10:24 PM
chs retitled this revision from Changing the mode bits on a file with an NFS4 ACL results in the NFS4 ACL being replaced by one matching the new mode bits being set, so when restoring a file with an NFS4 ACL, set the owner/group/mode first and then set the NFS4 ACL, so that... to restore: fix restore of NFS4 ACLs.Dec 6 2022, 10:26 PM
chs edited the summary of this revision. (Show Details)

These changes look correct to me.

This revision is now accepted and ready to land.Dec 11 2022, 1:03 AM
This revision was automatically updated to reflect the committed changes.