Skip to content

Commit

Permalink
Windows: Add initialConsoleSize to process
Browse files Browse the repository at this point in the history
Signed-off-by: John Howard <jhoward@microsoft.com>
  • Loading branch information
John Howard committed Sep 14, 2016
1 parent b3ce195 commit be80d0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 ints, 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.
Expand Down
2 changes: 2 additions & 0 deletions specs-go/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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. (this field is platform dependent)
InitialConsoleSize [2]int `json:"initialConsoleSize" platform:"windows"`
}

// User specifies Linux/Solaris specific user and group information
Expand Down

0 comments on commit be80d0d

Please sign in to comment.