Re: RFC: top displays jail id




On Mon, 16 Apr 2007, LI Xin wrote:

Julian Elischer wrote:
[...]
how about ONLY showing processes in a particular jail?

What about just 'jexec N top'? :-) Currently top(1) has no ability to attach particular jail to do things like obtaining usernames from within a jail. Personally I think the jexec approach is more useful because it can reveal usernames within the jail.

Be aware that if you run the jail's version of top inside the jail, then the output of top can be controlled by processes in the jail. Running top from outside the jail limits the ways in which processes inside jail can manipulate the monitoring tool.

Robert N M Watson
Computer Laboratory
University of Cambridge
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: RFC: top displays jail id
    ... What about just 'jexec N top'? ... Currently tophas no ability to attach particular jail to do things ... like obtaining usernames from within a jail. ...
    (freebsd-current)
  • Re: Jails in -CURRENT
    ... > I am also wondering about a useful integration of jls and jexec. ... > which is running in this jail, ... > it here for next steps leading to more documentation and new tools. ...
    (freebsd-current)
  • Re: jlogin.sh - a small nice jails helper!
    ... matches a jailname and do a jexec JAILPID SHELL ... echo "Logging in to $jRealName" ... echo "No such jail name $!" ... script assume first part of a hostname as name, but in the rc.conf jail name can be different ...
    (freebsd-stable)
  • Re: RFC: top displays jail id
    ... What about just 'jexec N top'? ... Currently tophas no ability to attach particular jail to do things ... like obtaining usernames from within a jail. ...
    (freebsd-current)
  • RE: jail and networking
    ... I dont seem to get net working in a test jail. ... Tried to restart the jail it went fine, but now I can't jexec in to the ... When you restart a jail it's jid changes. ...
    (freebsd-questions)