Correct spelling of default.
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
This commit is contained in:
parent
aa8bd16ae7
commit
128aaf6eec
10
spec_unix.go
10
spec_unix.go
@ -25,7 +25,7 @@ var (
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
func defaltCaps() []string {
|
func defaultCaps() []string {
|
||||||
return []string{
|
return []string{
|
||||||
"CAP_CHOWN",
|
"CAP_CHOWN",
|
||||||
"CAP_DAC_OVERRIDE",
|
"CAP_DAC_OVERRIDE",
|
||||||
@ -79,10 +79,10 @@ func createDefaultSpec() (*specs.Spec, error) {
|
|||||||
GID: 0,
|
GID: 0,
|
||||||
},
|
},
|
||||||
Capabilities: &specs.LinuxCapabilities{
|
Capabilities: &specs.LinuxCapabilities{
|
||||||
Bounding: defaltCaps(),
|
Bounding: defaultCaps(),
|
||||||
Permitted: defaltCaps(),
|
Permitted: defaultCaps(),
|
||||||
Inheritable: defaltCaps(),
|
Inheritable: defaultCaps(),
|
||||||
Effective: defaltCaps(),
|
Effective: defaultCaps(),
|
||||||
},
|
},
|
||||||
Rlimits: []specs.POSIXRlimit{
|
Rlimits: []specs.POSIXRlimit{
|
||||||
{
|
{
|
||||||
|
@ -21,7 +21,7 @@ func TestGenerateSpec(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// check for matching caps
|
// check for matching caps
|
||||||
defaults := defaltCaps()
|
defaults := defaultCaps()
|
||||||
for _, cl := range [][]string{
|
for _, cl := range [][]string{
|
||||||
s.Process.Capabilities.Bounding,
|
s.Process.Capabilities.Bounding,
|
||||||
s.Process.Capabilities.Permitted,
|
s.Process.Capabilities.Permitted,
|
||||||
|
Loading…
Reference in New Issue
Block a user