unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Feature request: hostname namespaces in guix environment
@ 2021-04-07 13:26 Vinícius dos Santos Oliveira
  2021-04-17 16:10 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Vinícius dos Santos Oliveira @ 2021-04-07 13:26 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 761 bytes --]

Some programs (e.g. xpra) create files based on the hostname and it'd be
useful to have control of this parameter.

There's another reason to have custom hostnames within the container as
well. From the guix manual[1]:

While this will limit the leaking of user identity through home paths and
> each of the user fields, this is only one useful component of a broader
> privacy/anonymity solution—not one in and of itself.
>

Right now my hostname is leaking to the container and that is certainly a
hint to my main persona.


[1] https://guix.gnu.org/manual/en/html_node/Invoking-guix-environment.html
[2] https://man.archlinux.org/man/core/man-pages/uts_namespaces.7.en

-- 
Vinícius dos Santos Oliveira
https://vinipsmaker.github.io/

[-- Attachment #2: Type: text/html, Size: 1212 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Feature request: hostname namespaces in guix environment
  2021-04-07 13:26 Feature request: hostname namespaces in guix environment Vinícius dos Santos Oliveira
@ 2021-04-17 16:10 ` Ludovic Courtès
  2021-04-17 18:29   ` Vinícius dos Santos Oliveira
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2021-04-17 16:10 UTC (permalink / raw)
  To: Vinícius dos Santos Oliveira; +Cc: guix-devel

Hi Vinícius,

Vinícius dos Santos Oliveira <vini.ipsmaker@gmail.com> skribis:

> Right now my hostname is leaking to the container and that is certainly a
> hint to my main persona.

AFAICS, ‘guix environment -C’ already starts contains in a separate UTS
namespace (see ‘%namespaces’ in (gnu build linux-containers)).

However, it does not attempt to change the host name, since you get a
non-zero UID inside that environment, you cannot change it.

What we could do is add a ‘--uid’ option to ‘guix environment’ and/or a
‘--host-name’ option.

WDYT?

Thanks,
Ludo’.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Feature request: hostname namespaces in guix environment
  2021-04-17 16:10 ` Ludovic Courtès
@ 2021-04-17 18:29   ` Vinícius dos Santos Oliveira
  0 siblings, 0 replies; 3+ messages in thread
From: Vinícius dos Santos Oliveira @ 2021-04-17 18:29 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

Em sáb., 17 de abr. de 2021 às 13:10, Ludovic Courtès <ludo@gnu.org> escreveu:
> Hi Vinícius,

Hi Ludovic,

> What we could do is add a ‘--uid’ option to ‘guix environment’ and/or a
> ‘--host-name’ option.
>
> WDYT?

The --host-name option would work for me. That'd be enough to control
xpra unix socket names.


-- 
Vinícius dos Santos Oliveira
https://vinipsmaker.github.io/


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-17 18:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-07 13:26 Feature request: hostname namespaces in guix environment Vinícius dos Santos Oliveira
2021-04-17 16:10 ` Ludovic Courtès
2021-04-17 18:29   ` Vinícius dos Santos Oliveira

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.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).