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, 10 Apr 2021 21:11:04 +0200 Message-ID: References: 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="31050"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Bastien , 45198@debbugs.gnu.org, =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 10 21:12:28 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 1lVJ1w-000802-1s for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Apr 2021 21:12:28 +0200 Original-Received: from localhost ([::1]:33836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVJ1u-000136-Sy for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Apr 2021 15:12:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVJ1X-0000sx-1R for bug-gnu-emacs@gnu.org; Sat, 10 Apr 2021 15:12:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41759) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lVJ1W-0000HK-QB for bug-gnu-emacs@gnu.org; Sat, 10 Apr 2021 15:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lVJ1W-0004W7-Ii for bug-gnu-emacs@gnu.org; Sat, 10 Apr 2021 15:12:02 -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, 10 Apr 2021 19:12:02 +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.161808188417314 (code B ref 45198); Sat, 10 Apr 2021 19:12:02 +0000 Original-Received: (at 45198) by debbugs.gnu.org; 10 Apr 2021 19:11:24 +0000 Original-Received: from localhost ([127.0.0.1]:53305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVJ0t-0004VC-S0 for submit@debbugs.gnu.org; Sat, 10 Apr 2021 15:11:24 -0400 Original-Received: from mail-ot1-f54.google.com ([209.85.210.54]:34458) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVJ0s-0004V0-04 for 45198@debbugs.gnu.org; Sat, 10 Apr 2021 15:11:22 -0400 Original-Received: by mail-ot1-f54.google.com with SMTP id k14-20020a9d7dce0000b02901b866632f29so8973538otn.1 for <45198@debbugs.gnu.org>; Sat, 10 Apr 2021 12:11:22 -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=ruJ4QHLp7a4fFzpbcBhKo12EM0invYehhtFqJ962ZNU=; b=Diro42WXgwvZyguRopRAkza1JcP/vJ3PvPYGoOgvIgE7+KuTeGKxz9EcQ1fPeUGNwK Rb5F11FsvKeLO593ZeOoK96w2C2NXN9V+qVKl10uoK3lQSl+mCSF5jW6Dda6znu3fWnb 51jyo9mHV76JZJun8o4yBN2FL78VPckZHnU0zE33/9PJ2Hqg6vqqpX+6wwDCGW3vnLLZ PD9ml9yE0fKKpAeEVVKtlU+Rwt2unkPnYjek0op4k2aupnEsg/yLJcgHlWNmPYLEu0lQ IIENSsa9VK5zJpiEoZlMFiZO9Bpo9T4fTjRbhmP6GlYG1WEt1PckujKnoNoQ++NTWraG F0Lw== 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=ruJ4QHLp7a4fFzpbcBhKo12EM0invYehhtFqJ962ZNU=; b=c5feQtevCtwhv0l3Oet4nzDCjhvnN30XnzcqX1pOYYmoft5yoQ87XEq/rWrZ7F2gD/ Fo83d7cmaX3WetFGVLwuSuzXFoV03FuIbCKtfY4mmYnxqiUL+IAgD6GTg7PwX7oxvDTv o8Q2vHGwZ9+TLpoYN+aJyOdpembS64Ax4jBMWtNJoMa0VANwVsJHncV2zQNLNZBygqOl rARFveKCUSBYhFI8/sHACWFmdf9QC1vgCuWq7vhnQ/ufLRHMRrl6KE8/ceBcKQfyLvlu txorQYYN+WOGbF4X2vmhLPhh3u/YlWJaa3V4VX93bLCJVwZm1d6Q34UHMzlBuee0j/YV ChdQ== X-Gm-Message-State: AOAM530/si1DkVjtPtM6JWNCyJjw//Ht6JDlWdFQtlKbtGQVIkcgkSM5 msD6n7DTV3GLs0zV5I9YRhGA8N15XXH3u29XiD4= X-Google-Smtp-Source: ABdhPJxHt1PS64c9BsBeZHyB0TaQfsMWpV9KwC1XqSU9yrgPHYKaOELWuZIYuT8txkwAER6Bk1GKo43UuTWqW1opx4g= X-Received: by 2002:a05:6830:4121:: with SMTP id w33mr16993553ott.153.1618081876336; Sat, 10 Apr 2021 12:11:16 -0700 (PDT) In-Reply-To: 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:203818 Archived-At: Am Sa., 19. Dez. 2020 um 23:22 Uhr schrieb Philipp Stephani : > > Am Mo., 14. Dez. 2020 um 12:05 Uhr schrieb Philipp Stephani > : > > > > >> - This will need someone else doing the implementation. > > > > Looks like we already have a volunteer for macOS. > > > > For Linux, this shouldn't be that difficult either. The sandbox nee= ds > > > > to install a mount namespace that only allows read access to Emacs'= s > > > > installation directory plus any input file and write access to know= n > > > > output files, and enable syscall filters that forbid everything exc= ept > > > > a list of known-safe syscalls (especially exec). I can take a stab = at > > > > that, but I can't promise anything ;-) > > > > > > Looking forward to it. > > > > > > > I've looked into this, and what I'd suggest for now is: > > [=E2=80=A6] > > 2. Generate appropriate seccomp filters using libseccomp or similar. > > Here's a patch for this step. I've now pushed a variant of this patch as commit 1060289f51ee1bf269bb45940892eb272d35af97, after verifying that it doesn't break the macOS or Windows builds.