aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-10-24 09:41:11 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2015-10-24 09:41:11 -0400
commit8014c8d3aa022c851443cbb4226a9481684c9704 (patch)
treef99f29880a3eb0e33ccf3c471a43fbc40a405147 /src
parentauthors list (diff)
downloadfirejail-8014c8d3aa022c851443cbb4226a9481684c9704.tar.gz
firejail-8014c8d3aa022c851443cbb4226a9481684c9704.tar.zst
firejail-8014c8d3aa022c851443cbb4226a9481684c9704.zip
fixed compilation error for --disable-seccomp
Diffstat (limited to 'src')
-rw-r--r--src/firejail/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c
index 422a39128..e76f1b4f1 100644
--- a/src/firejail/main.c
+++ b/src/firejail/main.c
@@ -396,7 +396,9 @@ int main(int argc, char **argv) {
396 int arg_cgroup = 0; 396 int arg_cgroup = 0;
397 int custom_profile = 0; // custom profile loaded 397 int custom_profile = 0; // custom profile loaded
398 int arg_noprofile = 0; // use generic.profile if none other found/specified 398 int arg_noprofile = 0; // use generic.profile if none other found/specified
399#ifdef HAVE_SECCOMP
399 int highest_errno = errno_highest_nr(); 400 int highest_errno = errno_highest_nr();
401#endif
400 402
401 // check if we already have a sandbox running 403 // check if we already have a sandbox running
402 int rv = check_kernel_procs(); 404 int rv = check_kernel_procs();
@@ -1366,11 +1368,13 @@ int main(int argc, char **argv) {
1366 waitpid(child, NULL, 0); 1368 waitpid(child, NULL, 0);
1367 1369
1368 // free globals 1370 // free globals
1371#ifdef HAVE_SECCOMP
1369 if (arg_seccomp_list_errno) { 1372 if (arg_seccomp_list_errno) {
1370 for (i = 0; i < highest_errno; i++) 1373 for (i = 0; i < highest_errno; i++)
1371 free(arg_seccomp_list_errno[i]); 1374 free(arg_seccomp_list_errno[i]);
1372 free(arg_seccomp_list_errno); 1375 free(arg_seccomp_list_errno);
1373 } 1376 }
1377#endif
1374 1378
1375 myexit(0); 1379 myexit(0);
1376 1380