OpenSolaris

Printable Version Enter a New Search
Bug ID 6558487
Synopsis zlogin should not call getpwnam() after zone_enter() during non-interactive zlogin -l
State 10-Fix Delivered (Fix available in build)
Category:Subcategory utility:zones
Keywords
Responsible Engineer Stephen Lawrence
Reported Against
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_66
Fixed In snv_66
Release Fixed solaris_nevada(snv_66) , solaris_10u5(s10u5_01) (Bug ID:2151496)
Related Bugs 6409350 , 6463803 , 6561300
Submit Date 17-May-2007
Last Update Date 7-June-2007
Description
When doing:
   zlogin -l <username> <cmd>,

zlogin does the following:
	zone_enter()
	getpwnam()

The call to getpwnam() is used to set up the environment of the target user (HOME, SHELL)
correctly.  In the case of a native zone, this is fine, but in the case of a branded zone, which may have a different libc or name service libraries, it is not ok to make library calls after zone_enter().
Work Around
N/A
Comments
N/A