1
0

Do not reset old permissions

This commit is contained in:
dump_stack() 2023-03-23 20:05:29 +00:00
parent 292e3dc211
commit 488d2380e1
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -622,12 +622,12 @@ func genDockerKernels(dii dockerImageInfo, newkcfg *config.KernelConfig,
newkcfg.Kernels = append(newkcfg.Kernels, ki)
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 {} \\;",
"find /boot -type f -exec chmod a+r {} \\;",
"find /boot -type d -exec chmod a+rx {} \\;",
"find /usr/src -type f -exec chmod a+r {} \\;",
"find /usr/src -type d -exec chmod a+rx {} \\;",
"find /lib/modules -type f -exec chmod a+r {} \\;",
"find /lib/modules -type d -exec chmod a+rx {} \\;",
} {
_, err = c.Run("/tmp", cmd)
if err != nil {