Bug 227407

Summary: [feature request] make zfs "setuid" property act on dirs as well as files
Product: Base System Reporter: Stilez <stilezy>
Component: kernAssignee: freebsd-fs (Nobody) <fs>
Status: New ---    
Severity: Affects Some People CC: linimon
Priority: ---    
Version: 11.1-RELEASE   
Hardware: Any   
OS: Any   

Description Stilez 2018-04-10 04:05:02 UTC
Currently the zfs filesystem's "setuid" property is limited to files - it has no effect on directories within a zfs dataset. (crossref: man page error, bug #227406)

setuid on directories is extremely useful in many scenarios, and for UFS at least is the standard way on FreeBSD to mandate+enforce ownership (including ownership inheritance on new objects) within a file system or directory path.

Lacking zfs setuid support on directories, there is no way to achieve this AFAIK for file systems/directory paths on zfs.

Can the setuid property be enhanced for zfs, so that it does permit ownership/inheritance control on directories as well?
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2021-06-22 01:23:07 UTC
^Triage: assign.

To submitter: the ZFS subsystem has been greatly overhauled since this PR was submitted.  Is it still relevant?