will --cmd-owner ever return?
Hello,
Since kernel 2.6.15, command owner matching is gone (-m owner --cmd-owner). I consider this match vital for securing a workstation. Programs are calling home (including well known very free source ones), emails contain all kinds of tricks to report back (some of them I cannot delete unseen), some programs are simply too insecure to be alowed to connect to some server (e.g. media players), and often I simply want my workstation to be absolutely quiet (except when I specificly ask for something).
How can I lock my workstation down on application level? Please tell me Netfilter can do this. Or can't it?
Quoted 1 line · vwf
How can I lock my workstation down on application level?
tuxguardian.sf.net
-Tom
Signature · 4 lines
Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ [email protected] PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key
If a connection is established, then you can find the owner by comparing the inode in /proc/net/tcp with the /proc/<PID> tree [all the numbered folders]. In each of these there is a folder named fd which provides symbolic links to the open file descriptors which that PID is using. a quick ls -l will give you the information you need to resolve it to a socket inode, you'll usually see socket:[32424] or something similar. You then know which PID owns the conection. I have some python code which resolves this all to program names if you want it?
Quoted 10 lines · Tom Eastep
Quoted 2 lines · vwf
How can I lock my workstation down on application level?
tuxguardian.sf.net
-Tom
Quoted 3 lines · tom
If a connection is established, then you can find the owner by comparing the inode in
/proc/net/tcpwith the /proc/<PID> tree [all the numbered folders].
That's not really atomic.
Jan