1
0

Set permissions on the internals of all container volumes

This commit is contained in:
dump_stack() 2023-03-23 19:18:14 +00:00
parent ec1732c8ec
commit 292e3dc211
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -621,12 +621,20 @@ func genDockerKernels(dii dockerImageInfo, newkcfg *config.KernelConfig,
}
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)
if err != nil {
return
}
}
}
return
}