|
|
@ -161,6 +161,7 @@ func (d *daemonState) launch(p *oz.Profile, pwd string, args, env []string, uid,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (sbox *Sandbox) launchProgram(pwd string, args []string, log *logging.Logger) {
|
|
|
|
func (sbox *Sandbox) launchProgram(pwd string, args []string, log *logging.Logger) {
|
|
|
|
|
|
|
|
if sbox.profile.AllowFiles {
|
|
|
|
for _, fpath := range args {
|
|
|
|
for _, fpath := range args {
|
|
|
|
if _, err := os.Stat(fpath); err == nil {
|
|
|
|
if _, err := os.Stat(fpath); err == nil {
|
|
|
|
if filepath.IsAbs(fpath) == false {
|
|
|
|
if filepath.IsAbs(fpath) == false {
|
|
|
@ -172,6 +173,7 @@ func (sbox *Sandbox) launchProgram(pwd string, args []string, log *logging.Logge
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
err := ozinit.RunProgram(sbox.addr, pwd, args)
|
|
|
|
err := ozinit.RunProgram(sbox.addr, pwd, args)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|