qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [Qemu/Virtio-scsi]The feature of 'raw device mapping' cannot isolate the LUN to the owning virtual machine
@ 2014-01-27  2:50 Qixiaozhen
  2014-01-27 11:35 ` Paolo Bonzini
  2014-01-27 14:06 ` Stefan Hajnoczi
  0 siblings, 2 replies; 6+ messages in thread
From: Qixiaozhen @ 2014-01-27  2:50 UTC (permalink / raw)
  To: qemu-devel@nongnu.org; +Cc: Luohao (brian), Xujunxi


[-- Attachment #1.1: Type: text/plain, Size: 1989 bytes --]

Hi,all

A instance was created by virsh command in the CentOS 6.4.

The LUN in the Storage Array Network(SAN) was attached to the instance with the following xml.

    <disk type='block' device='lun'>
      <driver name='qemu' type='raw' cache='none'/>
      <source dev='/dev/mapper/360022a110000ecba5db427db00000023'/>
      <target dev='vdb' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
</disk>
<controller type='scsi' model='virtio-scsi'/>


A scsi report command was executed in the instance, for example "sg_luns /dev/vdb". However, It returned the list of the Luns in the SAN.


1)       The unrelated luns in the SAN were not isolated in the instance.
[root@localhost ~]# sg_luns /dev/vdb
Lun list length = 80 which imples 10 lun entries
Report luns [select_report=0]:
    0000000000000000
   0001000000000000
    0002000000000000
    0003000000000000
    0004000000000000
    0005000000000000
    0006000000000000
    0007000000000000
    0008000000000000
    0009000000000000
[root@localhost ~]#sg_map
Stopping because no sg device found
[root@localhost ~]#
[root@localhost ~]#

[cid:image009.png@01CF1B49.A36DAC30]


2)       The report lun command in the physical server:

[root@qixiaozhen sdb]# sg_luns /dev/mapper/360022a110000ecba5db427db00000023
Lun list length = 80 which imples 10 lun entries
Report luns [select_report=0x0]:
    0000000000000000
    0001000000000000
    0002000000000000
    0003000000000000
    0004000000000000
    0005000000000000
    0006000000000000
    0007000000000000
    0008000000000000
    0009000000000000
[root@qixiaozhen sdb]#


Is there any security problem if the report lun command was not isolated ?

Sincerely,

Qi

-----------------------------------------------------------
Xiaozhen Qi
Huawei Technologies Co.,LTD.
IT Product Line CloudOS PDU
China, Xi'an
Mobile: +86-13609283376
Email: qixiaozhen@huawei.com

[-- Attachment #1.2: Type: text/html, Size: 12353 bytes --]

[-- Attachment #2: image009.png --]
[-- Type: image/png, Size: 22043 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-01-28  1:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-27  2:50 [Qemu-devel] [Qemu/Virtio-scsi]The feature of 'raw device mapping' cannot isolate the LUN to the owning virtual machine Qixiaozhen
2014-01-27 11:35 ` Paolo Bonzini
2014-01-27 12:22   ` Qixiaozhen
2014-01-27 12:42     ` Paolo Bonzini
2014-01-27 14:06 ` Stefan Hajnoczi
2014-01-28  1:28   ` Qixiaozhen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).