mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-21 06:45:29 -06:00
Merge pull request #177 from avoidr/hostname
add 'hostname' command to profile
This commit is contained in:
commit
aff66254bd
2 changed files with 10 additions and 0 deletions
|
|
@ -221,6 +221,12 @@ int profile_check_line(char *ptr, int lineno) {
|
|||
exit(1);
|
||||
return 0;
|
||||
}
|
||||
|
||||
// hostname
|
||||
if (strncmp(ptr, "hostname ", 9) == 0) {
|
||||
cfg.hostname = ptr + 9;
|
||||
return 0;
|
||||
}
|
||||
|
||||
// dns
|
||||
if (strncmp(ptr, "dns ", 4) == 0) {
|
||||
|
|
|
|||
|
|
@ -280,6 +280,10 @@ really need network access.
|
|||
dns address
|
||||
Set a DNS server for the sandbox. Up to three DNS servers can be defined.
|
||||
|
||||
.TP
|
||||
hostname name
|
||||
Set a hostname for the sandbox.
|
||||
|
||||
|
||||
.SH FILES
|
||||
/etc/firejail/filename.profile, $HOME/.config/firejail/filename.profile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue