> After installing lsof  pkg, lsof is not working under
> zone ?
> 
> # lsof
> lsof: can't stat(/devices): No such file or
> directory
> 
> some one can help me on that .., why it is not
> working under zone, but it is working in Global zone

lsof is wonderful for the information it provides, and evil for the
way it digs into various places it really shouldn't to get it.

That it doesn't work in a zone is no surprise, as zones purposely don't
provide a lot of things that might let something in them find out about
what's going on outside the zone, or escape from the zone.

That lsof works at all is a minor miracle, a lot of hard work no doubt; but
any kernel patch (and maybe even some non-kernel patches) could break it.

Perhaps there needs to be a legitimate and stable interface to provide all
the info lsof needs, but I have yet to hear of someone working on that.

Until that happens (so the information could be provided only pertaining to
processes associated with a zone, if it was run inside a zone), I wouldn't
expect what you want to work, at least not without configuring the zone
in an unsafe and unsupported way.
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-help mailing list
opensolaris-help@opensolaris.org

Reply via email to