diff options
author | netblue30 <netblue30@yahoo.com> | 2017-08-21 08:47:46 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2017-08-21 08:47:46 -0400 |
commit | 3781bb53b0eb0bc1ac05250571d2e997aac8783d (patch) | |
tree | cd919fbdffa62bbb9f54274e8805300e6a7b4623 | |
parent | testing, merges (diff) | |
download | firejail-3781bb53b0eb0bc1ac05250571d2e997aac8783d.tar.gz firejail-3781bb53b0eb0bc1ac05250571d2e997aac8783d.tar.zst firejail-3781bb53b0eb0bc1ac05250571d2e997aac8783d.zip |
compile fixes
-rw-r--r-- | src/firejail/seccomp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/firejail/seccomp.c b/src/firejail/seccomp.c index f0b25c8cc..52b4679ae 100644 --- a/src/firejail/seccomp.c +++ b/src/firejail/seccomp.c | |||
@@ -132,20 +132,24 @@ errexit: | |||
132 | } | 132 | } |
133 | 133 | ||
134 | // i386 filter installed on amd64 architectures | 134 | // i386 filter installed on amd64 architectures |
135 | #if defined(__x86_64__) | ||
135 | static void seccomp_filter_32(void) { | 136 | static void seccomp_filter_32(void) { |
136 | if (seccomp_load(RUN_SECCOMP_I386) == 0) { | 137 | if (seccomp_load(RUN_SECCOMP_I386) == 0) { |
137 | if (arg_debug) | 138 | if (arg_debug) |
138 | printf("Dual i386/amd64 seccomp filter configured\n"); | 139 | printf("Dual i386/amd64 seccomp filter configured\n"); |
139 | } | 140 | } |
140 | } | 141 | } |
142 | #endif | ||
141 | 143 | ||
142 | // amd64 filter installed on i386 architectures | 144 | // amd64 filter installed on i386 architectures |
145 | #if defined(__i386__) | ||
143 | static void seccomp_filter_64(void) { | 146 | static void seccomp_filter_64(void) { |
144 | if (seccomp_load(RUN_SECCOMP_AMD64) == 0) { | 147 | if (seccomp_load(RUN_SECCOMP_AMD64) == 0) { |
145 | if (arg_debug) | 148 | if (arg_debug) |
146 | printf("Dual i386/amd64 seccomp filter configured\n"); | 149 | printf("Dual i386/amd64 seccomp filter configured\n"); |
147 | } | 150 | } |
148 | } | 151 | } |
152 | #endif | ||
149 | 153 | ||
150 | static void seccomp_filter_block_secondary(void) { | 154 | static void seccomp_filter_block_secondary(void) { |
151 | if (seccomp_load(RUN_SECCOMP_BLOCK_SECONDARY) == 0) { | 155 | if (seccomp_load(RUN_SECCOMP_BLOCK_SECONDARY) == 0) { |