Bug 227407 - [feature request] make zfs "setuid" property act on dirs as well as files
Summary: [feature request] make zfs "setuid" property act on dirs as well as files
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.1-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-fs (Nobody)
Depends on:
Reported: 2018-04-10 04:05 UTC by Stilez
Modified: 2021-06-22 01:23 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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?