Date: Sun, 5 Mar 2023 11:17:49 -0800 From: Ihor Antonov <ihor@antonovs.family> To: dev-commits-src-all@freebsd.org Subject: Re: git: c237c10a2346 - main - xz: Improve compatibility with systems without capability mode support Message-ID: <73b52e6c-ddc2-fd64-9c1b-a5f70e03a47b@antonovs.family> In-Reply-To: <202303050940.3259eQY5081068@gitrepo.freebsd.org> References: <202303050940.3259eQY5081068@gitrepo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 3/5/23 01:40, Xin LI wrote: > The branch main has been updated by delphij: > > URL: https://cgit.FreeBSD.org/src/commit/?id=c237c10a2346dec422233db05b2012afd45363fa > > commit c237c10a2346dec422233db05b2012afd45363fa > Author: Xin LI <delphij@FreeBSD.org> > AuthorDate: 2023-03-05 09:40:13 +0000 > Commit: Xin LI <delphij@FreeBSD.org> > CommitDate: 2023-03-05 09:40:13 +0000 > > 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 > MFC after: 2 days > - Just an FYI Not so long ago [1] cperciva was going to deprecate WITHOUT_CAPSICUM and WITHOUT_CASPER. So this change might become redundant soon. [1] https://lists.freebsd.org/archives/freebsd-arch/2023-February/000325.html -- Ihor Antonov
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?73b52e6c-ddc2-fd64-9c1b-a5f70e03a47b>