unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Philipp <p.stephani2@gmail.com>
To: Robert Pluim <rpluim@gmail.com>
Cc: Glenn Morris <rgm@gnu.org>, 46641@debbugs.gnu.org
Subject: bug#46641: process-tests assume network connection
Date: Sun, 21 Feb 2021 20:40:59 +0100	[thread overview]
Message-ID: <FA428EB9-B816-4A29-B7D4-BB9B420DB218@gmail.com> (raw)
In-Reply-To: <87lfbhqtmq.fsf@gmail.com>



> Am 21.02.2021 um 17:21 schrieb Robert Pluim <rpluim@gmail.com>:
> 
>>>>>> On Sun, 21 Feb 2021 15:37:27 +0100, Philipp <p.stephani2@gmail.com> said:
> 
>    Philipp> This is pretty common for CI systems.  Accessing the network is a
>    Philipp> security risk, and in addition tends to make tests unreproducible.
> 
> I can give you the second one, but in what way is eg doing a DNS lookup a
> 'security risk'? Weʼre not talking about setting up a listening server
> on a public IP here.

A CI system will typically run arbitrary code that’s not under the control of the CI system itself.  Therefore, the CI system needs to prevent any malicious behavior of the system under test.  Since the code being tested is opaque, the CI system can’t really decide whether it’s malicious or not, so it has to conservatively assume that any network access is malicious.  While it might be possible to prevent more specific behavior (like creating a listening socket), that tends to be more complex, so the simpler and safer „no network at all“ tends to be a reasonable choice.




      reply	other threads:[~2021-02-21 19:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-19 17:59 bug#46641: process-tests assume network connection Glenn Morris
2021-02-21 11:11 ` Robert Pluim
2021-02-21 13:41   ` Lars Ingebrigtsen
2021-02-21 14:40     ` Philipp
2021-02-21 16:19     ` Robert Pluim
2021-02-21 16:45       ` Robert Pluim
2021-02-21 18:32         ` Lars Ingebrigtsen
2021-02-22 14:49           ` Robert Pluim
2021-02-21 14:37   ` Philipp
2021-02-21 16:21     ` Robert Pluim
2021-02-21 19:40       ` Philipp [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FA428EB9-B816-4A29-B7D4-BB9B420DB218@gmail.com \
    --to=p.stephani2@gmail.com \
    --cc=46641@debbugs.gnu.org \
    --cc=rgm@gnu.org \
    --cc=rpluim@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).