diff options
Diffstat (limited to 'src/firejail/profile.c')
-rw-r--r-- | src/firejail/profile.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/firejail/profile.c b/src/firejail/profile.c index 03cd9dadb..9a724331b 100644 --- a/src/firejail/profile.c +++ b/src/firejail/profile.c | |||
@@ -143,6 +143,10 @@ static int check_appimage(void) { | |||
143 | return arg_appimage != 0; | 143 | return arg_appimage != 0; |
144 | } | 144 | } |
145 | 145 | ||
146 | static int check_netoptions(void) { | ||
147 | return (arg_nonetwork || any_bridge_configured()); | ||
148 | } | ||
149 | |||
146 | static int check_nodbus(void) { | 150 | static int check_nodbus(void) { |
147 | return arg_nodbus != 0; | 151 | return arg_nodbus != 0; |
148 | } | 152 | } |
@@ -161,6 +165,7 @@ static int check_allow_drm(void) { | |||
161 | 165 | ||
162 | Cond conditionals[] = { | 166 | Cond conditionals[] = { |
163 | {"HAS_APPIMAGE", check_appimage}, | 167 | {"HAS_APPIMAGE", check_appimage}, |
168 | {"HAS_NET", check_netoptions}, | ||
164 | {"HAS_NODBUS", check_nodbus}, | 169 | {"HAS_NODBUS", check_nodbus}, |
165 | {"HAS_X11", check_x11}, | 170 | {"HAS_X11", check_x11}, |
166 | {"BROWSER_DISABLE_U2F", check_disable_u2f}, | 171 | {"BROWSER_DISABLE_U2F", check_disable_u2f}, |