mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
* mount: decide chown's set-id clearing by the caller, keep it on directories SetAttr read input.Uid as the caller, but in SetAttrIn that field is the new owner; the caller is input.Caller.Uid. Root giving a file away cleared its SUID/SGID bits, a user giving a file to root kept them, and every chown to a non-root owner cleared the SGID bit of a directory, which Linux keeps so new entries go on inheriting the group. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * mount: let Linux decide chown's set-id clearing The mount does not handle killpriv, so Linux sends the cleared mode with a chown that must drop the set-id bits. Clearing them again by caller dropped the SGID bit Linux keeps on a file without group execute when a user changes only its group. Other systems keep the caller rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>