aboutsummaryrefslogtreecommitdiffhomepage
path: root/sandbox
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox')
-rw-r--r--sandbox/seccomp/seccomp-build.c8
-rw-r--r--sandbox/seccomp/seccomp-build.h4
-rw-r--r--sandbox/wl/wayland-bind.c2
-rw-r--r--sandbox/wl/wayland-bind.h2
4 files changed, 8 insertions, 8 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
diff --git a/sandbox/wl/wayland-bind.c b/sandbox/wl/wayland-bind.c
index 432527f1..bf766533 100644
--- a/sandbox/wl/wayland-bind.c
+++ b/sandbox/wl/wayland-bind.c
@@ -29,7 +29,7 @@ static const struct wl_registry_listener registry_listener = {
};
int32_t hakurei_bind_wayland_fd(char *socket_path, int fd, const char *app_id,
- const char *instance_id, int sync_fd) {
+ const char *instance_id, int sync_fd) {
int32_t res = 0; /* refer to resErr for corresponding Go error */
struct wl_display *display;
diff --git a/sandbox/wl/wayland-bind.h b/sandbox/wl/wayland-bind.h
index 21136979..eae8936d 100644
--- a/sandbox/wl/wayland-bind.h
+++ b/sandbox/wl/wayland-bind.h
@@ -1,4 +1,4 @@
#include <stdint.h>
int32_t hakurei_bind_wayland_fd(char *socket_path, int fd, const char *app_id,
- const char *instance_id, int sync_fd); \ No newline at end of file
+ const char *instance_id, int sync_fd); \ No newline at end of file