| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
System.LXC.Internal.AttachOptions
- newtype AttachExecFn = AttachExecFn {}
- data AttachEnvPolicy
- fromAttachEnvPolicy :: Num a => AttachEnvPolicy -> a
- data AttachFlag
- fromAttachFlag :: Num a => AttachFlag -> a
- data AttachOptions = AttachOptions {
- attachFlags :: [AttachFlag]
- attachNamespaces :: Int
- attachPersonality :: Maybe Int64
- attachInitialCWD :: Maybe FilePath
- attachUID :: UserID
- attachGID :: GroupID
- attachEnvPolicy :: AttachEnvPolicy
- attachExtraEnvVars :: [String]
- attachExtraKeepEnv :: [String]
- attachStdinFD :: Fd
- attachStdoutFD :: Fd
- attachStderrFD :: Fd
- defaultAttachOptions :: AttachOptions
- data AttachCommand = AttachCommand {
- attachProgram :: String
- attachArgv :: [String]
- withC'lxc_attach_options_t :: AttachOptions -> (Ptr C'lxc_attach_options_t -> IO a) -> IO a
- withC'lxc_attach_command_t :: AttachCommand -> (Ptr C'lxc_attach_command_t -> IO a) -> IO a
- attachRunCommand :: AttachExecFn
- attachRunShell :: AttachExecFn
Documentation
newtype AttachExecFn Source
Constructors
| AttachExecFn | |
Fields | |
data AttachEnvPolicy Source
LXC environment policy.
Constructors
| AttachKeepEnv | Retain the environment. |
| AttachClearEnv | Clear the environment. |
Instances
fromAttachEnvPolicy :: Num a => AttachEnvPolicy -> a Source
data AttachFlag Source
Constructors
| AttachMoveToCGroup | Move to cgroup. On by default. |
| AttachDropCapabilities | Drop capabilities. On by default. |
| AttachSetPersonality | Set personality. On by default |
| AttachLSMExec | Execute under a Linux Security Module. On by default. |
| AttachRemountProcSys | Remount /proc filesystem. Off by default. |
| AttachLSMNow | FIXME: unknown. Off by default. |
| AttachDefault | Mask of flags to apply by default. |
| AttachLSM | All Linux Security Module flags. |
Instances
fromAttachFlag :: Num a => AttachFlag -> a Source
data AttachOptions Source
LXC attach options for attach.
- NOTE: for
stdin,stdoutandstderrdescriptorsdup2()will be used before callingexec_function, (assuming not0,1and2are specified) and the original fds are closed before passing control over. AnyO_CLOEXECflag will be removed after that.
Constructors
| AttachOptions | |
Fields
| |
Instances
defaultAttachOptions :: AttachOptions Source
Default attach options to use.
data AttachCommand Source
Representation of a command to run in a container.
Constructors
| AttachCommand | |
Fields
| |
withC'lxc_attach_options_t :: AttachOptions -> (Ptr C'lxc_attach_options_t -> IO a) -> IO a Source
withC'lxc_attach_command_t :: AttachCommand -> (Ptr C'lxc_attach_command_t -> IO a) -> IO a Source
attachRunCommand :: AttachExecFn Source
Run a command in the container.
attachRunShell :: AttachExecFn Source
Run a shell command in the container.