From 61dbfeffe77df9c1a11413b3cb8954933e79b45f Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 25 Mar 2025 05:26:37 +0900 Subject: [PATCH] sandbox/wl: move into sandbox Signed-off-by: Ophestra --- internal/app/seal.go | 2 +- sandbox/container.go | 1 + {wl => sandbox/wl}/conn.go | 0 {wl => sandbox/wl}/consts.go | 0 {wl => sandbox/wl}/wayland-bind.c | 0 {wl => sandbox/wl}/wayland-bind.h | 0 {wl => sandbox/wl}/wl.go | 0 system/wayland.go | 2 +- 8 files changed, 3 insertions(+), 2 deletions(-) rename {wl => sandbox/wl}/conn.go (100%) rename {wl => sandbox/wl}/consts.go (100%) rename {wl => sandbox/wl}/wayland-bind.c (100%) rename {wl => sandbox/wl}/wayland-bind.h (100%) rename {wl => sandbox/wl}/wl.go (100%) diff --git a/internal/app/seal.go b/internal/app/seal.go index 549de16..c9ec4bc 100644 --- a/internal/app/seal.go +++ b/internal/app/seal.go @@ -24,8 +24,8 @@ import ( "git.gensokyo.uk/security/fortify/internal/fmsg" "git.gensokyo.uk/security/fortify/internal/sys" "git.gensokyo.uk/security/fortify/sandbox" + "git.gensokyo.uk/security/fortify/sandbox/wl" "git.gensokyo.uk/security/fortify/system" - "git.gensokyo.uk/security/fortify/wl" ) const ( diff --git a/sandbox/container.go b/sandbox/container.go index 31da929..ee4f632 100644 --- a/sandbox/container.go +++ b/sandbox/container.go @@ -1,3 +1,4 @@ +// Package sandbox implements unprivileged Linux container with hardening options useful for creating application sandboxes. package sandbox import ( diff --git a/wl/conn.go b/sandbox/wl/conn.go similarity index 100% rename from wl/conn.go rename to sandbox/wl/conn.go diff --git a/wl/consts.go b/sandbox/wl/consts.go similarity index 100% rename from wl/consts.go rename to sandbox/wl/consts.go diff --git a/wl/wayland-bind.c b/sandbox/wl/wayland-bind.c similarity index 100% rename from wl/wayland-bind.c rename to sandbox/wl/wayland-bind.c diff --git a/wl/wayland-bind.h b/sandbox/wl/wayland-bind.h similarity index 100% rename from wl/wayland-bind.h rename to sandbox/wl/wayland-bind.h diff --git a/wl/wl.go b/sandbox/wl/wl.go similarity index 100% rename from wl/wl.go rename to sandbox/wl/wl.go diff --git a/system/wayland.go b/system/wayland.go index 12c7a28..7a459dd 100644 --- a/system/wayland.go +++ b/system/wayland.go @@ -6,7 +6,7 @@ import ( "os" "git.gensokyo.uk/security/fortify/acl" - "git.gensokyo.uk/security/fortify/wl" + "git.gensokyo.uk/security/fortify/sandbox/wl" ) // Wayland sets up a wayland socket with a security context attached.