aboutsummaryrefslogtreecommitdiffstats
path: root/src/firemon/firemon.c
diff options
context:
space:
mode:
authorLibravatar startx2017 <vradu.startx@yandex.com>2020-09-30 09:01:36 -0400
committerLibravatar startx2017 <vradu.startx@yandex.com>2020-09-30 09:01:36 -0400
commit2e914f0940a025d971c484a9158c1eaeca9c6015 (patch)
tree0355492989d2e868db6d56a7027b62520862827b /src/firemon/firemon.c
parentmanpages: configuration for dbus (diff)
downloadfirejail-2e914f0940a025d971c484a9158c1eaeca9c6015.tar.gz
firejail-2e914f0940a025d971c484a9158c1eaeca9c6015.tar.zst
firejail-2e914f0940a025d971c484a9158c1eaeca9c6015.zip
manpages: network configuration
Diffstat (limited to 'src/firemon/firemon.c')
-rw-r--r--src/firemon/firemon.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/firemon/firemon.c b/src/firemon/firemon.c
index 7468e3240..238fbcdfe 100644
--- a/src/firemon/firemon.c
+++ b/src/firemon/firemon.c
@@ -159,6 +159,7 @@ int main(int argc, char **argv) {
159 arg_list = 1; 159 arg_list = 1;
160 else if (strcmp(argv[i], "--tree") == 0) 160 else if (strcmp(argv[i], "--tree") == 0)
161 arg_tree = 1; 161 arg_tree = 1;
162#ifdef HAVE_NETWORK
162 else if (strcmp(argv[i], "--netstats") == 0) { 163 else if (strcmp(argv[i], "--netstats") == 0) {
163 struct stat s; 164 struct stat s;
164 if (getuid() != 0 && stat("/proc/sys/kernel/grsecurity", &s) == 0) { 165 if (getuid() != 0 && stat("/proc/sys/kernel/grsecurity", &s) == 0) {
@@ -167,7 +168,7 @@ int main(int argc, char **argv) {
167 } 168 }
168 arg_netstats = 1; 169 arg_netstats = 1;
169 } 170 }
170 171#endif
171 172
172 // cumulative options with or without a pid argument 173 // cumulative options with or without a pid argument
173 else if (strcmp(argv[i], "--x11") == 0) 174 else if (strcmp(argv[i], "--x11") == 0)
@@ -187,10 +188,12 @@ int main(int argc, char **argv) {
187 } 188 }
188 arg_interface = 1; 189 arg_interface = 1;
189 } 190 }
191#ifdef HAVE_NETWORK
190 else if (strcmp(argv[i], "--route") == 0) 192 else if (strcmp(argv[i], "--route") == 0)
191 arg_route = 1; 193 arg_route = 1;
192 else if (strcmp(argv[i], "--arp") == 0) 194 else if (strcmp(argv[i], "--arp") == 0)
193 arg_arp = 1; 195 arg_arp = 1;
196#endif
194 else if (strcmp(argv[i], "--apparmor") == 0) 197 else if (strcmp(argv[i], "--apparmor") == 0)
195 arg_apparmor = 1; 198 arg_apparmor = 1;
196 199