mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
b0eece8d7d
Signed-off-by: Mrunal Patel <mrunalp@gmail.com> (github: mrunalp) Adds sample configuration to test user namespaces. Signed-off-by: Mrunal Patel <mrunalp@gmail.com> (github: mrunalp) Rebases to master. Signed-off-by: Mrunal Patel <mrunalp@gmail.com> (github: mrunalp) Fixes integration tests. Signed-off-by: Mrunal Patel <mrunalp@gmail.com> (github: mrunalp) Move selinux labeling, apparmor profile and restrict kernel files back to init. Signed-off-by: Mrunal Patel <mrunalp@gmail.com> (github: mrunalp) Separate the code paths for userns and default cases. Signed-off-by: Mrunal Patel <mrunalp@gmail.com> (github: mrunalp) tty not required for setup Signed-off-by: Mrunal Patel <mrunalp@gmail.com> (github: mrunalp) Cleanup and address review comments. Signed-off-by: Mrunal Patel <mrunalp@gmail.com> (github: mrunalp) Remove debug logs and other cleanup. Signed-off-by: Mrunal Patel <mrunalp@gmail.com> (github: mrunalp) Use function paramaters for SetupContainer. Signed-off-by: Mrunal Patel <mrunalp@gmail.com> (github: mrunalp)
12 lines
314 B
Go
12 lines
314 B
Go
package namespaces
|
|
|
|
import (
|
|
"os"
|
|
"os/exec"
|
|
|
|
"github.com/docker/libcontainer"
|
|
)
|
|
|
|
type CreateCommand func(container *libcontainer.Config, console, dataPath, init string, childPipe *os.File, args []string) *exec.Cmd
|
|
type SetupCommand func(container *libcontainer.Config, console, dataPath, init string) *exec.Cmd
|