diff --git a/config.md b/config.md index 0a21d654d..aaa282b06 100644 --- a/config.md +++ b/config.md @@ -118,6 +118,10 @@ For more information about SELinux, see [Selinux documentation](http://selinuxp * **`noNewPrivileges`** (bool, optional) setting `noNewPrivileges` to true prevents the processes in the container from gaining additional privileges. [The kernel doc](https://www.kernel.org/doc/Documentation/prctl/no_new_privs.txt) has more information on how this is achieved using a prctl system call. +For Windows-based systems, the process structure supports the following process specific fields: + +* **`initialConsoleSize`** (array of uints, optional) specifies the initial console size (height, width) of the terminal if attached. + ### User The user for the process is a platform-specific structure that allows specific control over which user the process runs as. diff --git a/specs-go/config.go b/specs-go/config.go index de42035f8..23946d92a 100644 --- a/specs-go/config.go +++ b/specs-go/config.go @@ -51,6 +51,8 @@ type Process struct { ApparmorProfile string `json:"apparmorProfile,omitempty" platform:"linux"` // SelinuxLabel specifies the selinux context that the container process is run as. (this field is platform dependent) SelinuxLabel string `json:"selinuxLabel,omitempty" platform:"linux"` + // InitialConsoleSize contains the initial h,w of the console size. + InitialConsoleSize [2]uint `json:"initialConsoleSize" platform:"windows"` } // User specifies Linux/Solaris specific user and group information