treewide: reapply clang-format
All checks were successful
Test / Create distribution (push) Successful in 32s
Test / Sandbox (push) Successful in 1m51s
Test / Hakurei (push) Successful in 2m49s
Test / Sandbox (race detector) (push) Successful in 2m58s
Test / Planterette (push) Successful in 3m37s
Test / Hakurei (race detector) (push) Successful in 4m15s
Test / Flake checks (push) Successful in 1m8s
All checks were successful
Test / Create distribution (push) Successful in 32s
Test / Sandbox (push) Successful in 1m51s
Test / Hakurei (push) Successful in 2m49s
Test / Sandbox (race detector) (push) Successful in 2m58s
Test / Planterette (push) Successful in 3m37s
Test / Hakurei (race detector) (push) Successful in 4m15s
Test / Flake checks (push) Successful in 1m8s
Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
parent
0e957cc9c1
commit
863bf69ad3
@ -4,8 +4,8 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sys/acl.h>
|
#include <sys/acl.h>
|
||||||
|
|
||||||
int hakurei_acl_update_file_by_uid(const char *path_p, uid_t uid, acl_perm_t *perms,
|
int hakurei_acl_update_file_by_uid(const char *path_p, uid_t uid,
|
||||||
size_t plen) {
|
acl_perm_t *perms, size_t plen) {
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
bool v;
|
bool v;
|
||||||
int i;
|
int i;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include <sys/acl.h>
|
#include <sys/acl.h>
|
||||||
|
|
||||||
int hakurei_acl_update_file_by_uid(const char *path_p, uid_t uid, acl_perm_t *perms,
|
int hakurei_acl_update_file_by_uid(const char *path_p, uid_t uid,
|
||||||
size_t plen);
|
acl_perm_t *perms, size_t plen);
|
||||||
|
@ -28,8 +28,8 @@ struct hakurei_syscall_act {
|
|||||||
|
|
||||||
#define SECCOMP_RULESET_ADD(ruleset) \
|
#define SECCOMP_RULESET_ADD(ruleset) \
|
||||||
do { \
|
do { \
|
||||||
if (opts & HAKUREI_VERBOSE) \
|
if (opts & HAKUREI_VERBOSE) \
|
||||||
hakurei_println("adding seccomp ruleset \"" #ruleset "\""); \
|
hakurei_println("adding seccomp ruleset \"" #ruleset "\""); \
|
||||||
for (int i = 0; i < LEN(ruleset); i++) { \
|
for (int i = 0; i < LEN(ruleset); i++) { \
|
||||||
assert(ruleset[i].m_errno == EPERM || ruleset[i].m_errno == ENOSYS); \
|
assert(ruleset[i].m_errno == EPERM || ruleset[i].m_errno == ENOSYS); \
|
||||||
\
|
\
|
||||||
@ -50,8 +50,8 @@ struct hakurei_syscall_act {
|
|||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
int32_t hakurei_build_filter(int *ret_p, int fd, uint32_t arch, uint32_t multiarch,
|
int32_t hakurei_build_filter(int *ret_p, int fd, uint32_t arch,
|
||||||
hakurei_filter_opts opts) {
|
uint32_t multiarch, hakurei_filter_opts opts) {
|
||||||
int32_t res = 0; /* refer to resPrefix for message */
|
int32_t res = 0; /* refer to resPrefix for message */
|
||||||
int allow_multiarch = opts & HAKUREI_MULTIARCH;
|
int allow_multiarch = opts & HAKUREI_MULTIARCH;
|
||||||
int allowed_personality = PER_LINUX;
|
int allowed_personality = PER_LINUX;
|
||||||
|
@ -19,5 +19,5 @@ typedef enum {
|
|||||||
} hakurei_filter_opts;
|
} hakurei_filter_opts;
|
||||||
|
|
||||||
extern void hakurei_println(char *v);
|
extern void hakurei_println(char *v);
|
||||||
int32_t hakurei_build_filter(int *ret_p, int fd, uint32_t arch, uint32_t multiarch,
|
int32_t hakurei_build_filter(int *ret_p, int fd, uint32_t arch,
|
||||||
hakurei_filter_opts opts);
|
uint32_t multiarch, hakurei_filter_opts opts);
|
@ -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,
|
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 */
|
int32_t res = 0; /* refer to resErr for corresponding Go error */
|
||||||
|
|
||||||
struct wl_display *display;
|
struct wl_display *display;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
int32_t hakurei_bind_wayland_fd(char *socket_path, int fd, const char *app_id,
|
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);
|
Loading…
x
Reference in New Issue
Block a user