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.bugs Subject: bug#45198: 28.0.50; Sandbox mode Date: Sat, 17 Apr 2021 21:16:59 +0200 Message-ID: References: <5818DFAA-3A9C-4335-BAAF-1227A02C290A@acm.org> <19511709-E42B-4ABD-9823-39EA08A79B1F@gmail.com> <077448DE-3E4E-4821-8F5C-5CA62BF217E5@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14616"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= , 45198@debbugs.gnu.org, Stefan Kangas , Stefan Monnier , Alan Third To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 17 21:18:12 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1lXqSJ-0003fS-J6 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Apr 2021 21:18:11 +0200 Original-Received: from localhost ([::1]:47864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXqSI-0007rJ-MA for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Apr 2021 15:18:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXqSA-0007pM-B3 for bug-gnu-emacs@gnu.org; Sat, 17 Apr 2021 15:18:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33092) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lXqSA-0001DI-3B for bug-gnu-emacs@gnu.org; Sat, 17 Apr 2021 15:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lXqS9-0000WE-VI for bug-gnu-emacs@gnu.org; Sat, 17 Apr 2021 15:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Apr 2021 19:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45198 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 45198-submit@debbugs.gnu.org id=B45198.16186870381924 (code B ref 45198); Sat, 17 Apr 2021 19:18:01 +0000 Original-Received: (at 45198) by debbugs.gnu.org; 17 Apr 2021 19:17:18 +0000 Original-Received: from localhost ([127.0.0.1]:44633 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXqRS-0000Uy-2F for submit@debbugs.gnu.org; Sat, 17 Apr 2021 15:17:18 -0400 Original-Received: from mail-oi1-f172.google.com ([209.85.167.172]:38743) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXqRQ-0000Ul-AY for 45198@debbugs.gnu.org; Sat, 17 Apr 2021 15:17:16 -0400 Original-Received: by mail-oi1-f172.google.com with SMTP id b3so16670258oie.5 for <45198@debbugs.gnu.org>; Sat, 17 Apr 2021 12:17:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=nIoZfurH2fSj/N2kyoXQ/C9rMXi9bnzR1Il8xlU6ywo=; b=RbI0RgSCSgpbKDCAXqDZkBHN/Ud1HG8XMQeKscv9BHVAP+Ge3oihn0QbJi97ynRLKT sqt5cB2ix/l7AC6Hef4JsLkxx7mWy0Q2ryaPyLvCm7ctdqCqEg4Qbs9xHHQtVBur6sCu GXfUPVbMMc9Ad3piu52L85ZM/s4d4NXyIGzM+VAmPvwvW84nVeHC1Eyt5MzPnxfXPXQz LQ06gMVjyWufKzuvcoiMqOOWY8IwnqDQtnc1d3yrCcDDU8BuJ/rPhIdsMMaWalCWopZa paazvHEgsMA6prgOsnIac3RuXXDH+efcr6ZPd+kHrsO3MQEP65f+pOvHDwBaVCmBHnvM 3HXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=nIoZfurH2fSj/N2kyoXQ/C9rMXi9bnzR1Il8xlU6ywo=; b=JrwbGgVmIarDmsoIvCSDEcXwJBkawomMwzoL8/sad1ZQe2XwgAjy4hD3UJOPu9NMIK EShGohaq60Mrynj8LO9TrnWOhmholO92QxM9YvLTthM9fyRNRA3ZqLjIeI8jURSsXjEn ndQpZt4OajLUhN0prHKqsXDuJmS1BKnb7qvHBgCuQ+RThvAvVqZZelBFRhQxr5YA79S+ CIRZch1IJP88J6hYAA36rrvbsw+PWVJksqofU12jQIz8m9A3TmmPjwbUfn5pG9e4xeMC FQaguszvzL2ZqnZHTSOOsH9jpy5ZjHJseOtk9bcB1QiCD+MSTaJNwcATp8D7Ruvn+iTW 1EBA== X-Gm-Message-State: AOAM533MA69xn2vj1aJBaNMhmGHNepW7ztQAJHEjKa66l0LH+SnqcRUP i8LqcrBJi/tVaMxtPFOiXPCvdcBwMSBP1JcXC2U= X-Google-Smtp-Source: ABdhPJw2U9NXFWTpwoaXuVy5tEjjwZvZIQGhVTCs47AcFcWtGaobGJ4Dm0I4FQ0c5LD0c/OVNvQxcAKTDEOW27x4PQA= X-Received: by 2002:aca:1814:: with SMTP id h20mr10680934oih.150.1618687030888; Sat, 17 Apr 2021 12:17:10 -0700 (PDT) In-Reply-To: <077448DE-3E4E-4821-8F5C-5CA62BF217E5@acm.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:204252 Archived-At: Am Sa., 17. Apr. 2021 um 19:22 Uhr schrieb Mattias Engdeg=C3=A5rd : > > As we gain more experience with these sandboxing mechanisms, we can loo= k at relaxing these restrictions, but I think initially we should be conser= vative. > > I take the opposite view, but our goals are the same and we will converge= . As long as they converge before releasing Emacs 28, fine. After that it will be very difficult to restrict an initially-open interface. > >> +Already open descriptors can be used freely. */) > > > > What does this mean? Emacs doesn't really expose file descriptors to u= sers. > > It sort of does (in the form of processes), but there could also be descr= iptors not directly exposed. It would be incomplete not to mention the poss= ibility. It looks like the seccomp filter generator uses the same policy, t= reating descriptors as capabilities. Yes, but since it's only a command-line flag right now, there shouldn't be any open file descriptors except the standard ones, so this specific bit of complexity is avoided.