Skip to content
This repository was archived by the owner on May 27, 2023. It is now read-only.

Commit 907cb9a

Browse files
add FAKECHROOT_EXEC_SWITCH patch
1 parent 13c7676 commit 907cb9a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

container/container.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ func Set(id string, tp string, name string, value string) *Error {
775775
}
776776
return nil
777777
default:
778-
err_new := ErrNew(ErrType, "tp should be one of 'add_allow_priv','remove_allow_priv','add_deny_priv','remove_deny_priv','add_map','remove_map'}")
778+
err_new := ErrNew(ErrType, "tp should be one of 'add_exec','remove_exec','add_map','remove_map'")
779779
return err_new
780780
}
781781

@@ -2643,6 +2643,10 @@ func (con *Container) genEnv() (map[string]string, *Error) {
26432643
env["FAKECHROOT_DEBUG"] = "TRUE"
26442644
}
26452645

2646+
if _, fakechroot_exec_switch := con.SettingConf["fakechroot_exec_switch"]; fakechroot_exec_switch {
2647+
env["FAKECHROOT_EXEC_SWITCH"] = "TRUE"
2648+
}
2649+
26462650
if ldso_path, ldso_ok := con.SettingConf["fakechroot_elfloader"]; ldso_ok {
26472651
elfloader_path, err := GuessPathContainer(filepath.Dir(con.RootPath), strings.Split(con.Layers, ":"), ldso_path.(string), true)
26482652
if err != nil {

0 commit comments

Comments
 (0)