From: Simon Josefsson <simon@josefsson.org>
To: Celeste Liu <uwu@coelacanthus.name>
Cc: mgorny@gentoo.org, distributions@lists.linux.dev
Subject: Re: Standardizing NO_NETWORK and USE_SYSTEM_DEPS environment variables
Date: Thu, 23 Jan 2025 20:42:25 +0100 [thread overview]
Message-ID: <87y0z1mi5a.fsf@josefsson.org> (raw)
In-Reply-To: <20250123151916.476793-2-uwu@coelacanthus.name> (Celeste Liu's message of "Thu, 23 Jan 2025 23:19:17 +0800")
[-- Attachment #1: Type: text/plain, Size: 1606 bytes --]
Celeste Liu <uwu@coelacanthus.name> writes:
>> 1) NO_NETWORK -- if it's set to a non-empty value, it requests that
>> programs don't access the (TCP/IP) network.
>
> It may be better to be named NO_INTERNET. Network is a confusing word in Linux
> world. They can refer to something from only Internet to any protocols in
> network subsystem, even include AF_NETLINK... I have been asked why my udev is
> broken when my program is in a netns many times. Systemd also have to inform
> this point in their document of PrivateNetwork. So use more limited word
> Internet to avoid this.
You are right. While my initial reaction to NO_NETWORK was positive, I
have realized that there are subtle issues that is really hard to
resolve. I considered adding support for NO_NETWORK to GNU InetUtils
but I am beginning to feel that even NO_NETWORK has the same critical
concerns that USE_SYSTEM_DEPS has: What exactly should NO_NETWORK mean
to a package? What can it assume and what MUST it fail on?
- Can it use localhost IP connectivity?
- TCP?
- Multicast?
- Can it rely on non-DNS /etc/hosts name resolution working?
- Can it rely on /etc/services being able to lookup network service
names?
- Is it allowed to inspect routing table on the system?
etc
Disabling all of those functionality when NO_NETWORK is probably not
what was intended, right?
When doing self-checks for 'ftp' and 'ftpd' it makes sense to start your
newly built ftpd and test interop it against your newly built ftp
binary. I don't think the intention is to forbid this.
/Simon
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1251 bytes --]
prev parent reply other threads:[~2025-01-23 19:42 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-23 13:14 Standardizing NO_NETWORK and USE_SYSTEM_DEPS environment variables Michał Górny
2025-01-23 13:50 ` Bruno Haible
2025-01-23 14:09 ` Eli Schwartz
2025-01-23 14:26 ` Michał Górny
2025-01-23 17:47 ` Bruno Haible
2025-01-23 13:53 ` Simon Josefsson
2025-01-23 14:37 ` Michał Górny
2025-01-23 14:04 ` Bernhard M. Wiedemann
2025-01-23 14:43 ` Michał Górny
2025-01-23 15:19 ` Celeste Liu
2025-01-23 15:38 ` Michał Górny
2025-01-23 16:13 ` Celeste Liu
2025-01-23 19:42 ` Simon Josefsson [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y0z1mi5a.fsf@josefsson.org \
--to=simon@josefsson.org \
--cc=distributions@lists.linux.dev \
--cc=mgorny@gentoo.org \
--cc=uwu@coelacanthus.name \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox