firejail/test
Kelvin M. Klann 09329b990f modif: replace --keep-hostname with new --hostname-randomize
Changes:

* Keep hostname by default (same as using `--keep-hostname`)
* Add  `--hostname-randomize` command to randomize the hostname
* Ignore `--keep-hostname` command and print a warning if it is used

Setting a different hostname inside of the sandbox may prevent X11
programs from authenticating to the X server and displaying windows at
all (see #7062).

To avoid breakage, keep the hostname as is by default and only set it to
a random value if a new `hostname-randomize` command is used.

This also avoids potentially surprising behavior, as the user might not
expect the hostname to be changed inside of the sandbox, considering
that usually the protections that are applied firejail involve
restricting access to resources (like file paths), rather than modifying
their values inside of the sandbox.

Fixes #7062

Relates to #7048 #7069.
2026-03-08 02:12:26 -03:00
..
apparmor gcov testing 2026-01-16 11:17:29 -05:00
appimage gcov testing 2026-01-16 11:17:29 -05:00
apps RELNOTES and some more testing 2026-02-25 15:14:15 -05:00
capabilities gcov testing 2026-01-16 11:17:29 -05:00
chroot gcov testing 2026-01-16 11:17:29 -05:00
compile tests: compile: remove leftover --disable-man test 2026-01-25 04:39:34 -03:00
environment gcov testing 2026-01-16 11:17:29 -05:00
fcopy Fix misc whitespace 2026-02-23 13:20:38 -03:00
filters adding make test-filters to ci 2026-01-19 20:34:27 -05:00
firecfg gcov testing 2026-01-16 11:17:29 -05:00
fnetfilter gcov testing 2026-01-16 11:17:29 -05:00
fnettrace Fix misc whitespace 2026-02-23 13:20:38 -03:00
fs testing --tmpfs as root and regular user 2026-01-21 15:48:06 -05:00
network gcov testing 2026-01-16 11:17:29 -05:00
private-etc modif: replace --keep-hostname with new --hostname-randomize 2026-03-08 02:12:26 -03:00
private-lib copyright 2014-2026 all over the place 2025-12-30 08:20:44 -05:00
profiles testing; adding pierretom to the commiters list 2026-02-02 08:26:23 -05:00
seccomp-extra gcov testing 2026-01-16 11:17:29 -05:00
utils Fix misc whitespace 2026-02-23 13:20:38 -03:00
hidepid-howto Housekeeping 2019-02-17 17:04:02 -06:00
Makefile build: move cleaning of test files to test/Makefile 2026-01-17 02:14:51 -03:00