diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-06-25 03:59:52 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-06-25 04:57:41 +0900 |
| commit | 87e008d56de974947ebb99c2cc40b25d3c2cf43e (patch) | |
| tree | 31791911e5226d6ec04e3fac7d91b0bf53e63aa5 /sandbox/wl | |
| parent | 399207321265307bb15f37d867f9370cd51c82a8 (diff) | |
treewide: rename to hakurei
Fortify makes little sense for a container tool.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'sandbox/wl')
| -rw-r--r-- | sandbox/wl/wayland-bind.c | 4 | ||||
| -rw-r--r-- | sandbox/wl/wayland-bind.h | 2 | ||||
| -rw-r--r-- | sandbox/wl/wl.go | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/sandbox/wl/wayland-bind.c b/sandbox/wl/wayland-bind.c index 5bbf206d..432527f1 100644 --- a/sandbox/wl/wayland-bind.c +++ b/sandbox/wl/wayland-bind.c @@ -28,7 +28,7 @@ static const struct wl_registry_listener registry_listener = { .global_remove = registry_handle_global_remove, }; -int32_t f_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) { int32_t res = 0; /* refer to resErr for corresponding Go error */ @@ -74,7 +74,7 @@ int32_t f_bind_wayland_fd(char *socket_path, int fd, const char *app_id, security_context = wp_security_context_manager_v1_create_listener( security_context_manager, listen_fd, sync_fd); wp_security_context_v1_set_sandbox_engine(security_context, - "uk.gensokyo.fortify"); + "uk.gensokyo.hakurei"); wp_security_context_v1_set_app_id(security_context, app_id); wp_security_context_v1_set_instance_id(security_context, instance_id); diff --git a/sandbox/wl/wayland-bind.h b/sandbox/wl/wayland-bind.h index 283d5295..21136979 100644 --- a/sandbox/wl/wayland-bind.h +++ b/sandbox/wl/wayland-bind.h @@ -1,4 +1,4 @@ #include <stdint.h> -int32_t f_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);
\ No newline at end of file diff --git a/sandbox/wl/wl.go b/sandbox/wl/wl.go index f75f063d..7bb66452 100644 --- a/sandbox/wl/wl.go +++ b/sandbox/wl/wl.go @@ -29,7 +29,7 @@ func bindWaylandFd(socketPath string, fd uintptr, appID, instanceID string, sync if hasNull(appID) || hasNull(instanceID) { return ErrContainsNull } - res := C.f_bind_wayland_fd(C.CString(socketPath), C.int(fd), C.CString(appID), C.CString(instanceID), C.int(syncFd)) + res := C.hakurei_bind_wayland_fd(C.CString(socketPath), C.int(fd), C.CString(appID), C.CString(instanceID), C.int(syncFd)) return resErr[int32(res)] } |
