aboutsummaryrefslogtreecommitdiffstats
path: root/src/fseccomp/seccomp.c
diff options
context:
space:
mode:
authorLibravatar Fred Barclay <Fred-Barclay@users.noreply.github.com>2017-05-24 14:13:52 -0500
committerLibravatar Fred Barclay <Fred-Barclay@users.noreply.github.com>2017-05-24 14:13:52 -0500
commit96c920e166b40bbe50f216e294f2efac154a1cb2 (patch)
treefa80a34e81863ab897f2f2b8ec4124b10d023516 /src/fseccomp/seccomp.c
parentremove trailing whitespace from etc/ (diff)
downloadfirejail-96c920e166b40bbe50f216e294f2efac154a1cb2.tar.gz
firejail-96c920e166b40bbe50f216e294f2efac154a1cb2.tar.zst
firejail-96c920e166b40bbe50f216e294f2efac154a1cb2.zip
Remove trailing whitespace from src/
Diffstat (limited to 'src/fseccomp/seccomp.c')
-rw-r--r--src/fseccomp/seccomp.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/fseccomp/seccomp.c b/src/fseccomp/seccomp.c
index 25a151a78..c12edfd90 100644
--- a/src/fseccomp/seccomp.c
+++ b/src/fseccomp/seccomp.c
@@ -257,7 +257,7 @@ void seccomp_default(const char *fname, int allow_debuggers) {
257 filter_init(fd); 257 filter_init(fd);
258 add_default_list(fd, allow_debuggers); 258 add_default_list(fd, allow_debuggers);
259 filter_end_blacklist(fd); 259 filter_end_blacklist(fd);
260 260
261 // close file 261 // close file
262 close(fd); 262 close(fd);
263} 263}
@@ -281,7 +281,7 @@ void seccomp_drop(const char *fname, char *list, int allow_debuggers) {
281 exit(1); 281 exit(1);
282 } 282 }
283 filter_end_blacklist(fd); 283 filter_end_blacklist(fd);
284 284
285 // close file 285 // close file
286 close(fd); 286 close(fd);
287} 287}
@@ -305,7 +305,7 @@ void seccomp_default_drop(const char *fname, char *list, int allow_debuggers) {
305 exit(1); 305 exit(1);
306 } 306 }
307 filter_end_blacklist(fd); 307 filter_end_blacklist(fd);
308 308
309 // close file 309 // close file
310 close(fd); 310 close(fd);
311} 311}
@@ -326,15 +326,14 @@ void seccomp_keep(const char *fname, char *list) {
326 filter_add_whitelist(fd, SYS_setgroups, 0); 326 filter_add_whitelist(fd, SYS_setgroups, 0);
327 filter_add_whitelist(fd, SYS_dup, 0); 327 filter_add_whitelist(fd, SYS_dup, 0);
328 filter_add_whitelist(fd, SYS_prctl, 0); 328 filter_add_whitelist(fd, SYS_prctl, 0);
329 329
330 if (syscall_check_list(list, filter_add_whitelist, fd, 0)) { 330 if (syscall_check_list(list, filter_add_whitelist, fd, 0)) {
331 fprintf(stderr, "Error fseccomp: cannot build seccomp filter\n"); 331 fprintf(stderr, "Error fseccomp: cannot build seccomp filter\n");
332 exit(1); 332 exit(1);
333 } 333 }
334 334
335 filter_end_whitelist(fd); 335 filter_end_whitelist(fd);
336 336
337 // close file 337 // close file
338 close(fd); 338 close(fd);
339} 339}
340