From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Philipp Stephani
Newsgroups: gmane.emacs.devel
Subject: Re: emacs-28 6d3608be88: Seccomp: improve support for newer versions
of glibc (Bug#51073)
Date: Tue, 25 Jan 2022 21:09:24 +0100
Message-ID: <17E6AEF0-D704-44FB-8B2F-6DCDE67EE22F@gmail.com>
References: <164286838577.8429.4021499312049157333@vcs2.savannah.gnu.org>
<20220122161946.44098C0DA30@vcs2.savannah.gnu.org> <877daqq9kp.fsf@yahoo.com>
<83v8y9jnvt.fsf@gnu.org> <874k5tp8c2.fsf@yahoo.com> <83pmohjloh.fsf@gnu.org>
<87sftd5hcv.fsf@gnus.org> <83ilu9ji0m.fsf@gnu.org>
Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.40.0.1.81\))
Content-Type: text/plain;
charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
logging-data="37620"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: Po Lu , Philipp Stephani ,
Lars Ingebrigtsen , emacs-devel@gnu.org
To: Eli Zaretskii
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 25 21:12:22 2022
Return-path:
Envelope-to: ged-emacs-devel@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.92)
(envelope-from )
id 1nCSAv-0009aq-Pg
for ged-emacs-devel@m.gmane-mx.org; Tue, 25 Jan 2022 21:12:21 +0100
Original-Received: from localhost ([::1]:38532 helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1nCSAu-0004xR-0X
for ged-emacs-devel@m.gmane-mx.org; Tue, 25 Jan 2022 15:12:20 -0500
Original-Received: from eggs.gnu.org ([209.51.188.92]:32810)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1nCS8A-0002w9-HX
for emacs-devel@gnu.org; Tue, 25 Jan 2022 15:09:30 -0500
Original-Received: from [2a00:1450:4864:20::32f] (port=45689
helo=mail-wm1-x32f.google.com)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from )
id 1nCS89-0007dz-0Q; Tue, 25 Jan 2022 15:09:30 -0500
Original-Received: by mail-wm1-x32f.google.com with SMTP id
j5-20020a05600c1c0500b0034d2e956aadso2666829wms.4;
Tue, 25 Jan 2022 12:09:27 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:subject:from:in-reply-to:date:cc
:content-transfer-encoding:message-id:references:to;
bh=Yezb5Q5dTM//1ieIk0UiC5X+uMPu+9gw6PnohPMGNm0=;
b=AqLRVESlzBE727iqzOXkVZPOJwOwEsvT3VqN3DTqrjonFBPeALQrfUapLB03sc+o6W
raZ18+R9W1E6TwChEKlPEdC7q4ABT5WdD2OHbLMqh8jxs9lCHs2r9ITGyKHxwZJOTYUR
YfCKFyDuiZFfo7jD5u2KIUyIlseYmjSF7218dcd0cKOpTbsRLZwrMVliI2eACow8yMui
NG1EOlG8wwhVSNX4zrohbL27TmiDiRzy04gsRv+f6n1JCOs4NogdS//Iao+fPLxpv8Nc
jVmmCd9ICE0GU9yVMRxzR8bTFLqy7m49aCJARjgjTw5p2ydD2WbcjENkykhjEMeeOIOR
lJLg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc
:content-transfer-encoding:message-id:references:to;
bh=Yezb5Q5dTM//1ieIk0UiC5X+uMPu+9gw6PnohPMGNm0=;
b=2cQLTHSofn0Bjs0qWzaAktOKnQKXF9pF5eC9nVfQ5wajzQ5FC/h8g0Ca6a7os72iXL
QgSrfbKNCw/gMARGYwlIksdJk2nFobSVWiXVdxztFaw+OcOgwtcLk2XAxVKJfU6TnKxE
VklT8WoH9NTgGx2sWa4Gd8/qLMuCgi4mYpTYYz+iDFHkIlS0HsfM0N1j3KjNtOnobk5/
xUKHVucFApo1LPva/sTKpxHZD6NXWE7kqapISHFofMyzovyT8v3U6h4XNnFeByjXSCA/
hOUAR7WomqohueYkjo3L6xd13NYbD5iQDCBT5VFlc+v5HuYY7ytPOyeN+tHqgSUxyp2S
wVNg==
X-Gm-Message-State: AOAM531yTaDWAfgLpyuJLNxa5keriTDctZloaLABrsGVZsga2qfjiAiR
VGjUHXS5I3ZEZQ7t19BU5FApWORmX5o=
X-Google-Smtp-Source: ABdhPJwmqlV6vEonwSA8Wx2PFuXh5j9Nm0SeP+vNWpTKkYL9xOhBGz+EDyvbGuxEFz7RTAIf5Dv5Bg==
X-Received: by 2002:a7b:c85a:: with SMTP id c26mr4434939wml.83.1643141366289;
Tue, 25 Jan 2022 12:09:26 -0800 (PST)
Original-Received: from smtpclient.apple ([2a02:2455:2a4:dc00:d85e:f16a:2547:d608])
by smtp.gmail.com with ESMTPSA id u17sm1419704wmq.41.2022.01.25.12.09.25
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Tue, 25 Jan 2022 12:09:25 -0800 (PST)
In-Reply-To: <83ilu9ji0m.fsf@gnu.org>
X-Mailer: Apple Mail (2.3693.40.0.1.81)
X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::32f
(failed)
Received-SPF: pass client-ip=2a00:1450:4864:20::32f;
envelope-from=p.stephani2@gmail.com; helo=mail-wm1-x32f.google.com
X-Spam_score_int: -10
X-Spam_score: -1.1
X-Spam_bar: -
X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001,
RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Emacs development discussions."
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Original-Sender: "Emacs-devel"
Xref: news.gmane.io gmane.emacs.devel:285388
Archived-At:
> Am 24.01.2022 um 16:00 schrieb Eli Zaretskii :
>=20
>> From: Lars Ingebrigtsen
>> Date: Mon, 24 Jan 2022 15:38:24 +0100
>> Cc: Po Lu , phst@google.com, =
p.stephani2@gmail.com,
>> emacs-devel@gnu.org
>>=20
>> Eli Zaretskii writes:
>>=20
>>>> It apparently leads to crashes when Emacs is run under seccomp with =
a
>>>> recent glibc version.
>>>=20
>>> That can happen any day, if glibc folks make some change we didn't
>>> know about. We cannot chase glibc development forever, we will =
never
>>> succeed catching up with them, certainly not in the long run.
>>=20
>> But this is a known glibc issue, and crashes aren't fun, so I think =
the
>> seccomp change was warranted on the release branch.
>=20
> It is very worrisome that a change in glibc can break Emacs like that.
> I wonder what it means for the maintainability of Emacs in the long
> run. I have a bad feeling about this.
Just to clarify this, nothing here has really broken Emacs. Emacs =
itself doesn't depend on libseccomp or the specific seccomp filter at =
all. It's just that newer versions of glibc will occasionally add new =
syscalls which will then need to get added to seccomp filters for =
sandboxing to continue working; the sandbox can only be secure if it =
fails-close (i.e. exits the process when encountering an unknown =
syscall).=