diff options
Diffstat (limited to 'sandbox/seccomp')
| -rw-r--r-- | sandbox/seccomp/seccomp-build.c | 8 | ||||
| -rw-r--r-- | sandbox/seccomp/seccomp-build.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sandbox/seccomp/seccomp-build.c b/sandbox/seccomp/seccomp-build.c index 6eb3c53f..3fe47df5 100644 --- a/sandbox/seccomp/seccomp-build.c +++ b/sandbox/seccomp/seccomp-build.c @@ -28,8 +28,8 @@ struct hakurei_syscall_act { #define SECCOMP_RULESET_ADD(ruleset) \ do { \ - if (opts & HAKUREI_VERBOSE) \ - hakurei_println("adding seccomp ruleset \"" #ruleset "\""); \ + if (opts & HAKUREI_VERBOSE) \ + hakurei_println("adding seccomp ruleset \"" #ruleset "\""); \ for (int i = 0; i < LEN(ruleset); i++) { \ assert(ruleset[i].m_errno == EPERM || ruleset[i].m_errno == ENOSYS); \ \ @@ -50,8 +50,8 @@ struct hakurei_syscall_act { } \ } while (0) -int32_t hakurei_build_filter(int *ret_p, int fd, uint32_t arch, uint32_t multiarch, - hakurei_filter_opts opts) { +int32_t hakurei_build_filter(int *ret_p, int fd, uint32_t arch, + uint32_t multiarch, hakurei_filter_opts opts) { int32_t res = 0; /* refer to resPrefix for message */ int allow_multiarch = opts & HAKUREI_MULTIARCH; int allowed_personality = PER_LINUX; diff --git a/sandbox/seccomp/seccomp-build.h b/sandbox/seccomp/seccomp-build.h index 10f6eac2..324e6d23 100644 --- a/sandbox/seccomp/seccomp-build.h +++ b/sandbox/seccomp/seccomp-build.h @@ -19,5 +19,5 @@ typedef enum { } hakurei_filter_opts; extern void hakurei_println(char *v); -int32_t hakurei_build_filter(int *ret_p, int fd, uint32_t arch, uint32_t multiarch, - hakurei_filter_opts opts);
\ No newline at end of file +int32_t hakurei_build_filter(int *ret_p, int fd, uint32_t arch, + uint32_t multiarch, hakurei_filter_opts opts);
\ No newline at end of file |
