From df6fc298f608eb106229efc742f0ef8ce9f78e8b Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Fri, 20 Dec 2024 00:20:02 +0900 Subject: [PATCH] migrate to git.gensokyo.uk/security/fortify Signed-off-by: Ophestra Umiker --- README.md | 8 ++++---- acl/acl_test.go | 2 +- cmd/finit/main.go | 8 ++++---- cmd/fshim/ipc/payload.go | 2 +- cmd/fshim/ipc/shim/shim.go | 8 ++++---- cmd/fshim/main.go | 12 ++++++------ cmd/fuserdb/main.go | 2 +- cmd/fuserdb/payload.go | 2 +- dbus/config_test.go | 2 +- dbus/dbus_test.go | 4 ++-- dbus/proxy.go | 4 ++-- dbus/run.go | 6 +++--- dbus/samples_test.go | 2 +- dbus/stub_test.go | 2 +- dist/release.sh | 6 +++--- error.go | 4 ++-- fst/config.go | 8 ++++---- fst/id_test.go | 2 +- go.mod | 2 +- helper/args_test.go | 2 +- helper/bwrap.go | 4 ++-- helper/bwrap_test.go | 4 ++-- helper/direct_test.go | 2 +- helper/helper_test.go | 2 +- helper/pipe.go | 2 +- helper/stub.go | 4 ++-- helper/stub_test.go | 2 +- internal/app/app.go | 6 +++--- internal/app/app_nixos_test.go | 10 +++++----- internal/app/app_pd_test.go | 10 +++++----- internal/app/app_stub_test.go | 2 +- internal/app/app_test.go | 10 +++++----- internal/app/export_test.go | 8 ++++---- internal/app/seal.go | 12 ++++++------ internal/app/share.dbus.go | 6 +++--- internal/app/share.display.go | 8 ++++---- internal/app/share.pulse.go | 6 +++--- internal/app/share.runtime.go | 4 ++-- internal/app/share.system.go | 6 +++--- internal/app/start.go | 12 ++++++------ internal/app/system.go | 8 ++++---- internal/linux/interface.go | 2 +- internal/linux/std.go | 4 ++-- internal/state/multi.go | 4 ++-- internal/state/multi_test.go | 2 +- internal/state/print.go | 4 ++-- internal/state/state.go | 2 +- internal/state/state_test.go | 4 ++-- internal/system/acl.go | 4 ++-- internal/system/acl_test.go | 2 +- internal/system/dbus.go | 4 ++-- internal/system/mkdir.go | 2 +- internal/system/op.go | 2 +- internal/system/op_test.go | 2 +- internal/system/tmpfiles.go | 4 ++-- internal/system/tmpfiles_test.go | 2 +- internal/system/wayland.go | 6 +++--- internal/system/xhost.go | 4 ++-- ldd/exec.go | 4 ++-- ldd/ldd_test.go | 2 +- main.go | 16 ++++++++-------- package.nix | 2 +- 62 files changed, 147 insertions(+), 147 deletions(-) diff --git a/README.md b/README.md index 4b54287..eb9fd20 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ Fortify ======= -[![Go Reference](https://pkg.go.dev/badge/git.ophivana.moe/security/fortify.svg)](https://pkg.go.dev/git.ophivana.moe/security/fortify) -[![Go Report Card](https://goreportcard.com/badge/git.ophivana.moe/security/fortify)](https://goreportcard.com/report/git.ophivana.moe/security/fortify) +[![Go Reference](https://pkg.go.dev/badge/git.gensokyo.uk/security/fortify.svg)](https://pkg.go.dev/git.gensokyo.uk/security/fortify) +[![Go Report Card](https://goreportcard.com/badge/git.gensokyo.uk/security/fortify)](https://goreportcard.com/report/git.gensokyo.uk/security/fortify) Lets you run graphical applications as another user in a confined environment with a nice NixOS module to configure target users and provide launchers and desktop files for your privileged user. @@ -18,7 +18,7 @@ Why would you want this? If you have a flakes-enabled nix environment, you can try out the tool by running: ```shell -nix run git+https://git.ophivana.moe/security/fortify -- help +nix run git+https://git.gensokyo.uk/security/fortify -- help ``` ## Module usage @@ -35,7 +35,7 @@ To use the module, import it into your configuration with nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05"; fortify = { - url = "git+https://git.ophivana.moe/security/fortify"; + url = "git+https://git.gensokyo.uk/security/fortify"; # Optional but recommended to limit the size of your system closure. inputs.nixpkgs.follows = "nixpkgs"; diff --git a/acl/acl_test.go b/acl/acl_test.go index ab143f6..07acfdb 100644 --- a/acl/acl_test.go +++ b/acl/acl_test.go @@ -7,7 +7,7 @@ import ( "reflect" "testing" - "git.ophivana.moe/security/fortify/acl" + "git.gensokyo.uk/security/fortify/acl" ) const testFileName = "acl.test" diff --git a/cmd/finit/main.go b/cmd/finit/main.go index 826e3f8..14283f2 100644 --- a/cmd/finit/main.go +++ b/cmd/finit/main.go @@ -9,10 +9,10 @@ import ( "syscall" "time" - init0 "git.ophivana.moe/security/fortify/cmd/finit/ipc" - "git.ophivana.moe/security/fortify/internal" - "git.ophivana.moe/security/fortify/internal/fmsg" - "git.ophivana.moe/security/fortify/internal/proc" + init0 "git.gensokyo.uk/security/fortify/cmd/finit/ipc" + "git.gensokyo.uk/security/fortify/internal" + "git.gensokyo.uk/security/fortify/internal/fmsg" + "git.gensokyo.uk/security/fortify/internal/proc" ) const ( diff --git a/cmd/fshim/ipc/payload.go b/cmd/fshim/ipc/payload.go index d833073..3ef2dac 100644 --- a/cmd/fshim/ipc/payload.go +++ b/cmd/fshim/ipc/payload.go @@ -1,7 +1,7 @@ package shim0 import ( - "git.ophivana.moe/security/fortify/helper/bwrap" + "git.gensokyo.uk/security/fortify/helper/bwrap" ) const Env = "FORTIFY_SHIM" diff --git a/cmd/fshim/ipc/shim/shim.go b/cmd/fshim/ipc/shim/shim.go index 383f3fc..c08422a 100644 --- a/cmd/fshim/ipc/shim/shim.go +++ b/cmd/fshim/ipc/shim/shim.go @@ -11,10 +11,10 @@ import ( "syscall" "time" - shim0 "git.ophivana.moe/security/fortify/cmd/fshim/ipc" - "git.ophivana.moe/security/fortify/internal" - "git.ophivana.moe/security/fortify/internal/fmsg" - "git.ophivana.moe/security/fortify/internal/proc" + shim0 "git.gensokyo.uk/security/fortify/cmd/fshim/ipc" + "git.gensokyo.uk/security/fortify/internal" + "git.gensokyo.uk/security/fortify/internal/fmsg" + "git.gensokyo.uk/security/fortify/internal/proc" ) const shimSetupTimeout = 5 * time.Second diff --git a/cmd/fshim/main.go b/cmd/fshim/main.go index 84ce700..05b7280 100644 --- a/cmd/fshim/main.go +++ b/cmd/fshim/main.go @@ -7,12 +7,12 @@ import ( "strconv" "syscall" - init0 "git.ophivana.moe/security/fortify/cmd/finit/ipc" - shim "git.ophivana.moe/security/fortify/cmd/fshim/ipc" - "git.ophivana.moe/security/fortify/helper" - "git.ophivana.moe/security/fortify/internal" - "git.ophivana.moe/security/fortify/internal/fmsg" - "git.ophivana.moe/security/fortify/internal/proc" + init0 "git.gensokyo.uk/security/fortify/cmd/finit/ipc" + shim "git.gensokyo.uk/security/fortify/cmd/fshim/ipc" + "git.gensokyo.uk/security/fortify/helper" + "git.gensokyo.uk/security/fortify/internal" + "git.gensokyo.uk/security/fortify/internal/fmsg" + "git.gensokyo.uk/security/fortify/internal/proc" ) // everything beyond this point runs as unconstrained target user diff --git a/cmd/fuserdb/main.go b/cmd/fuserdb/main.go index 64b0b6e..2c3dd24 100644 --- a/cmd/fuserdb/main.go +++ b/cmd/fuserdb/main.go @@ -9,7 +9,7 @@ import ( "path" "strconv" - "git.ophivana.moe/security/fortify/internal/fmsg" + "git.gensokyo.uk/security/fortify/internal/fmsg" ) func main() { diff --git a/cmd/fuserdb/payload.go b/cmd/fuserdb/payload.go index fb24121..dc8a072 100644 --- a/cmd/fuserdb/payload.go +++ b/cmd/fuserdb/payload.go @@ -5,7 +5,7 @@ import ( "os" "path" - "git.ophivana.moe/security/fortify/internal/fmsg" + "git.gensokyo.uk/security/fortify/internal/fmsg" ) type payloadU struct { diff --git a/dbus/config_test.go b/dbus/config_test.go index 63c66a5..e28d4f7 100644 --- a/dbus/config_test.go +++ b/dbus/config_test.go @@ -9,7 +9,7 @@ import ( "strings" "testing" - "git.ophivana.moe/security/fortify/dbus" + "git.gensokyo.uk/security/fortify/dbus" ) func TestConfig_Args(t *testing.T) { diff --git a/dbus/dbus_test.go b/dbus/dbus_test.go index aa43925..8e267c7 100644 --- a/dbus/dbus_test.go +++ b/dbus/dbus_test.go @@ -5,8 +5,8 @@ import ( "strings" "testing" - "git.ophivana.moe/security/fortify/dbus" - "git.ophivana.moe/security/fortify/helper" + "git.gensokyo.uk/security/fortify/dbus" + "git.gensokyo.uk/security/fortify/helper" ) func TestNew(t *testing.T) { diff --git a/dbus/proxy.go b/dbus/proxy.go index f2b0d4f..9f78648 100644 --- a/dbus/proxy.go +++ b/dbus/proxy.go @@ -6,8 +6,8 @@ import ( "io" "sync" - "git.ophivana.moe/security/fortify/helper" - "git.ophivana.moe/security/fortify/helper/bwrap" + "git.gensokyo.uk/security/fortify/helper" + "git.gensokyo.uk/security/fortify/helper/bwrap" ) // ProxyName is the file name or path to the proxy program. diff --git a/dbus/run.go b/dbus/run.go index 28f6769..bea820e 100644 --- a/dbus/run.go +++ b/dbus/run.go @@ -9,9 +9,9 @@ import ( "strconv" "strings" - "git.ophivana.moe/security/fortify/helper" - "git.ophivana.moe/security/fortify/helper/bwrap" - "git.ophivana.moe/security/fortify/ldd" + "git.gensokyo.uk/security/fortify/helper" + "git.gensokyo.uk/security/fortify/helper/bwrap" + "git.gensokyo.uk/security/fortify/ldd" ) // Start launches the D-Bus proxy and sets up the Wait method. diff --git a/dbus/samples_test.go b/dbus/samples_test.go index dd216aa..a16d2c2 100644 --- a/dbus/samples_test.go +++ b/dbus/samples_test.go @@ -3,7 +3,7 @@ package dbus_test import ( "sync" - "git.ophivana.moe/security/fortify/dbus" + "git.gensokyo.uk/security/fortify/dbus" ) var samples = []dbusTestCase{ diff --git a/dbus/stub_test.go b/dbus/stub_test.go index 0f4781e..b83deb2 100644 --- a/dbus/stub_test.go +++ b/dbus/stub_test.go @@ -3,7 +3,7 @@ package dbus_test import ( "testing" - "git.ophivana.moe/security/fortify/helper" + "git.gensokyo.uk/security/fortify/helper" ) func TestHelperChildStub(t *testing.T) { diff --git a/dist/release.sh b/dist/release.sh index 8505277..914f398 100755 --- a/dist/release.sh +++ b/dist/release.sh @@ -8,9 +8,9 @@ mkdir -p "${out}" cp "README.md" "dist/fsurc.default" "dist/install.sh" "${out}" go build -v -o "${out}/bin/" -ldflags "-s -w - -X git.ophivana.moe/security/fortify/internal.Version=${VERSION} - -X git.ophivana.moe/security/fortify/internal.Fsu=/usr/bin/fsu - -X git.ophivana.moe/security/fortify/internal.Finit=/usr/libexec/fortify/finit + -X git.gensokyo.uk/security/fortify/internal.Version=${VERSION} + -X git.gensokyo.uk/security/fortify/internal.Fsu=/usr/bin/fsu + -X git.gensokyo.uk/security/fortify/internal.Finit=/usr/libexec/fortify/finit -X main.Fmain=/usr/bin/fortify -X main.Fshim=/usr/libexec/fortify/fshim" ./... diff --git a/error.go b/error.go index 18f5002..7e55874 100644 --- a/error.go +++ b/error.go @@ -3,8 +3,8 @@ package main import ( "errors" - "git.ophivana.moe/security/fortify/internal/app" - "git.ophivana.moe/security/fortify/internal/fmsg" + "git.gensokyo.uk/security/fortify/internal/app" + "git.gensokyo.uk/security/fortify/internal/fmsg" ) func logWaitError(err error) { diff --git a/fst/config.go b/fst/config.go index b1a2240..9566b22 100644 --- a/fst/config.go +++ b/fst/config.go @@ -3,10 +3,10 @@ package fst import ( "errors" - "git.ophivana.moe/security/fortify/dbus" - "git.ophivana.moe/security/fortify/helper/bwrap" - "git.ophivana.moe/security/fortify/internal/linux" - "git.ophivana.moe/security/fortify/internal/system" + "git.gensokyo.uk/security/fortify/dbus" + "git.gensokyo.uk/security/fortify/helper/bwrap" + "git.gensokyo.uk/security/fortify/internal/linux" + "git.gensokyo.uk/security/fortify/internal/system" ) const fTmp = "/fortify" diff --git a/fst/id_test.go b/fst/id_test.go index bba9af2..f40026a 100644 --- a/fst/id_test.go +++ b/fst/id_test.go @@ -4,7 +4,7 @@ import ( "errors" "testing" - "git.ophivana.moe/security/fortify/fst" + "git.gensokyo.uk/security/fortify/fst" ) func TestParseAppID(t *testing.T) { diff --git a/go.mod b/go.mod index a85947a..371b2a2 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module git.ophivana.moe/security/fortify +module git.gensokyo.uk/security/fortify go 1.22 diff --git a/helper/args_test.go b/helper/args_test.go index 0495e07..a23b315 100644 --- a/helper/args_test.go +++ b/helper/args_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "git.ophivana.moe/security/fortify/helper" + "git.gensokyo.uk/security/fortify/helper" ) func Test_argsFD_String(t *testing.T) { diff --git a/helper/bwrap.go b/helper/bwrap.go index 5b674b4..ec5c8ca 100644 --- a/helper/bwrap.go +++ b/helper/bwrap.go @@ -8,8 +8,8 @@ import ( "strconv" "sync" - "git.ophivana.moe/security/fortify/helper/bwrap" - "git.ophivana.moe/security/fortify/internal/proc" + "git.gensokyo.uk/security/fortify/helper/bwrap" + "git.gensokyo.uk/security/fortify/internal/proc" ) // BubblewrapName is the file name or path to bubblewrap. diff --git a/helper/bwrap_test.go b/helper/bwrap_test.go index 7ef4028..f827465 100644 --- a/helper/bwrap_test.go +++ b/helper/bwrap_test.go @@ -7,8 +7,8 @@ import ( "strings" "testing" - "git.ophivana.moe/security/fortify/helper" - "git.ophivana.moe/security/fortify/helper/bwrap" + "git.gensokyo.uk/security/fortify/helper" + "git.gensokyo.uk/security/fortify/helper/bwrap" ) func TestBwrap(t *testing.T) { diff --git a/helper/direct_test.go b/helper/direct_test.go index 578bb50..1832357 100644 --- a/helper/direct_test.go +++ b/helper/direct_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "git.ophivana.moe/security/fortify/helper" + "git.gensokyo.uk/security/fortify/helper" ) func TestDirect(t *testing.T) { diff --git a/helper/helper_test.go b/helper/helper_test.go index bbedd1c..92a8c55 100644 --- a/helper/helper_test.go +++ b/helper/helper_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "git.ophivana.moe/security/fortify/helper" + "git.gensokyo.uk/security/fortify/helper" ) var ( diff --git a/helper/pipe.go b/helper/pipe.go index 2a55305..c87d4f6 100644 --- a/helper/pipe.go +++ b/helper/pipe.go @@ -6,7 +6,7 @@ import ( "os" "os/exec" - "git.ophivana.moe/security/fortify/internal/proc" + "git.gensokyo.uk/security/fortify/internal/proc" ) type pipes struct { diff --git a/helper/stub.go b/helper/stub.go index 5b45896..8ffd3a0 100644 --- a/helper/stub.go +++ b/helper/stub.go @@ -10,8 +10,8 @@ import ( "syscall" "testing" - "git.ophivana.moe/security/fortify/helper/bwrap" - "git.ophivana.moe/security/fortify/internal/fmsg" + "git.gensokyo.uk/security/fortify/helper/bwrap" + "git.gensokyo.uk/security/fortify/internal/fmsg" ) // InternalChildStub is an internal function but exported because it is cross-package; diff --git a/helper/stub_test.go b/helper/stub_test.go index 30d05e5..7720c0e 100644 --- a/helper/stub_test.go +++ b/helper/stub_test.go @@ -3,7 +3,7 @@ package helper_test import ( "testing" - "git.ophivana.moe/security/fortify/helper" + "git.gensokyo.uk/security/fortify/helper" ) func TestHelperChildStub(t *testing.T) { diff --git a/internal/app/app.go b/internal/app/app.go index 4c6ae9e..0adc121 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -4,9 +4,9 @@ import ( "sync" "sync/atomic" - "git.ophivana.moe/security/fortify/cmd/fshim/ipc/shim" - "git.ophivana.moe/security/fortify/fst" - "git.ophivana.moe/security/fortify/internal/linux" + "git.gensokyo.uk/security/fortify/cmd/fshim/ipc/shim" + "git.gensokyo.uk/security/fortify/fst" + "git.gensokyo.uk/security/fortify/internal/linux" ) type App interface { diff --git a/internal/app/app_nixos_test.go b/internal/app/app_nixos_test.go index 1a716cc..6923794 100644 --- a/internal/app/app_nixos_test.go +++ b/internal/app/app_nixos_test.go @@ -1,11 +1,11 @@ package app_test import ( - "git.ophivana.moe/security/fortify/acl" - "git.ophivana.moe/security/fortify/dbus" - "git.ophivana.moe/security/fortify/fst" - "git.ophivana.moe/security/fortify/helper/bwrap" - "git.ophivana.moe/security/fortify/internal/system" + "git.gensokyo.uk/security/fortify/acl" + "git.gensokyo.uk/security/fortify/dbus" + "git.gensokyo.uk/security/fortify/fst" + "git.gensokyo.uk/security/fortify/helper/bwrap" + "git.gensokyo.uk/security/fortify/internal/system" ) var testCasesNixos = []sealTestCase{ diff --git a/internal/app/app_pd_test.go b/internal/app/app_pd_test.go index af4b505..2d20ed0 100644 --- a/internal/app/app_pd_test.go +++ b/internal/app/app_pd_test.go @@ -1,11 +1,11 @@ package app_test import ( - "git.ophivana.moe/security/fortify/acl" - "git.ophivana.moe/security/fortify/dbus" - "git.ophivana.moe/security/fortify/fst" - "git.ophivana.moe/security/fortify/helper/bwrap" - "git.ophivana.moe/security/fortify/internal/system" + "git.gensokyo.uk/security/fortify/acl" + "git.gensokyo.uk/security/fortify/dbus" + "git.gensokyo.uk/security/fortify/fst" + "git.gensokyo.uk/security/fortify/helper/bwrap" + "git.gensokyo.uk/security/fortify/internal/system" ) var testCasesPd = []sealTestCase{ diff --git a/internal/app/app_stub_test.go b/internal/app/app_stub_test.go index b3cdc0f..9ab0919 100644 --- a/internal/app/app_stub_test.go +++ b/internal/app/app_stub_test.go @@ -7,7 +7,7 @@ import ( "os/user" "strconv" - "git.ophivana.moe/security/fortify/internal/linux" + "git.gensokyo.uk/security/fortify/internal/linux" ) // fs methods are not implemented using a real FS diff --git a/internal/app/app_test.go b/internal/app/app_test.go index b60295f..a8fd761 100644 --- a/internal/app/app_test.go +++ b/internal/app/app_test.go @@ -6,11 +6,11 @@ import ( "testing" "time" - "git.ophivana.moe/security/fortify/fst" - "git.ophivana.moe/security/fortify/helper/bwrap" - "git.ophivana.moe/security/fortify/internal/app" - "git.ophivana.moe/security/fortify/internal/linux" - "git.ophivana.moe/security/fortify/internal/system" + "git.gensokyo.uk/security/fortify/fst" + "git.gensokyo.uk/security/fortify/helper/bwrap" + "git.gensokyo.uk/security/fortify/internal/app" + "git.gensokyo.uk/security/fortify/internal/linux" + "git.gensokyo.uk/security/fortify/internal/system" ) type sealTestCase struct { diff --git a/internal/app/export_test.go b/internal/app/export_test.go index 90886e1..b796519 100644 --- a/internal/app/export_test.go +++ b/internal/app/export_test.go @@ -1,10 +1,10 @@ package app import ( - "git.ophivana.moe/security/fortify/fst" - "git.ophivana.moe/security/fortify/helper/bwrap" - "git.ophivana.moe/security/fortify/internal/linux" - "git.ophivana.moe/security/fortify/internal/system" + "git.gensokyo.uk/security/fortify/fst" + "git.gensokyo.uk/security/fortify/helper/bwrap" + "git.gensokyo.uk/security/fortify/internal/linux" + "git.gensokyo.uk/security/fortify/internal/system" ) func NewWithID(id fst.ID, os linux.System) App { diff --git a/internal/app/seal.go b/internal/app/seal.go index 3c49584..b17388f 100644 --- a/internal/app/seal.go +++ b/internal/app/seal.go @@ -8,12 +8,12 @@ import ( "regexp" "strconv" - "git.ophivana.moe/security/fortify/dbus" - "git.ophivana.moe/security/fortify/fst" - "git.ophivana.moe/security/fortify/internal/fmsg" - "git.ophivana.moe/security/fortify/internal/linux" - "git.ophivana.moe/security/fortify/internal/state" - "git.ophivana.moe/security/fortify/internal/system" + "git.gensokyo.uk/security/fortify/dbus" + "git.gensokyo.uk/security/fortify/fst" + "git.gensokyo.uk/security/fortify/internal/fmsg" + "git.gensokyo.uk/security/fortify/internal/linux" + "git.gensokyo.uk/security/fortify/internal/state" + "git.gensokyo.uk/security/fortify/internal/system" ) var ( diff --git a/internal/app/share.dbus.go b/internal/app/share.dbus.go index c80bbb9..4fd947d 100644 --- a/internal/app/share.dbus.go +++ b/internal/app/share.dbus.go @@ -3,9 +3,9 @@ package app import ( "path" - "git.ophivana.moe/security/fortify/acl" - "git.ophivana.moe/security/fortify/dbus" - "git.ophivana.moe/security/fortify/internal/system" + "git.gensokyo.uk/security/fortify/acl" + "git.gensokyo.uk/security/fortify/dbus" + "git.gensokyo.uk/security/fortify/internal/system" ) const ( diff --git a/internal/app/share.display.go b/internal/app/share.display.go index b1d9834..f09efe6 100644 --- a/internal/app/share.display.go +++ b/internal/app/share.display.go @@ -4,10 +4,10 @@ import ( "errors" "path" - "git.ophivana.moe/security/fortify/acl" - "git.ophivana.moe/security/fortify/internal/fmsg" - "git.ophivana.moe/security/fortify/internal/linux" - "git.ophivana.moe/security/fortify/internal/system" + "git.gensokyo.uk/security/fortify/acl" + "git.gensokyo.uk/security/fortify/internal/fmsg" + "git.gensokyo.uk/security/fortify/internal/linux" + "git.gensokyo.uk/security/fortify/internal/system" ) const ( diff --git a/internal/app/share.pulse.go b/internal/app/share.pulse.go index 1431534..f21dbf9 100644 --- a/internal/app/share.pulse.go +++ b/internal/app/share.pulse.go @@ -6,9 +6,9 @@ import ( "io/fs" "path" - "git.ophivana.moe/security/fortify/internal/fmsg" - "git.ophivana.moe/security/fortify/internal/linux" - "git.ophivana.moe/security/fortify/internal/system" + "git.gensokyo.uk/security/fortify/internal/fmsg" + "git.gensokyo.uk/security/fortify/internal/linux" + "git.gensokyo.uk/security/fortify/internal/system" ) const ( diff --git a/internal/app/share.runtime.go b/internal/app/share.runtime.go index dd3a6b1..720c47f 100644 --- a/internal/app/share.runtime.go +++ b/internal/app/share.runtime.go @@ -3,8 +3,8 @@ package app import ( "path" - "git.ophivana.moe/security/fortify/acl" - "git.ophivana.moe/security/fortify/internal/system" + "git.gensokyo.uk/security/fortify/acl" + "git.gensokyo.uk/security/fortify/internal/system" ) const ( diff --git a/internal/app/share.system.go b/internal/app/share.system.go index e1e66de..db4ff53 100644 --- a/internal/app/share.system.go +++ b/internal/app/share.system.go @@ -3,9 +3,9 @@ package app import ( "path" - "git.ophivana.moe/security/fortify/acl" - "git.ophivana.moe/security/fortify/internal/linux" - "git.ophivana.moe/security/fortify/internal/system" + "git.gensokyo.uk/security/fortify/acl" + "git.gensokyo.uk/security/fortify/internal/linux" + "git.gensokyo.uk/security/fortify/internal/system" ) const ( diff --git a/internal/app/start.go b/internal/app/start.go index 8de7821..3736abd 100644 --- a/internal/app/start.go +++ b/internal/app/start.go @@ -7,12 +7,12 @@ import ( "path/filepath" "strings" - shim0 "git.ophivana.moe/security/fortify/cmd/fshim/ipc" - "git.ophivana.moe/security/fortify/cmd/fshim/ipc/shim" - "git.ophivana.moe/security/fortify/helper" - "git.ophivana.moe/security/fortify/internal/fmsg" - "git.ophivana.moe/security/fortify/internal/state" - "git.ophivana.moe/security/fortify/internal/system" + shim0 "git.gensokyo.uk/security/fortify/cmd/fshim/ipc" + "git.gensokyo.uk/security/fortify/cmd/fshim/ipc/shim" + "git.gensokyo.uk/security/fortify/helper" + "git.gensokyo.uk/security/fortify/internal/fmsg" + "git.gensokyo.uk/security/fortify/internal/state" + "git.gensokyo.uk/security/fortify/internal/system" ) // Start selects a user switcher and starts shim. diff --git a/internal/app/system.go b/internal/app/system.go index c776c50..8402854 100644 --- a/internal/app/system.go +++ b/internal/app/system.go @@ -1,10 +1,10 @@ package app import ( - "git.ophivana.moe/security/fortify/dbus" - "git.ophivana.moe/security/fortify/helper/bwrap" - "git.ophivana.moe/security/fortify/internal/linux" - "git.ophivana.moe/security/fortify/internal/system" + "git.gensokyo.uk/security/fortify/dbus" + "git.gensokyo.uk/security/fortify/helper/bwrap" + "git.gensokyo.uk/security/fortify/internal/linux" + "git.gensokyo.uk/security/fortify/internal/system" ) // appSealSys encapsulates app seal behaviour with OS interactions diff --git a/internal/linux/interface.go b/internal/linux/interface.go index ff54284..dd0782d 100644 --- a/internal/linux/interface.go +++ b/internal/linux/interface.go @@ -7,7 +7,7 @@ import ( "path" "strconv" - "git.ophivana.moe/security/fortify/internal/fmsg" + "git.gensokyo.uk/security/fortify/internal/fmsg" ) // System provides safe access to operating system resources. diff --git a/internal/linux/std.go b/internal/linux/std.go index 61864be..219997e 100644 --- a/internal/linux/std.go +++ b/internal/linux/std.go @@ -9,8 +9,8 @@ import ( "strconv" "sync" - "git.ophivana.moe/security/fortify/internal" - "git.ophivana.moe/security/fortify/internal/fmsg" + "git.gensokyo.uk/security/fortify/internal" + "git.gensokyo.uk/security/fortify/internal/fmsg" ) // Std implements System using the standard library. diff --git a/internal/state/multi.go b/internal/state/multi.go index 16afc08..fd92847 100644 --- a/internal/state/multi.go +++ b/internal/state/multi.go @@ -11,8 +11,8 @@ import ( "sync" "syscall" - "git.ophivana.moe/security/fortify/fst" - "git.ophivana.moe/security/fortify/internal/fmsg" + "git.gensokyo.uk/security/fortify/fst" + "git.gensokyo.uk/security/fortify/internal/fmsg" ) // fine-grained locking and access diff --git a/internal/state/multi_test.go b/internal/state/multi_test.go index 13b2937..e0407c4 100644 --- a/internal/state/multi_test.go +++ b/internal/state/multi_test.go @@ -3,7 +3,7 @@ package state_test import ( "testing" - "git.ophivana.moe/security/fortify/internal/state" + "git.gensokyo.uk/security/fortify/internal/state" ) func TestMulti(t *testing.T) { diff --git a/internal/state/print.go b/internal/state/print.go index 2309bd6..b280878 100644 --- a/internal/state/print.go +++ b/internal/state/print.go @@ -7,8 +7,8 @@ import ( "text/tabwriter" "time" - "git.ophivana.moe/security/fortify/internal/fmsg" - "git.ophivana.moe/security/fortify/internal/system" + "git.gensokyo.uk/security/fortify/internal/fmsg" + "git.gensokyo.uk/security/fortify/internal/system" ) // MustPrintLauncherStateSimpleGlobal prints active launcher states of all simple stores diff --git a/internal/state/state.go b/internal/state/state.go index ccc44b1..e820847 100644 --- a/internal/state/state.go +++ b/internal/state/state.go @@ -3,7 +3,7 @@ package state import ( "time" - "git.ophivana.moe/security/fortify/fst" + "git.gensokyo.uk/security/fortify/fst" ) type Entries map[fst.ID]*State diff --git a/internal/state/state_test.go b/internal/state/state_test.go index 0a4ba57..9af438e 100644 --- a/internal/state/state_test.go +++ b/internal/state/state_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "git.ophivana.moe/security/fortify/fst" - "git.ophivana.moe/security/fortify/internal/state" + "git.gensokyo.uk/security/fortify/fst" + "git.gensokyo.uk/security/fortify/internal/state" ) func testStore(t *testing.T, s state.Store) { diff --git a/internal/system/acl.go b/internal/system/acl.go index f927f18..935bee4 100644 --- a/internal/system/acl.go +++ b/internal/system/acl.go @@ -4,8 +4,8 @@ import ( "fmt" "slices" - "git.ophivana.moe/security/fortify/acl" - "git.ophivana.moe/security/fortify/internal/fmsg" + "git.gensokyo.uk/security/fortify/acl" + "git.gensokyo.uk/security/fortify/internal/fmsg" ) // UpdatePerm appends an ephemeral acl update Op. diff --git a/internal/system/acl_test.go b/internal/system/acl_test.go index ed449ef..ed154ad 100644 --- a/internal/system/acl_test.go +++ b/internal/system/acl_test.go @@ -3,7 +3,7 @@ package system import ( "testing" - "git.ophivana.moe/security/fortify/acl" + "git.gensokyo.uk/security/fortify/acl" ) func TestUpdatePerm(t *testing.T) { diff --git a/internal/system/dbus.go b/internal/system/dbus.go index 75f343a..551af1c 100644 --- a/internal/system/dbus.go +++ b/internal/system/dbus.go @@ -7,8 +7,8 @@ import ( "strings" "sync" - "git.ophivana.moe/security/fortify/dbus" - "git.ophivana.moe/security/fortify/internal/fmsg" + "git.gensokyo.uk/security/fortify/dbus" + "git.gensokyo.uk/security/fortify/internal/fmsg" ) var ( diff --git a/internal/system/mkdir.go b/internal/system/mkdir.go index c868bee..b634da4 100644 --- a/internal/system/mkdir.go +++ b/internal/system/mkdir.go @@ -5,7 +5,7 @@ import ( "fmt" "os" - "git.ophivana.moe/security/fortify/internal/fmsg" + "git.gensokyo.uk/security/fortify/internal/fmsg" ) // Ensure the existence and mode of a directory. diff --git a/internal/system/op.go b/internal/system/op.go index d2ca5dd..d8479c7 100644 --- a/internal/system/op.go +++ b/internal/system/op.go @@ -5,7 +5,7 @@ import ( "os" "sync" - "git.ophivana.moe/security/fortify/internal/fmsg" + "git.gensokyo.uk/security/fortify/internal/fmsg" ) const ( diff --git a/internal/system/op_test.go b/internal/system/op_test.go index e1419d0..28929e6 100644 --- a/internal/system/op_test.go +++ b/internal/system/op_test.go @@ -4,7 +4,7 @@ import ( "strconv" "testing" - "git.ophivana.moe/security/fortify/internal/system" + "git.gensokyo.uk/security/fortify/internal/system" ) func TestNew(t *testing.T) { diff --git a/internal/system/tmpfiles.go b/internal/system/tmpfiles.go index 7300f30..e51eaae 100644 --- a/internal/system/tmpfiles.go +++ b/internal/system/tmpfiles.go @@ -7,8 +7,8 @@ import ( "os" "strconv" - "git.ophivana.moe/security/fortify/acl" - "git.ophivana.moe/security/fortify/internal/fmsg" + "git.gensokyo.uk/security/fortify/acl" + "git.gensokyo.uk/security/fortify/internal/fmsg" ) // CopyFile registers an Op that copies path dst from src. diff --git a/internal/system/tmpfiles_test.go b/internal/system/tmpfiles_test.go index dbbf6be..eb0a295 100644 --- a/internal/system/tmpfiles_test.go +++ b/internal/system/tmpfiles_test.go @@ -4,7 +4,7 @@ import ( "strconv" "testing" - "git.ophivana.moe/security/fortify/acl" + "git.gensokyo.uk/security/fortify/acl" ) func TestCopyFile(t *testing.T) { diff --git a/internal/system/wayland.go b/internal/system/wayland.go index 9394aaa..7c23347 100644 --- a/internal/system/wayland.go +++ b/internal/system/wayland.go @@ -5,9 +5,9 @@ import ( "fmt" "os" - "git.ophivana.moe/security/fortify/acl" - "git.ophivana.moe/security/fortify/internal/fmsg" - "git.ophivana.moe/security/fortify/wl" + "git.gensokyo.uk/security/fortify/acl" + "git.gensokyo.uk/security/fortify/internal/fmsg" + "git.gensokyo.uk/security/fortify/wl" ) // Wayland sets up a wayland socket with a security context attached. diff --git a/internal/system/xhost.go b/internal/system/xhost.go index 3046394..57168b8 100644 --- a/internal/system/xhost.go +++ b/internal/system/xhost.go @@ -3,8 +3,8 @@ package system import ( "fmt" - "git.ophivana.moe/security/fortify/internal/fmsg" - "git.ophivana.moe/security/fortify/xcb" + "git.gensokyo.uk/security/fortify/internal/fmsg" + "git.gensokyo.uk/security/fortify/xcb" ) // ChangeHosts appends an X11 ChangeHosts command Op. diff --git a/ldd/exec.go b/ldd/exec.go index 87b60ce..0c049e7 100644 --- a/ldd/exec.go +++ b/ldd/exec.go @@ -6,8 +6,8 @@ import ( "os/exec" "strings" - "git.ophivana.moe/security/fortify/helper" - "git.ophivana.moe/security/fortify/helper/bwrap" + "git.gensokyo.uk/security/fortify/helper" + "git.gensokyo.uk/security/fortify/helper/bwrap" ) func Exec(p string) ([]*Entry, error) { diff --git a/ldd/ldd_test.go b/ldd/ldd_test.go index 088d708..2b9b274 100644 --- a/ldd/ldd_test.go +++ b/ldd/ldd_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "git.ophivana.moe/security/fortify/ldd" + "git.gensokyo.uk/security/fortify/ldd" ) func TestParseError(t *testing.T) { diff --git a/main.go b/main.go index 65c5a81..cdb13ff 100644 --- a/main.go +++ b/main.go @@ -11,14 +11,14 @@ import ( "sync" "text/tabwriter" - "git.ophivana.moe/security/fortify/dbus" - "git.ophivana.moe/security/fortify/fst" - "git.ophivana.moe/security/fortify/internal" - "git.ophivana.moe/security/fortify/internal/app" - "git.ophivana.moe/security/fortify/internal/fmsg" - "git.ophivana.moe/security/fortify/internal/linux" - "git.ophivana.moe/security/fortify/internal/state" - "git.ophivana.moe/security/fortify/internal/system" + "git.gensokyo.uk/security/fortify/dbus" + "git.gensokyo.uk/security/fortify/fst" + "git.gensokyo.uk/security/fortify/internal" + "git.gensokyo.uk/security/fortify/internal/app" + "git.gensokyo.uk/security/fortify/internal/fmsg" + "git.gensokyo.uk/security/fortify/internal/linux" + "git.gensokyo.uk/security/fortify/internal/state" + "git.gensokyo.uk/security/fortify/internal/system" ) var ( diff --git a/package.nix b/package.nix index 3b84782..78c30af 100644 --- a/package.nix +++ b/package.nix @@ -26,7 +26,7 @@ buildGoModule rec { ldflags ++ [ "-X" - "git.ophivana.moe/security/fortify/internal.${name}=${value}" + "git.gensokyo.uk/security/fortify/internal.${name}=${value}" ] ) [