hey mark,
this is a long standing (4 year old) bug:
        4964815 Unable to burn CD's inside a non-global zone

i just did some quick testing and i think the crux of the problem is
that to burn cds, both cdrw and cdrecord need to issue uscsi commands,
which currently requires the sys_devices privilege.  but this privilege
can not be added to zones for security reasons.  (the framework will
prevent you from adding this via zonecfg, you could hack around this by
editing the zone config.xml file, but i wouldn't recommend doing this.)

what needs to happen to really support this functionality is that the
uscsi command space needs to be broken up into safe operations that can
be granted to zones via a new privilege.  currently, we don't have
staffing to work on this (although this issue has been discussed in our
long term zones storage road map).

ed

On Tue, Nov 25, 2008 at 03:09:11PM +0000, Mark Whittaker wrote:
> Hi All,
>
> is it possble to use cdrw or cdrecord to burn a cd/dvd in a non-global zone.
>
> I've tried:
>
>  "add device match=/dev/dsk/c0t1d0s*"
>  "add device match=/dev/rdsk/c0t1d0s*"
>  "add device match=/dev/*"     (added as a last resort ...)
>
> via zonecfg, and confirmed that the same /dev/*dsk/c0t1d0s* devices are
> created in the zone (after a zone reboot).
>
> However, "cdrw -l" & "cdrecord -scanbus" both fail (cdrw returns nothing and
> cdrecord hangs).
> Both work fine in the global zone.
>
> Does anyone know if this is possible (cd/dvd burning in a zone) and what the
> steps/devices/privileges are required ?
>
> Thanks
>
> Mark.
>
> ====
>
> Details:
>   Solaris 10x86 Update 6
>   Sparse Root Zone
>
>
> *global#* cdrw -l
> Looking for CD devices...
>     Node                   Connected Device                Device type
> ----------------------+--------------------------------+-----------------
>  /dev/rdsk/c0t0d0s2   | HL-DT-ST DVD-ROM GDR8164B 0D08 | CD Reader
>  /dev/rdsk/c0t1d0s2   | _NEC     DVD_RW ND-3500AG 2.19 | CD Reader/Writer
>
> *global#* cdrecord -scanbus
> Cdrecord-Clone 2.01 (i386-pc-solaris2.10) Copyright (C) 1995-2004 Jörg
> Schilling
> Warning: Using USCSI interface.
> Using libscg version 'schily-0.8'.
> scsibus0:
>         0,0,0     0) 'HL-DT-ST' 'DVD-ROM GDR8164B' '0D08' Removable CD-ROM
>         0,1,0     1) '_NEC    ' 'DVD_RW ND-3500AG' '2.19' Removable CD-ROM
>         0,2,0     2) *
>         0,3,0     3) *
>         0,4,0     4) *
>         0,5,0     5) *
>         0,6,0     6) *
>         0,7,0     7) *
>
>
>
>
> *zone#* cdrw -l
> Looking for CD devices...
> No CD writers found.
>
> *zone#* cdrecord -scanbus
> Cdrecord-Clone 2.01 (i386-pc-solaris2.10) Copyright (C) 1995-2004 Jörg
> Schilling
> Warning: Using USCSI interface.
> Using libscg version 'schily-0.8'.
> scsibus0:
>     0,0,0      0) *
>
> <HANG>
>
> *zone#* find /dev
> /dev
> /dev/.devfsadm_synch_door
> /dev/ttyp1
> /dev/poll
> /dev/ttya
> /dev/power_button
> /dev/ptyq0
> /dev/ptmajor
> /dev/msglog
> /dev/systty
> /dev/dtremote
> /dev/ttyqb
> /dev/tcp6
> /dev/ptyr2
> /dev/kmem
> /dev/cpu
> /dev/cpu/self
> /dev/cpu/self/cpuid
> /dev/ipstate
> /dev/ptypc
> /dev/ptyr8
> /dev/ppm
> /dev/ttyq8
> /dev/arp
> /dev/ttyq2
> /dev/ptyp9
> /dev/ptyrb
> /dev/ptyp3
> /dev/ttypa
> /dev/ttyr0
> /dev/spdsock
> /dev/ipf
> /dev/rdsk
> /dev/rdsk/c0t1d0s9
> /dev/rdsk/c0t1d0s3
> /dev/rdsk/c0t1d0s13
> /dev/rdsk/c0t1d0s14
> /dev/rdsk/c0t1d0s4
> /dev/rdsk/c0t1d0s0
> /dev/rdsk/c0t1d0s10
> /dev/rdsk/c0t1d0s7
> /dev/rdsk/c0t1d0s15
> /dev/rdsk/c0t1d0s5
> /dev/rdsk/c0t1d0s2
> /dev/rdsk/c0t1d0s8
> /dev/rdsk/c0t1d0s12
> /dev/rdsk/c0t1d0s6
> /dev/rdsk/c0t1d0s1
> /dev/rdsk/c0t1d0s11
> /dev/ipl
> /dev/kbd
> /dev/sppp
> /dev/ttypf
> /dev/ttyr7
> /dev/ipscan
> /dev/rawip
> /dev/ptyre
> /dev/ptyp4
> /dev/mouse
> /dev/tty
> /dev/null
> /dev/urandom
> /dev/ttyq5
> /dev/ptyr5
> /dev/tty00
> /dev/ptypd
> /dev/crypto
> /dev/ttyqe
> /dev/sppptun
> /dev/ptyq7
> /dev/ip6
> /dev/openprom
> /dev/ttyp6
> /dev/ipauth
> /dev/ptyq9
> /dev/ptyq3
> /dev/tnfmap
> /dev/random
> /dev/zconsole
> /dev/ttyp8
> /dev/ttyrc
> /dev/agpgart
> /dev/ttyp2
> /dev/zfs
> /dev/dsk
> /dev/dsk/c0t1d0s7
> /dev/dsk/c0t1d0s0
> /dev/dsk/c0t1d0s10
> /dev/dsk/c0t1d0s14
> /dev/dsk/c0t1d0s4
> /dev/dsk/c0t1d0s9
> /dev/dsk/c0t1d0s3
> /dev/dsk/c0t1d0s13
> /dev/dsk/c0t1d0s11
> /dev/dsk/c0t1d0s1
> /dev/dsk/c0t1d0s6
> /dev/dsk/c0t1d0s12
> /dev/dsk/c0t1d0s2
> /dev/dsk/c0t1d0s8
> /dev/dsk/c0t1d0s5
> /dev/dsk/c0t1d0s15
> /dev/ptyr1
> /dev/ticotsord
> /dev/icmp6
> /dev/ttyqa
> /dev/ptyp0
> /dev/ptyra
> /dev/ttyd0
> /dev/ttyq1
> /dev/vt00
> /dev/ptyqc
> /dev/.devfsadm_dev.lock
> /dev/log
> /dev/ttyr3
> /dev/fssnapctl
> /dev/dump
> /dev/keysock
> /dev/ttypb
> /dev/ttyr9
> /dev/sad
> /dev/sad/user
> /dev/ttyr4
> /dev/ttype
> /dev/ptyqd
> /dev/stdout
> /dev/ttyq6
> /dev/ptyp7
> /dev/ptyrf
> /dev/sctp
> /dev/udp
> /dev/ttyqf
> /dev/tcp
> /dev/ptyr6
> /dev/ttyrd
> /dev/ttyp5
> /dev/nca
> /dev/poolctl
> /dev/ptyq4
> /dev/vboxdrv
> /dev/ptype
> /dev/cryptoadm
> /dev/ptyr4
> /dev/ipnat
> /dev/ttyqd
> /dev/conslog
> /dev/bl
> /dev/term
> /dev/ptyq6
> /dev/rds
> /dev/lofictl
> /dev/icmp
> /dev/ttyrf
> /dev/.devlink_db
> /dev/sctp6
> /dev/ttyp7
> /dev/kmdb
> /dev/rsm
> /dev/ptyqf
> /dev/ttyr6
> /dev/ip
> /dev/ucode
> /dev/ramdiskctl
> /dev/logindmux
> /dev/ksyms
> /dev/ptyp5
> /dev/ce
> /dev/ptyrd
> /dev/sysevent
> /dev/ttyq4
> /dev/llc1
> /dev/ttyq3
> /dev/ticots
> /dev/ttyq9
> /dev/volctl
> /dev/ptyp2
> /dev/smbios
> /dev/ptyp8
> /dev/ptyrc
> /dev/ttyr1
> /dev/rts
> /dev/ipsecah
> /dev/udp6
> /dev/winlock
> /dev/ptmx
> /dev/ptyqa
> /dev/ttyra
> /dev/vni
> /dev/sysmsg
> /dev/pm
> /dev/ttyp0
> /dev/ptyq1
> /dev/ttyqc
> /dev/cua0
> /dev/lockstat
> /dev/ptypb
> /dev/ptyr9
> /dev/fd
> /dev/fd/0
> /dev/fd/1
> /dev/fd/2
> /dev/fd/3
> /dev/fd/4
> /dev/fd/5
> /dev/fd/6
> /dev/fd/7
> /dev/fd/8
> /dev/fd/9
> /dev/fd/10
> /dev/fd/11
> /dev/fd/12
> /dev/fd/13
> /dev/fd/14
> /dev/fd/15
> /dev/fd/16
> /dev/fd/17
> /dev/fd/18
> /dev/fd/19
> /dev/fd/20
> /dev/fd/21
> /dev/fd/22
> /dev/fd/23
> /dev/fd/24
> /dev/fd/25
> /dev/fd/26
> /dev/fd/27
> /dev/fd/28
> /dev/fd/29
> /dev/fd/30
> /dev/fd/31
> /dev/fd/32
> /dev/fd/33
> /dev/fd/34
> /dev/fd/35
> /dev/fd/36
> /dev/fd/37
> /dev/fd/38
> /dev/fd/39
> /dev/fd/40
> /dev/fd/41
> /dev/fd/42
> /dev/fd/43
> /dev/fd/44
> /dev/fd/45
> /dev/fd/46
> /dev/fd/47
> /dev/fd/48
> /dev/fd/49
> /dev/fd/50
> /dev/fd/51
> /dev/fd/52
> /dev/fd/53
> /dev/fd/54
> /dev/fd/55
> /dev/fd/56
> /dev/fd/57
> /dev/fd/58
> /dev/fd/59
> /dev/fd/60
> /dev/fd/61
> /dev/fd/62
> /dev/fd/63
> /dev/fd/64
> /dev/fd/65
> /dev/fd/66
> /dev/fd/67
> /dev/fd/68
> /dev/fd/69
> /dev/fd/70
> /dev/fd/71
> /dev/fd/72
> /dev/fd/73
> /dev/fd/74
> /dev/fd/75
> /dev/fd/76
> /dev/fd/77
> /dev/fd/78
> /dev/fd/79
> /dev/fd/80
> /dev/fd/81
> /dev/fd/82
> /dev/fd/83
> /dev/fd/84
> /dev/fd/85
> /dev/fd/86
> /dev/fd/87
> /dev/fd/88
> /dev/fd/89
> /dev/fd/90
> /dev/fd/91
> /dev/fd/92
> /dev/fd/93
> /dev/fd/94
> /dev/fd/95
> /dev/fd/96
> /dev/fd/97
> /dev/fd/98
> /dev/fd/99
> /dev/fd/100
> /dev/fd/101
> /dev/fd/102
> /dev/fd/103
> /dev/fd/104
> /dev/fd/105
> /dev/fd/106
> /dev/fd/107
> /dev/fd/108
> /dev/fd/109
> /dev/fd/110
> /dev/fd/111
> /dev/fd/112
> /dev/fd/113
> /dev/fd/114
> /dev/fd/115
> /dev/fd/116
> /dev/fd/117
> /dev/fd/118
> /dev/fd/119
> /dev/fd/120
> /dev/fd/121
> /dev/fd/122
> /dev/fd/123
> /dev/fd/124
> /dev/fd/125
> /dev/fd/126
> /dev/ptyr3
> /dev/ptyr7
> /dev/ptypf
> /dev/ttyp4
> /dev/kssl
> /dev/ttyre
> /dev/stdin
> /dev/ptyq5
> /dev/console
> /dev/stderr
> /dev/ttypd
> /dev/ttyr5
> /dev/pts
> /dev/pts/12
> /dev/pts/18
> /dev/pts/0
> /dev/pts/20
> /dev/pts/57
> /dev/pts/39
> /dev/pts/33
> /dev/pts/44
> /dev/pts/49
> /dev/pts/43
> /dev/pts/34
> /dev/pts/50
> /dev/pts/27
> /dev/pts/7
> /dev/pts/15
> /dev/pts/62
> /dev/pts/9
> /dev/pts/3
> /dev/pts/11
> /dev/pts/29
> /dev/pts/54
> /dev/pts/23
> /dev/pts/47
> /dev/pts/30
> /dev/pts/37
> /dev/pts/40
> /dev/pts/59
> /dev/pts/24
> /dev/pts/53
> /dev/pts/61
> /dev/pts/16
> /dev/pts/4
> /dev/pts/26
> /dev/pts/51
> /dev/pts/6
> /dev/pts/63
> /dev/pts/14
> /dev/pts/35
> /dev/pts/42
> /dev/pts/48
> /dev/pts/45
> /dev/pts/32
> /dev/pts/38
> /dev/pts/19
> /dev/pts/13
> /dev/pts/64
> /dev/pts/1
> /dev/pts/56
> /dev/pts/21
> /dev/pts/52
> /dev/pts/25
> /dev/pts/58
> /dev/pts/17
> /dev/pts/60
> /dev/pts/5
> /dev/pts/41
> /dev/pts/36
> /dev/pts/31
> /dev/pts/46
> /dev/pts/2
> /dev/pts/8
> /dev/pts/10
> /dev/pts/22
> /dev/pts/55
> /dev/pts/28
> /dev/ptyqe
> /dev/ipsecesp
> /dev/mem
> /dev/llc2
> /dev/wscons
> /dev/ttyq7
> /dev/kstat
> /dev/zero
> /dev/.devlink_db_lock
> /dev/ptyp6
> /dev/physmem
> /dev/ticlts
> /dev/ptyp1
> /dev/dtrace
> /dev/dtrace/dtrace
> /dev/dtrace/helper
> /dev/dtrace/provider
> /dev/dtrace/provider/lockstat
> /dev/dtrace/provider/systrace
> /dev/dtrace/provider/fbt
> /dev/dtrace/provider/lx_systrace
> /dev/dtrace/provider/profile
> /dev/dtrace/provider/sdt
> /dev/dtrace/provider/fasttrap
> /dev/ttyq0
> /dev/ptyqb
> /dev/fb0
> /dev/syscon
> /dev/swap
> /dev/ttypc
> /dev/ttyr8
> /dev/ttyr2
> /dev/iplookup
> /dev/tnfctl
> /dev/ptyq2
> /dev/sdp
> /dev/ptyq8
> /dev/rmt
> /dev/ttyp3
> /dev/ipsync
> /dev/rawip6
> /dev/ttyp9
> /dev/ttyrb
> /dev/ptyr0
> /dev/ptypa
> /dev/pool
> /dev/allkmem
> /dev/xsvc

> _______________________________________________
> zones-discuss mailing list
> zones-discuss@opensolaris.org

_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to