diff options
Diffstat (limited to 'src/firejail/checkcfg.c')
-rw-r--r-- | src/firejail/checkcfg.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/firejail/checkcfg.c b/src/firejail/checkcfg.c index f868a699a..68dc6ac58 100644 --- a/src/firejail/checkcfg.c +++ b/src/firejail/checkcfg.c | |||
@@ -77,6 +77,15 @@ int checkcfg(int val) { | |||
77 | else | 77 | else |
78 | goto errout; | 78 | goto errout; |
79 | } | 79 | } |
80 | // bind | ||
81 | else if (strncmp(ptr, "bind ", 5) == 0) { | ||
82 | if (strcmp(ptr + 5, "yes") == 0) | ||
83 | cfg_val[CFG_BIND] = 1; | ||
84 | else if (strcmp(ptr + 5, "no") == 0) | ||
85 | cfg_val[CFG_BIND] = 0; | ||
86 | else | ||
87 | goto errout; | ||
88 | } | ||
80 | else | 89 | else |
81 | goto errout; | 90 | goto errout; |
82 | free(ptr); | 91 | free(ptr); |