HomeFreeBSD

fusefs: fix some permission checks with -o default_permissions

Description

fusefs: fix some permission checks with -o default_permissions

When mounted with -o default_permissions fusefs is supposed to validate all
permissions in the kernel, not the file system. This commit fixes two
permissions that I had previously overlooked.

  • Only root may chown a file
  • Non-root users may only chgrp a file to a group to which they belong

PR: 216391
Sponsored by: The FreeBSD Foundation

Details

Provenance
asomersAuthored on
Parents
rS346978: MFC 344711: Fix missed posted interrupts in VT-x in bhyve.
Branches
Unknown
Tags
Unknown