HomeFreeBSD

xz: Improve compatibility with systems without capability mode support

Description

xz: Improve compatibility with systems without capability mode support

When the kernel is built without capability mode support, or when
using an emulator like qemu-user-static that does not translate
system calls, these calls will return a negative number and set
the errno to ENOSYS. However, this error does not indicate a
real programming or runtime error and is generally ignored by
base system applications built with capability mode sandboxing.

Match this behavior by making xz(1) to ignore ENOSYS errors
when calling capability mode system calls too.

PR: 269185
Reported by: Dan Kotowski

(cherry picked from commit c237c10a2346dec422233db05b2012afd45363fa)

Details

Provenance
delphijAuthored on Mar 5 2023, 9:40 AM
Parents
rG08325b2df477: ng_atmllc: deprecate
Branches
Unknown
Tags
Unknown