Fix file permission on /dev/zfs creation
Fixing typo in constant from 01130 (600) to 0600. Signed-off-by: Šimon Lukašík <slukasik@redhat.com>
This commit is contained in:
parent
8dd8e57819
commit
3cabc9ac3c
|
|
@ -52,7 +52,7 @@ func Init(base string, opt []string, uidMaps, gidMaps []idtools.IDMap) (graphdri
|
||||||
return nil, errors.Wrap(graphdriver.ErrPrerequisites, "the 'zfs' command is not available")
|
return nil, errors.Wrap(graphdriver.ErrPrerequisites, "the 'zfs' command is not available")
|
||||||
}
|
}
|
||||||
|
|
||||||
file, err := os.OpenFile("/dev/zfs", os.O_RDWR, 600)
|
file, err := os.OpenFile("/dev/zfs", os.O_RDWR, 0600)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Debugf("[zfs] cannot open /dev/zfs: %v", err)
|
logrus.Debugf("[zfs] cannot open /dev/zfs: %v", err)
|
||||||
return nil, errors.Wrapf(graphdriver.ErrPrerequisites, "could not open /dev/zfs: %v", err)
|
return nil, errors.Wrapf(graphdriver.ErrPrerequisites, "could not open /dev/zfs: %v", err)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue