Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

djberg96 (2603)

djberg96
  (email not shown publicly)

Journal of djberg96 (2603)

Monday September 15, 2003
11:41 AM

More /proc info

[ #14719 ]
Someone on IRC was kind enough to provide me with an account on an OpenBSD machine so I could toy with porting some of my code. I decided to start with reading process information.

Things haven't worked out so well. Some admins unmount /proc (or never mount it in the first place) as a security precaution. I'm not sure what this protects the system from given that ps is still available, but then I'm not a hacker.

So, reading from /proc is out. The next plan was to use the kvm libs, which looked simple enough. Unfortunately, attempting to use kvm_open() fails with "/dev/mem: Permission denied". So, if an admin is security conscious enough to disable /proc, they're probably going to prevent the use of kvm as well.

What I don't know is whether or not this is a typical setup for OpenBSD. I can always resort to parsing 'ps' - NOT.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.