Set permissions on the internals of all container volumes
This commit is contained in:
parent
ec1732c8ec
commit
292e3dc211
10
kernel.go
10
kernel.go
@ -621,12 +621,20 @@ func genDockerKernels(dii dockerImageInfo, newkcfg *config.KernelConfig,
|
|||||||
}
|
}
|
||||||
newkcfg.Kernels = append(newkcfg.Kernels, ki)
|
newkcfg.Kernels = append(newkcfg.Kernels, ki)
|
||||||
|
|
||||||
cmd := "find /boot -type f -exec chmod 0644 {} \\;"
|
for _, cmd := range []string{
|
||||||
|
"find /boot -type f -exec chmod 0644 {} \\;",
|
||||||
|
"find /boot -type d -exec chmod 0755 {} \\;",
|
||||||
|
"find /usr/src -type f -exec chmod 0644 {} \\;",
|
||||||
|
"find /usr/src -type d -exec chmod 0755 {} \\;",
|
||||||
|
"find /lib/modules -type f -exec chmod 0644 {} \\;",
|
||||||
|
"find /lib/modules -type d -exec chmod 0755 {} \\;",
|
||||||
|
} {
|
||||||
_, err = c.Run("/tmp", cmd)
|
_, err = c.Run("/tmp", cmd)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user