summaryrefslogtreecommitdiff
path: root/nix/nix-daemon/guix-daemon.cc
diff options
context:
space:
mode:
Diffstat (limited to 'nix/nix-daemon/guix-daemon.cc')
-rw-r--r--nix/nix-daemon/guix-daemon.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/nix/nix-daemon/guix-daemon.cc b/nix/nix-daemon/guix-daemon.cc
index d7ab9c5e649..30727d55593 100644
--- a/nix/nix-daemon/guix-daemon.cc
+++ b/nix/nix-daemon/guix-daemon.cc
@@ -90,6 +90,7 @@ builds derivations on behalf of its clients.");
90#define GUIX_OPT_MAX_SILENT_TIME 19 90#define GUIX_OPT_MAX_SILENT_TIME 19
91#define GUIX_OPT_LOG_COMPRESSION 20 91#define GUIX_OPT_LOG_COMPRESSION 20
92#define GUIX_OPT_DISCOVER 21 92#define GUIX_OPT_DISCOVER 21
93#define GUIX_OPT_ISOLATE_HOST_LOOPBACK 22
93 94
94static const struct argp_option options[] = 95static const struct argp_option options[] =
95 { 96 {
@@ -160,6 +161,8 @@ to live outputs") },
160 n_("listen for connections on SOCKET") }, 161 n_("listen for connections on SOCKET") },
161 { "debug", GUIX_OPT_DEBUG, 0, 0, 162 { "debug", GUIX_OPT_DEBUG, 0, 0,
162 n_("produce debugging output") }, 163 n_("produce debugging output") },
164 { "isolate-host-loopback", GUIX_OPT_ISOLATE_HOST_LOOPBACK, 0, 0,
165 n_("do not allow fixed-output chroot builds to access the host loopback") },
163 { 0, 0, 0, 0, 0 } 166 { 0, 0, 0, 0, 0 }
164 }; 167 };
165 168
@@ -294,6 +297,9 @@ parse_opt (int key, char *arg, struct argp_state *state)
294 case GUIX_OPT_SYSTEM: 297 case GUIX_OPT_SYSTEM:
295 settings.thisSystem = arg; 298 settings.thisSystem = arg;
296 break; 299 break;
300 case GUIX_OPT_ISOLATE_HOST_LOOPBACK:
301 settings.useHostLoopback = false;
302 break;
297 default: 303 default:
298 return (error_t) ARGP_ERR_UNKNOWN; 304 return (error_t) ARGP_ERR_UNKNOWN;
299 } 305 }