qubes/vm/mix/net: By default MAC is constant
MAC address was one place, where qid was leaked to the VM. Different MAC addresses are not needed, since we do routing, not switching.
This commit is contained in:
父節點
04cc2099f7
當前提交
29d0baa944
@ -36,11 +36,7 @@ import qubes.exc
|
||||
|
||||
class NetVMMixin(object):
|
||||
mac = qubes.property('mac', type=str,
|
||||
default=(lambda self:
|
||||
self.template.mac if self.hvm
|
||||
and hasattr(self, 'template')
|
||||
and self.template is not None
|
||||
else '00:16:3E:5E:6C:{:02X}'.format(self.qid)),
|
||||
default='00:16:3E:5E:6C:00',
|
||||
ls_width=17,
|
||||
doc='MAC address of the NIC emulated inside VM')
|
||||
|
||||
|
||||
載入中…
新增問題並參考
Block a user