Commit Graph

954 Commits

Author SHA1 Message Date
Ma Shimiao ec2bb61aad config.md: fix broken links
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
2017-03-13 17:47:08 +08:00
Vincent Batts 55e1a84c1f Merge pull request #720 from Mashimiao/config-linux-fix-namespace-path
config-linux.md: clearly require absolute path for namespace
2017-03-10 18:06:17 -05:00
Mrunal Patel 76159da8ca Merge pull request #630 from xiaochenshen/rdt-cat-resctrl-cgroup-v1
specs-go/config: add Intel RDT/CAT Linux support
2017-03-10 09:41:16 -08:00
Michael Crosby 6bfef10d91 Merge pull request #714 from q384566678/seccomp-commits
remove comment
2017-03-10 09:07:37 -08:00
Xiaochen Shen 73a6002bf3 specs-go/config: add Intel RDT/CAT Linux support
Add support for Intel Resource Director Technology (RDT) / Cache Allocation
Technology (CAT). Add L3 cache resource constraints in Linux-specific
configuration.

This is the prerequisite of this runc proposal:
https://github.com/opencontainers/runc/issues/433

For more information about Intel RDT/CAT, please refer to:
https://github.com/opencontainers/runc/issues/433

Signed-off-by: Xiaochen Shen <xiaochen.shen@intel.com>
2017-03-10 17:29:08 +08:00
Ma Shimiao 72cbff6786 config-linux.md: clearly require absolute path for namespace
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
2017-03-10 12:00:16 +08:00
zhouhao 90427c9345 remove comment
Signed-off-by: zhouhao <zhouhao@cn.fujitsu.com>
2017-03-10 09:19:28 +08:00
Mrunal Patel 71afb411fe Merge pull request #712 from wking/seccomp-json-schema-names
schema/defs-linux: Fix type for seccomp names
2017-03-09 09:56:45 -08:00
Vincent Batts ce9db858d8 Merge pull request #718 from wking/v1.0.0-rc5-change-log
ChangeLog: Document changes since v1.0.0-rc4
2017-03-09 09:23:23 -05:00
Vincent Batts c4c73619c7 Merge pull request #710 from vbatts/bump-version
Bump version
2017-03-08 18:05:59 -05:00
Daniel, Dao Quang Minh dd41d8ffd6 Merge pull request #711 from wking/example-cap-json-typo
config: Remove trailing comma in CAP_KILL examples
2017-03-08 15:49:58 +00:00
Daniel, Dao Quang Minh 92f492493d Merge pull request #709 from wking/style-link-markup
style: Backtick `DOC_FILES`, `_N`, and `N`.
2017-03-08 15:49:03 +00:00
Qiang Huang f82df753f9 Merge pull request #708 from wking/backtick-cleanup
config-solaris: Fix "VNIC`s" -> "VNIC's" typo
2017-03-07 21:42:20 -06:00
Tianon Gravi 5f869f9b7e Merge pull request #717 from crosbymichael/remove-alex
Remove lk4d4 as maintainer
2017-03-07 14:00:09 -08:00
Michael Crosby dd494461ea Remove lk4d4 as maintainer
Closes #715

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-03-07 13:14:22 -08:00
W. Trevor King 5bf9b95c45 schema/defs-linux: Fix type for seccomp names
The:

  "type": [
    "string"
  ]

