diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/network_main.c | 7 | ||||
-rw-r--r-- | src/man/firejail.txt | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/firejail/network_main.c b/src/firejail/network_main.c index e6d5cd5d7..e50c06ae9 100644 --- a/src/firejail/network_main.c +++ b/src/firejail/network_main.c | |||
@@ -56,9 +56,12 @@ void net_configure_bridge(Bridge *br, char *dev_name) { | |||
56 | } | 56 | } |
57 | } | 57 | } |
58 | 58 | ||
59 | // allow unconfigured interfaces | ||
59 | if (net_get_if_addr(br->dev, &br->ip, &br->mask, br->mac, &br->mtu)) { | 60 | if (net_get_if_addr(br->dev, &br->ip, &br->mask, br->mac, &br->mtu)) { |
60 | fprintf(stderr, "Error: interface %s is not configured\n", br->dev); | 61 | fprintf(stderr, "Warning: interface %s is not configured\n", br->dev); |
61 | exit(1); | 62 | br->configured = 1; |
63 | br->arg_ip_none = 1; | ||
64 | return; | ||
62 | } | 65 | } |
63 | if (arg_debug) { | 66 | if (arg_debug) { |
64 | if (br->macvlan == 0) | 67 | if (br->macvlan == 0) |
diff --git a/src/man/firejail.txt b/src/man/firejail.txt index 7b22a5bf2..3c4de9ed5 100644 --- a/src/man/firejail.txt +++ b/src/man/firejail.txt | |||
@@ -460,6 +460,11 @@ in case you intend to start an external DHCP client in the sandbox. | |||
460 | Example: | 460 | Example: |
461 | .br | 461 | .br |
462 | $ firejail \-\-net=eth0 \-\-\ip=none | 462 | $ firejail \-\-net=eth0 \-\-\ip=none |
463 | .br | ||
464 | |||
465 | .br | ||
466 | If the coresponding interface doesn't have an IP address configured, this | ||
467 | option is enabled by default. | ||
463 | 468 | ||
464 | .TP | 469 | .TP |
465 | \fB\-\-ip6=address | 470 | \fB\-\-ip6=address |