Francesco Romani has posted comments on this change.

Change subject: serial console: add code to prepare the path
......................................................................


Patch Set 4:

(2 comments)

https://gerrit.ovirt.org/#/c/41896/4/vdsm/vmconsole.py
File vdsm/vmconsole.py:

Line 49:     """
Line 50: 
Line 51: 
Line 52: def create_directory(path):
Line 53:     dirname = tempfile.mkdtemp()
> please use:
Done
Line 54: 
Line 55:     os.makedirs(dirname, mode=_VIRT_VMCONSOLE_MODE)
Line 56:     chown(dirname, VDSM_USER, QEMU_PROCESS_GROUP)
Line 57:     selinux.chcon(dirname, _SELINUX_VIRT_VMCONSOLE_LABEL)


Line 89:     mode = stat.S_IMODE(fsinfo.st_mode)
Line 90:     if (mode & mask) != mask:
Line 91:         return False
Line 92: 
Line 93:     return True
> now that I see these checks... it may have side effect that if we ever modi
will simplify the check to ownership and perms. I'll re-add more checks later 
if need arises.


-- 
To view, visit https://gerrit.ovirt.org/41896
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I6f851d7f7233265d33896b3aad5604e84c8af53b
Gerrit-PatchSet: 4
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Francesco Romani <[email protected]>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Michal Skrivanek <[email protected]>
Gerrit-Reviewer: Yaniv Bronhaim <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-HasComments: Yes
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to