From nobody Sun Mar 05 19:17:49 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PVBKp2mb2z3trLR for ; Sun, 5 Mar 2023 19:17:18 +0000 (UTC) (envelope-from ihor@antonovs.family) Received: from mail.antonovs.family (mail.antonovs.family [100.25.240.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.antonovs.family", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PVBKn2sjGz3pnb for ; Sun, 5 Mar 2023 19:17:17 +0000 (UTC) (envelope-from ihor@antonovs.family) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=antonovs.family header.s=20200215 header.b=eRP16PLW; spf=pass (mx1.freebsd.org: domain of ihor@antonovs.family designates 100.25.240.195 as permitted sender) smtp.mailfrom=ihor@antonovs.family; dmarc=pass (policy=none) header.from=antonovs.family DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antonovs.family; s=20200215; t=1678043827; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WGE7RszBKikN9jULt4bLz5vZFQyLgsaT6A+56u+qmfs=; b=eRP16PLW96GnKHZwoZ8XnYwWtjWN6N1piTO9OjKga90me+NHJsLoqoCPKhF9R4CN92C0Ln NzQEQiS3tihRogxYmeihnL5CYmPooDlm0uuzHb6TY+xdM2iuj5FfAQLBwt5yvASzDaWARa qzLx3XvrVma4VOOftnRIl2vfB2UbD10= Received: by mail.antonovs.family (OpenSMTPD) with ESMTPSA id 551294b0 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Sun, 5 Mar 2023 19:17:07 +0000 (UTC) Message-ID: <73b52e6c-ddc2-fd64-9c1b-a5f70e03a47b@antonovs.family> Date: Sun, 5 Mar 2023 11:17:49 -0800 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: git: c237c10a2346 - main - xz: Improve compatibility with systems without capability mode support To: dev-commits-src-all@freebsd.org References: <202303050940.3259eQY5081068@gitrepo.freebsd.org> Content-Language: en-US From: Ihor Antonov In-Reply-To: <202303050940.3259eQY5081068@gitrepo.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[antonovs.family,none]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[antonovs.family:s=20200215]; MIME_GOOD(-0.10)[text/plain]; DKIM_TRACE(0.00)[antonovs.family:+]; ASN(0.00)[asn:14618, ipnet:100.24.0.0/13, country:US]; MLMMJ_DEST(0.00)[dev-commits-src-all@freebsd.org]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[dev-commits-src-all@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4PVBKn2sjGz3pnb X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N 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 > AuthorDate: 2023-03-05 09:40:13 +0000 > Commit: Xin LI > 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