helper/bwrap: register generic PermConfig types with gob
test / test (push) Successful in 21s Details

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
Ophestra Umiker 2024-10-25 13:26:01 +09:00
parent 31350d74e5
commit 050ffceb27
Signed by: cat
SSH Key Fingerprint: SHA256:gQ67O0enBZ7UdZypgtspB2FDM1g3GVw8nX0XSdcFw8Q
1 changed files with 6 additions and 0 deletions

View File

@ -1,10 +1,16 @@
package bwrap package bwrap
import ( import (
"encoding/gob"
"os" "os"
"strconv" "strconv"
) )
func init() {
gob.Register(new(PermConfig[SymlinkConfig]))
gob.Register(new(PermConfig[*TmpfsConfig]))
}
type Config struct { type Config struct {
// unshare every namespace we support by default if nil // unshare every namespace we support by default if nil
// (--unshare-all) // (--unshare-all)