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-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-10 04:05 UTC by Stilez
Modified: 2018-04-10 04:05 UTC (History)
0 users

See Also:


Attachments

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?