Re: procfs in OpenBSD

2009-09-26 Thread Mauro Rezzonico

o?= wrote:

I failed googling about this topic. Any help please? :D :D :D :D


procfs is the unix port of a /Plan9/ Design priciple: everything should 
be like a file.

You can find A LOT of information here: http://plan9.bell-labs.com/plan9/

--
Mauro Rezzonico ma...@ch23.org, Como, Italia
Maybe this world is another planet's hell - H.Huxley



Re: procfs in OpenBSD

2009-09-25 Thread frantisek holop
hmm, on Tue, Sep 22, 2009 at 10:26:48PM -0400, Ted Unangst said that
 2009/9/22 Sergio Andris Gsmez del Real sergio.g.delr...@gmail.com:
  maybe a little reference would be great, cause very little or non
 literature
  is found about OpenBSD implementation... (or maybe I'm struggling
  searching). I just wanna say I'm loving the system (and the phylosophy).
 
 The OpenBSD implementation of procfs was written/donated to BSD 15
 years ago, back when it was still at Berkeley.  In OpenBSD, it has
 barely changed since, and isn't really maintained or supported, so
 there's not much else to say about it.

not to stir shit as Nic calls it, but openbsd was always swift
to remove unused bit rotting stuff.  what's the deal with procfs?

if it's use is far from recommended, indeed rather forbidden,
why is it left to rot?

-f
-- 
our world: a 8000 mile in diameter spherical pile of dirt.



Re: procfs in OpenBSD

2009-09-25 Thread Bob Beck
 if it's use is far from recommended, indeed rather forbidden,
 why is it left to rot?

It is left there for historical reasons, because some old applications
may use it.

For new applications we do not use it, but prefer to use a properly
designed sysctl or ioctl
interface to retrieve information from the kernel.



Re: procfs in OpenBSD

2009-09-25 Thread Matthew Szudzik
On Fri, Sep 25, 2009 at 04:34:20PM +0200, frantisek holop wrote:
 to remove unused bit rotting stuff.  what's the deal with procfs?
 
 if it's use is far from recommended, indeed rather forbidden,
 why is it left to rot?

It's necessary for compat_linux.  See the man page.



Re: procfs in OpenBSD

2009-09-25 Thread Marco Peereboom
I wouldn't miss it...

On Fri, Sep 25, 2009 at 08:49:15AM -0600, Bob Beck wrote:
  if it's use is far from recommended, indeed rather forbidden,
  why is it left to rot?
 
 It is left there for historical reasons, because some old applications
 may use it.
 
 For new applications we do not use it, but prefer to use a properly
 designed sysctl or ioctl
 interface to retrieve information from the kernel.



Re: procfs in OpenBSD

2009-09-25 Thread Theo de Raadt
 if it's use is far from recommended, indeed rather forbidden,
 why is it left to rot?

It is left there for historical reasons, because some old applications
may use it.

For new applications we do not use it, but prefer to use a properly
designed sysctl or ioctl
interface to retrieve information from the kernel.

The major reason for moving away from procfs is that there are
numerous TOCTOU problems.



Re: procfs in OpenBSD

2009-09-25 Thread frantisek holop
hmm, on Fri, Sep 25, 2009 at 03:01:18PM +, Matthew Szudzik said that
 On Fri, Sep 25, 2009 at 04:34:20PM +0200, frantisek holop wrote:
  to remove unused bit rotting stuff.  what's the deal with procfs?
  
  if it's use is far from recommended, indeed rather forbidden,
  why is it left to rot?
 
 It's necessary for compat_linux.  See the man page.

certainly not all of it.  i am using compat_linux without it.
but yes, i can imagine it might be used there.

-f
-- 
down with TLAs! (three letter acronyms)



Re: procfs in OpenBSD

2009-09-25 Thread frantisek holop
hmm, on Fri, Sep 25, 2009 at 02:44:07PM -0600, Theo de Raadt said that
 The major reason for moving away from procfs is that there are
 numerous TOCTOU problems.

