2024-10-11 01:55:33 +09:00
|
|
|
package shim
|
|
|
|
|
|
|
|
import (
|
|
|
|
"git.ophivana.moe/cat/fortify/helper/bwrap"
|
|
|
|
)
|
|
|
|
|
|
|
|
const EnvShim = "FORTIFY_SHIM"
|
|
|
|
|
|
|
|
type Payload struct {
|
|
|
|
// child full argv
|
|
|
|
Argv []string
|
|
|
|
// bwrap, target full exec path
|
|
|
|
Exec [2]string
|
|
|
|
// bwrap config, nil for permissive
|
|
|
|
Bwrap *bwrap.Config
|
2024-10-13 02:43:00 +09:00
|
|
|
// whether to pass wayland fd
|
2024-10-11 01:55:33 +09:00
|
|
|
WL bool
|
|
|
|
|
|
|
|
// verbosity pass through
|
|
|
|
Verbose bool
|
|
|
|
}
|