提交 56608e41 编写于 作者: Z Zak B. Elep 提交者: dlorenc

kvm2: Set group executable bit on machine-specific directory and up

Ensure that the directories leading to the KVM image have enough
permission for libvirt/QEMU to traverse, especially in the case where
libvirt/QEMU group is set to to `kvm`/`users`.
上级 85ca57a5
......@@ -269,9 +269,9 @@ func (d *Driver) Create() error {
return err
}
mode := info.Mode()
if mode&0001 != 1 {
if mode&0011 != 1 {
log.Debugf("Setting executable bit set on %s", dir)
mode |= 0001
mode |= 0011
os.Chmod(dir, mode)
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册