[vserver] netstat like openwall

About this list Date view Thread view Subject view Author view Attachment view

From: Mihai RUSU (dizzy_at_roedu.net)
Date: Tue Feb 26 2002 - 09:57:36 EST


Hi

Im curently testing 2.4.17ctx-7 with vserver 0.10. While playing this this
I have noticed 2 issues:
- netstat -an reports all connections no matter the curently selected
context
- /sbin/ifconfig shows eth0 for the physical eth device (without any ip)
and my chipv4 ip as a ip alias (eth0:1)

For the first issue I think there can be done a quick hack based on the
sources of openwall patch (www.openwall.org) as follows:
- openwall kernels show on netstat only the connections which belong to
the current userid
- I guess they have a check like current->owner == netstat->conn->owner
and that could be done for vserver as current->s_context ==
netstat->conn->s_context :) (well pseudo code that is)

The second issue doesnt matter.

----------------------------
Mihai RUSU

Disclaimer: Any views or opinions presented within this e-mail are solely
those of the author and do not necessarily represent those of any company,
unless otherwise specifically stated.


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.4 : Mon Aug 19 2002 - 12:01:01 EDT