HomeFreeBSD

Fix error code on __zpl_ioctl_setflags()

Description

Fix error code on __zpl_ioctl_setflags()

Other (all?) Linux filesystems seem to return -EPERM instead of -EACCESS
when trying to set FS_APPEND_FL or FS_IMMUTABLE_FL without the
CAP_LINUX_IMMUTABLE capability. This was detected by generic/545 test
in the fstest suite.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Luis Henriques <henrix@camandro.org>
Closes #11791

Details

Provenance
Luis Henriques <73643340+lumigch@users.noreply.github.com>Authored on Mar 26 2021, 5:46 PM
GitHub <noreply@github.com>Committed on Mar 26 2021, 5:46 PM
Parents
rGef977fce6636: Support running FreeBSD buildworld on Arm-based macOS hosts
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG2037edbdaa80: Fix error code on __zpl_ioctl_setflags() (authored by Luis Henriques <73643340+lumigch@users.noreply.github.com>).Mar 26 2021, 5:46 PM