Skip to content

Commit

Permalink
Merge pull request #5737 from glitsj16/private-etc-bugfix
Browse files Browse the repository at this point in the history
fs_etc.c: conditionally create /etc/resolv.conf
  • Loading branch information
netblue30 authored Mar 23, 2023
2 parents 9beed35 + 9059b5e commit 84df8aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/firejail/fs_etc.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ char *fs_etc_build(char *str) {
}

void fs_resolvconf(void) {
if (arg_nonetwork) {
if (arg_debug)
printf("arg_nonetwork found (--net=none). Skip creating /etc/resolv.conf file\n");
return;
}
if (arg_debug)
printf("Creating a new /etc/resolv.conf file\n");
FILE *fp = fopen(RUN_RESOLVCONF_FILE, "wxe");
Expand Down

0 comments on commit 84df8aa

Please sign in to comment.