firejail/contrib
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
..
syntax modif: replace --keep-hostname with new --hostname-randomize 2026-03-08 02:12:26 -03:00
vim contrib/vim: add ftplugin file (based on cfg.vim) (#6680) 2025-03-10 02:57:57 +00:00
fix_private-bin.py fix spelling (#4573) 2021-09-22 23:05:33 +02:00
fj-mkdeb.py copyright 2014-2026 all over the place 2025-12-30 08:20:44 -05:00
fjclip.py copyright 2014-2026 all over the place 2025-12-30 08:20:44 -05:00
fjdisplay.py copyright 2014-2026 all over the place 2025-12-30 08:20:44 -05:00
fjresize.py copyright 2014-2026 all over the place 2025-12-30 08:20:44 -05:00
gdb-firejail.sh copyright 2014-2026 all over the place 2025-12-30 08:20:44 -05:00
jail_prober.py copyright 2014-2026 all over the place 2025-12-30 08:20:44 -05:00
sort.py copyright 2014-2026 all over the place 2025-12-30 08:20:44 -05:00
syscalls.sh copyright 2014-2026 all over the place 2025-12-30 08:20:44 -05:00
update_deb.sh copyright 2014-2026 all over the place 2025-12-30 08:20:44 -05:00