syntax added in 652323cd (improve seccomp format to be more
expressive, 2017-01-13, #657) is not valid:

  $ ./validate ./config-schema.json <../config.json
  The document is not valid. see errors :
  - linux.seccomp.syscalls.0.names: Invalid type. Expected: string, given: array

Signed-off-by: W. Trevor King <wking@tremily.us>
2017-03-06 12:15:47 -08:00
W. Trevor King 379360d1c7 config: Remove trailing comma in CAP_KILL examples
Fix a JSON typo which snuck in with eb114f05 (Add ambient and bounding
capability support, 2017-02-02, #675).

Signed-off-by: W. Trevor King <wking@tremily.us>
2017-03-06 12:12:41 -08:00
W. Trevor King 37391fb66f ChangeLog: Document changes since v1.0.0-rc4
Through d87ec69 (Merge pull request #687 from
jlbutler/link-cleanup-676, 2017-03-03).

Signed-off-by: W. Trevor King <wking@tremily.us>
2017-03-06 11:33:09 -08:00
Vincent Batts 8713ba1087
version: put this branch back to -dev
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2017-03-06 13:05:00 -05:00
Vincent Batts 035da1dca3
version: release v1.0.0-rc5
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2017-03-06 13:04:28 -05:00
W. Trevor King c089e7c1ec style: Backtick `DOC_FILES`, `_N`, and `N`.
These are literal quotes, and we don't want Markdown to confuse the
underscores with emphasis delimiters [1].

[1]: http://daringfireball.net/projects/markdown/syntax#em

Signed-off-by: W. Trevor King <wking@tremily.us>
2017-03-03 12:28:16 -08:00
W. Trevor King a4d7f0eff3 config-solaris: Fix "VNIC`s" -> "VNIC's" typo
Unwind an overly-aggressive backtick replacement from f9dc90b0 (make
link usage consistent across the specification, 2017-02-09, #687).

Signed-off-by: W. Trevor King <wking@tremily.us>
2017-03-03 12:22:30 -08:00
Michael Crosby d87ec6945f Merge pull request #687 from jlbutler/link-cleanup-676
make link usage consistent across the specification
2017-03-03 11:50:37 -08:00
Jesse Butler f9dc90b05a make link usage consistent across the specification
Signed-off-by: Jesse Butler <jesse.butler@oracle.com>
2017-03-03 14:43:09 -05:00
Mrunal Patel f47e43c643 Merge pull request #705 from q384566678/test-seecomp
Add new architectures from libseccomp 2.3.2
2017-03-03 11:36:27 -08:00
Michael Crosby 7da699dcda Merge pull request #532 from wking/tk/restore-hook-lifecycle
Restore hook language removed by create/start split
2017-03-03 10:36:20 -08:00
W. Trevor King f636808bfd *: Restore hook lifecycle information removed by create/start split
I expect the lifecycle information was removed accidentally in
be594153 (Split create and start, 2016-04-01, #384), because for a
time it seemed like that PR would also be removing hooks.  Putting the
lifecycle information back in, I made some tweaks to adjust to the new
environment, for example:

* Put the pre-start hooks after the 'start' call, but before the meat
  of the start call (the container-process exec trigger).  Folks who
  want a post-create hook can add one with that name.  I'd like to
  have renamed poststop to post-delete to avoid confusion like [1].
  But the motivation for keeping hooks was backwards compatibility [2]
  so I've left the name alone.

* Put each "...command is invoked..." lifecycle entry in its own list
  entry, to match the 'create' list entry.

* Move the rules about what happens on hook failure into the
  lifecycle.  This matches pre-split entries like:

    If any prestart hook fails, then the container MUST be stopped and
    the lifecycle continues at step 7.

  and avoids respecifying that information in a second location
  (config.md).

* I added the warning section to try and follow post-split's generic
  "generates an error" approach while respecting the pre-split desire
  to see what failed (we had "then an error including the exit code
  and the stderr is returned to the caller" and "then an error is
  logged").

* I left the state 'id' context out, since Michael didn't want it [3].

* Make runtime.md references to "generate an error" and "log a
  warning" links, so readers have an easier time finding more detail
  on that wording.

Where I reference a section, I'm still using the auto-generated anchor
for that header and not the anchors which were added in 41839d7 (Merge
pull request #707 from mrunalp/anchor_tags, 2017-03-03) and similar.
Mrunal suggested that the manually-added anchors were mainly intended
for the validation tooling [4].

[1]: https://github.com/opencontainers/runtime-spec/pull/395
     Subject: Run post-stop hooks before the container sandbox is deleted.
[2]: https://github.com/opencontainers/runtime-spec/pull/483#issuecomment-240568422
     Subject: *: Remove hooks
[3]: https://github.com/opencontainers/runtime-spec/pull/532#discussion_r99232480
     Subject: Restore hook language removed by create/start split
[4]: http://ircbot.wl.linuxfoundation.org/eavesdrop/%23opencontainers/%23opencontainers.2017-03-03.log.html#t2017-03-03T18:02:12

Signed-off-by: W. Trevor King <wking@tremily.us>
2017-03-03 10:04:23 -08:00
Michael Crosby 41839d7f95 Merge pull request #707 from mrunalp/anchor_tags
Anchor tags
2017-03-03 09:38:08 -08:00
Mrunal Patel c942816d76 Add anchors to misc. docs
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2017-03-02 11:01:18 -08:00
Mrunal Patel 4b0755490e Add anchors to runtime
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2017-03-02 11:00:53 -08:00
Mrunal Patel d01ef9a806 Add anchors to config and config linux
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2017-03-02 11:00:31 -08:00
zhouhao 513ab686e9 Add new architectures from libseccomp 2.3.2
Signed-off-by: zhouhao <zhouhao@cn.fujitsu.com>
2017-03-02 14:33:06 +08:00
Mrunal Patel 40474dd78c Merge pull request #704 from hqhq/use_uint64_for_memory
Set specs value the same as kernel API input
2017-03-01 14:05:37 -08:00
Qiang Huang 2db839104d Merge pull request #699 from crosbymichael/mount-optional
Make mount type and source optional
2017-02-28 20:05:03 -08:00
Qiang Huang ec9449187b Set specs value the same as kernel API input
This partially revert #648 , after a second thought, I think we
should use specs value the same as kernel API input, see:
https://github.com/opencontainers/runtime-spec/issues/692#issuecomment-281889852

For memory and hugetlb limits *.limit_in_bytes, cgroup APIs take the values
as string, but the parsed values are unsigned long, see:
https://github.com/torvalds/linux/blob/v4.10/mm/page_counter.c#L175-L193

For `cpu.cfs_quota_us` and `cpu.rt_runtime_us`, cgroup APIs take the input
value as signed long long, while `cpu.cfs_period_us` and `cpu.rt_periof_us`
take the input value as unsigned long long.

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
2017-03-01 09:10:43 +08:00
Michael Crosby 52461516ea Make mount type and source optional
These are optional on multiple platforms and should be left up to the
runtime/host system for validation.

Closes #470

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-02-28 13:50:18 -08:00
Mrunal Patel 2d491b03fa Merge pull request #694 from q384566678/state-json
state-schema.json: add the value of status
2017-02-27 11:19:26 -08:00
Mrunal Patel fb76f47bf4 Merge pull request #696 from q384566678/json-fix
Fix config-schema.json
2017-02-27 11:19:04 -08:00
Mrunal Patel 18965b08af Merge pull request #697 from q384566678/config-linux-fix
config-linux.md: fix info
2017-02-27 11:17:45 -08:00
Michael Crosby 472cdae2de Merge pull request #695 from q384566678/config-fix
add REQUIRED to platform field
2017-02-27 11:03:24 -08:00
zhouhao 5a470213e7 config-linux.md: fix info
Signed-off-by: zhouhao <zhouhao@cn.fujitsu.com>
2017-02-27 16:07:52 +08:00
zhouhao ec49ba1ada remove mounts from required
Signed-off-by: zhouhao <zhouhao@cn.fujitsu.com>
2017-02-27 09:29:01 +08:00
zhouhao 0a8ef1d7b5 config-schema.json: add required
Signed-off-by: zhouhao <zhouhao@cn.fujitsu.com>
2017-02-27 09:27:04 +08:00
Mrunal Patel ae7a541930 Merge pull request #657 from GrantSeltzer/improve-seccomp-spec
config: Improve seccomp format to be more expressive
2017-02-24 18:59:49 -08:00
zhouhao 5dda457654 add REQUIRED to platform field
Signed-off-by: zhouhao <zhouhao@cn.fujitsu.com>
2017-02-24 14:05:33 +08:00
zhouhao 7ec622e5c3 state-schema.json: add the value of status
Signed-off-by: zhouhao <zhouhao@cn.fujitsu.com>
2017-02-24 13:33:54 +08:00
grantseltzer 652323cd77 improve seccomp format to be more expressive
Signed-off-by: grantseltzer <grantseltzer@gmail.com>
2017-02-22 18:17:16 -05:00
Michael Crosby 3f5078dab0 Merge pull request #693 from hqhq/dont_limit_mapping
Remove uid/gid mapping limit depend on kernel
2017-02-22 15:00:00 -08:00
Mrunal Patel ac9f8e0b5f Merge pull request #675 from crosbymichael/caps
Add ambient and bounding capability support
2017-02-22 14:59:11 -08:00
Michael Crosby eb114f0570 Add ambient and bounding capability support
Closes #668

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-02-22 14:47:51 -08:00