Wee Yeh Tan writes:
> AFAIK, no.  Ideas previously thrown up includes having the global zone
> place this information in the local zone's filesystem.
> 
> E.g.
> # zoneadm -z <myzone> boot
> # echo Global Zone: `hostname` since `date` > `zonecfg -z phd-corner-z
> info zonepath | cut -f2 -d' '`/root/etc/globalzone_info

I would not recommend modifying the file system from the global zone.
This provides a way for a malicious zone administrator to trash the
global zone -- for example, by changing that file to be a symlink to
/kernel/genunix.

Instead, enter the zone and modify the file there.  Something like
this:

# echo Global Zone: `hostname` since `date` | zlogin phd-corner-z \
        'cat > /etc/globalzone_info'

Plus, it's easier.

-- 
James Carlson, Solaris Networking              <[EMAIL PROTECTED]>
Sun Microsystems / 1 Network Drive         71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to