diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-10-25 13:26:01 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-10-25 13:26:01 +0900 |
| commit | 050ffceb27acdf54450f2ba874c58c074161456e (patch) | |
| tree | 5db58747d58da041f3af96d43bb70c10e6e92997 | |
| parent | 31350d74e51d25ee8b180a2d4234ea5d4aa55c2b (diff) | |
helper/bwrap: register generic PermConfig types with gob
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
| -rw-r--r-- | helper/bwrap/config.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/helper/bwrap/config.go b/helper/bwrap/config.go index f62cc24e..0aad6de0 100644 --- a/helper/bwrap/config.go +++ b/helper/bwrap/config.go @@ -1,10 +1,16 @@ package bwrap import ( + "encoding/gob" "os" "strconv" ) +func init() { + gob.Register(new(PermConfig[SymlinkConfig])) + gob.Register(new(PermConfig[*TmpfsConfig])) +} + type Config struct { // unshare every namespace we support by default if nil // (--unshare-all) |
