Ophestra
9b206072fa
Ensuring home directory in shim causes the directory to be owned by the target user. Signed-off-by: Ophestra <cat@gensokyo.uk>
24 lines
365 B
Go
24 lines
365 B
Go
package shim0
|
|
|
|
import (
|
|
"git.gensokyo.uk/security/fortify/helper/bwrap"
|
|
)
|
|
|
|
const Env = "FORTIFY_SHIM"
|
|
|
|
type Payload struct {
|
|
// child full argv
|
|
Argv []string
|
|
// bwrap, target full exec path
|
|
Exec [2]string
|
|
// bwrap config
|
|
Bwrap *bwrap.Config
|
|
// path to outer home directory
|
|
Home string
|
|
// sync fd
|
|
Sync *uintptr
|
|
|
|
// verbosity pass through
|
|
Verbose bool
|
|
}
|