diff options
author | netblue30 <netblue30@yahoo.com> | 2016-06-04 11:55:09 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-06-04 11:55:09 -0400 |
commit | c8a8d07348ebce017f75b5a2682f056e8c661f5b (patch) | |
tree | 752095766e664a22a1cd38ad30759c6d73533821 /src | |
parent | fixed firejail symlink problem for --private-bin option (diff) | |
download | firejail-c8a8d07348ebce017f75b5a2682f056e8c661f5b.tar.gz firejail-c8a8d07348ebce017f75b5a2682f056e8c661f5b.tar.zst firejail-c8a8d07348ebce017f75b5a2682f056e8c661f5b.zip |
networking fixes
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 |