out of curiousity, in principle, what is the difference between
accessing a through /procfs and the same value through sysctl,
and/or kernel memory?  isn't procfs just a window to peek at those
values?

also, don't the other systems care about these TOCTTOU problems?
or they do it in a correct, secure way?

-f
-- 
reality is just another illusion.



Re: procfs in OpenBSD

2009-09-25 Thread Theo de Raadt
hmm, on Fri, Sep 25, 2009 at 02:44:07PM -0600, Theo de Raadt said that
 The major reason for moving away from procfs is that there are
 numerous TOCTOU problems.

out of curiousity, in principle, what is the difference between
accessing a through /procfs and the same value through sysctl,
and/or kernel memory?  isn't procfs just a window to peek at those
values?

no.

also, don't the other systems care about these TOCTTOU problems?
or they do it in a correct, secure way?

what happens if you read procfs files byte by byte, with sleeps
between?



Re: procfs in OpenBSD

2009-09-23 Thread Joachim Schipper
On Tue, Sep 22, 2009 at 10:26:48PM -0400, Ted Unangst wrote:
 2009/9/22 Sergio Andris Gsmez del Real sergio.g.delr...@gmail.com:
  maybe a little reference would be great, cause very little or non
 literature
  is found about OpenBSD implementation... (or maybe I'm struggling
  searching). I just wanna say I'm loving the system (and the phylosophy).
 
 The OpenBSD implementation of procfs was written/donated to BSD 15
 years ago, back when it was still at Berkeley.  In OpenBSD, it has
 barely changed since, and isn't really maintained or supported, so
 there's not much else to say about it.

In other words, don't start with procfs if you want to understand what
OpenBSD does.

if you can make it clearer what you want to study, people may be able to
give more helpful advice than don't do this.

Joachim



Re: procfs in OpenBSD

2009-09-22 Thread Sergio Andrés Gómez del Real
Hi.
Sorry about the late response.

I do know what problem am having and what exactly I want, sorry didn't post
my original intention.

I would like to know more about procfs implemention in OpenBSD, not just
knowing how to mount it... That's what I refered to when I said didn't have
success while googling (or something like that). I mounted procfs manually
after started (and obviously processes already started). I'm a bit lost
cause went to /proc and all processes where there, but files where empty.
I'm pretty noob at hacking the kernel (really, all i've done is trying to
figure out how can I make a switch to my 3G modem, not yet supported in the
kernel (ZTE-626)). So, finally, I would just like to know how things really
work, but not willing to just post here and wait for someone to explain me;
maybe a little reference would be great, cause very little or non literature
is found about OpenBSD implementation... (or maybe I'm struggling
searching). I just wanna say I'm loving the system (and the phylosophy).



 Great, now we have another user doing stuff without understanding why.
  Even better, it's with procfs, which none of the developers want to
 touch.

 To the original poster: I suggest you figure out what problem you're
 trying to solve now, while you're thinking about it instead of later,
 when some problem with procfs kicks you in the teeth while you're
 under a deadline.


 Philip Guenther



Re: procfs in OpenBSD

2009-09-22 Thread Sergio Andrés Gómez del Real
Hi.
Sorry about the late response.

I do know what problem am having and what exactly I want, sorry didn't post
my original intention.

I would like to know more about procfs implemention in OpenBSD, not just
knowing how to mount it... That's what I refered to when I said didn't have
success while googling (or something like that). I mounted procfs manually
after started (and obviously processes already started). I'm a bit lost
cause went to /proc and all processes where there, but files where empty.
I'm pretty noob at hacking the kernel (really, all i've done is trying to
figure out how can I make a switch to my 3G modem, not yet supported in the
kernel (ZTE-626)). So, finally, I would just like to know how things really
work, but not willing to just post here and wait for someone to explain me;
maybe a little reference would be great, cause very little or non literature
is found about OpenBSD implementation... (or maybe I'm struggling
searching). I just wanna say I'm loving the system (and the phylosophy).



