diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-01-22 12:09:25 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-01-22 12:09:25 +0900 |
| commit | cc1efa22e22c824343540c9af9a9593379138285 (patch) | |
| tree | ab07ba0a91bcbe8d325ccb00dcfc1ac5c30ffb60 /fst | |
| parent | 580128922be2a983192804b7963175b2a0fe2093 (diff) | |
fst: add missing fields to template
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'fst')
| -rw-r--r-- | fst/config.go | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/fst/config.go b/fst/config.go index 72cb2021..9a03e499 100644 --- a/fst/config.go +++ b/fst/config.go @@ -2,6 +2,7 @@ package fst import ( "git.gensokyo.uk/security/fortify/dbus" + "git.gensokyo.uk/security/fortify/helper/bwrap" "git.gensokyo.uk/security/fortify/internal/system" ) @@ -107,9 +108,10 @@ func Template() *Config { Hostname: "localhost", UserNS: true, Net: true, + Dev: true, + Syscall: &bwrap.SyscallPolicy{DenyDevel: true, Multiarch: true}, NoNewSession: true, MapRealUID: true, - Dev: true, DirectWayland: false, // example API credentials pulled from Google Chrome // DO NOT USE THESE IN A REAL BROWSER @@ -123,7 +125,8 @@ func Template() *Config { {Src: "/run/current-system"}, {Src: "/run/opengl-driver"}, {Src: "/var/db/nix-channels"}, - {Src: "/home/chronos", Write: true, Must: true}, + {Src: "/var/lib/fortify/u0/org.chromium.Chromium", + Dst: "/data/data/org.chromium.Chromium", Write: true, Must: true}, {Src: "/dev/dri", Device: true}, }, Link: [][2]string{{"/run/user/65534", "/run/user/150"}}, @@ -131,6 +134,10 @@ func Template() *Config { AutoEtc: true, Override: []string{"/var/run/nscd"}, }, + ExtraPerms: []*ExtraPermConfig{ + {Path: "/var/lib/fortify/u0", Ensure: true, Execute: true}, + {Path: "/var/lib/fortify/u0/org.chromium.Chromium", Read: true, Write: true, Execute: true}, + }, SystemBus: &dbus.Config{ See: nil, Talk: []string{"org.bluez", "org.freedesktop.Avahi", "org.freedesktop.UPower"}, |