Re: procfs in OpenBSD

2009-09-22 Thread Ted Unangst
2009/9/22 Sergio Andris Gsmez del Real sergio.g.delr...@gmail.com:
 maybe a little reference would be great, cause very little or non
literature
 is found about OpenBSD implementation... (or maybe I'm struggling
 searching). I just wanna say I'm loving the system (and the phylosophy).

The OpenBSD implementation of procfs was written/donated to BSD 15
years ago, back when it was still at Berkeley.  In OpenBSD, it has
barely changed since, and isn't really maintained or supported, so
there's not much else to say about it.



Re: procfs in OpenBSD

2009-09-21 Thread Daniel Bolgheroni
On Sat, 19 Sep 2009, Sergio Andr?s G?mez del Real wrote:

 Hi.
 
 I failed googling about this topic. Any help please? :D :D :D :D

This?

# mount -t procfs /proc /proc

Teers,

--
Daniel Bolgheroni
FEI - Faculdade de Engenharia Industrial
http://www.dbolgheroni.eng.br/mykey

ASCII ribbon campaign ( )
 against HTML e-mail   X
  / \



Re: procfs in OpenBSD

2009-09-21 Thread Philip Guenther
2009/9/20 Daniel Bolgheroni m...@dbolgheroni.eng.br:
 On Sat, 19 Sep 2009, Sergio Andr?s G?mez del Real wrote:
 I failed googling about this topic. Any help please? :D :D :D :D

 This?

 # mount -t procfs /proc /proc

Great, now we have another user doing stuff without understanding why.
 Even better, it's with procfs, which none of the developers want to
touch.

To the original poster: I suggest you figure out what problem you're
trying to solve now, while you're thinking about it instead of later,
when some problem with procfs kicks you in the teeth while you're
under a deadline.


Philip Guenther



Re: procfs in OpenBSD

2009-09-20 Thread Paige Thompson
yeah what problem  :D :D :D :D :D

On Sat, Sep 19, 2009 at 6:54 PM, Marco Peereboom sl...@peereboom.us wrote:

 what problem are you trying to solve?

 On Sat, Sep 19, 2009 at 08:38:48PM -0500, Sergio Andr?s G?mez del Real
 wrote:
  Hi.
 
  I failed googling about this topic. Any help please? :D :D :D :D



Re: procfs in OpenBSD

2009-09-20 Thread Jim Willis
U what?

On Sun, Sep 20, 2009 at 12:08 AM, Paige Thompson erra...@devel.ws wrote:

 yeah what problem  :D :D :D :D :D

 On Sat, Sep 19, 2009 at 6:54 PM, Marco Peereboom sl...@peereboom.us
 wrote:

  what problem are you trying to solve?
 
  On Sat, Sep 19, 2009 at 08:38:48PM -0500, Sergio Andr?s G?mez del Real
  wrote:
   Hi.
  
   I failed googling about this topic. Any help please? :D :D :D :D



Re: procfs in OpenBSD

2009-09-19 Thread Rafael Ferreira Neves
Manual page description of mount_procfs(8)

http://www.openbsd.org/cgi-bin/man.cgi?query=mount_procfssektion=8apropos=0
manpath=OpenBSD+Currentarch=i386


2009/9/19 Sergio Andris Gsmez del Real sergio.g.delr...@gmail.com:
 Hi.

 I failed googling about this topic. Any help please? :D :D :D :D



Re: procfs in OpenBSD

2009-09-19 Thread Marco Peereboom
what problem are you trying to solve?

On Sat, Sep 19, 2009 at 08:38:48PM -0500, Sergio Andr?s G?mez del Real wrote:
 Hi.
 
 I failed googling about this topic. Any help please? :D :D :D :D



procfs and OpenBSD 4.0

2007-03-08 Thread Linden Varley
I've re-compiled the kernel with option procfs and I still get the 
error mount_procfs: /proc: Filesystem not supported by kernel when 
mounting.


What else could I be missing ?

Cheers,
Linden.