re: procfs in 5.4

2005-05-24 Thread martinko

hi,

i've been wondering long time what's the actual state of procfs in freebsd.

yes, i added procfs line to fstab but i do not mount it automatically at
system startup.
yet i'm still able to use ps(1) unlike the originator of this thread.
how come?

i believe i've read somewhere that (use of) procfs was dropped or
something and freebsd does not use it anymore. if so, i'm asking why and
then why did the originator of this thread have problem running ps(1)
without procfs mounted?

many thanks for clearing this.

regards,

martin

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: procfs in 5.4

2005-05-24 Thread Kris Kennaway
On Tue, May 24, 2005 at 07:50:47PM +0200, martinko wrote:
 hi,
 
 i've been wondering long time what's the actual state of procfs in freebsd.
 
 yes, i added procfs line to fstab but i do not mount it automatically at
 system startup.
 yet i'm still able to use ps(1) unlike the originator of this thread.
 how come?

It's recommended not to use it unless you need to (at least on systems
with untrusted users) because of the history of local security
vulnerabilities.

 i believe i've read somewhere that (use of) procfs was dropped or
 something and freebsd does not use it anymore. if so, i'm asking why and
 then why did the originator of this thread have problem running ps(1)
 without procfs mounted?

ps doesn't use (and never did use, afaik) procfs for normal operation.
There is one function of ps that needs procfs, which is what the
original poster was enquiring about.

Kris


pgpTegUe2T8ho.pgp
Description: PGP signature


Re: procfs in 5.4

2005-05-22 Thread Tobias Fendin

Chris Radlinski wrote:


I should have procfs.  However, my /proc directory is empty.

What gives?
 


You have to mount it. Add this line to /etc/fstab:

proc/proc   procfs  rw 0 0

And then run:

mount /proc

You might also check out the man-page: procfs(9)


   //Tobias
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: procfs in 5.4

2005-05-22 Thread Vizion
On Saturday 21 May 2005 21:56,  the author Chris Radlinski contributed to the 
dialogue on procfs in 5.4:
 I'm running 5.4 Release.  Whenever I run 'ps -ef' I get this message:

 ps: Process environment requires procfs(5)

 My kernel config contains these two lines:

 options PROCFS  # Process filesystem (requires
 PSEUDOFS)
 options PSEUDOFS# Pseudo-filesystem framework

 I should have procfs.  However, my /proc directory is empty.

 What gives?

 This can be accomplished
by adding the following line to your /etc/fstab file:

 linprocfs   /compat/linux/proc   linprocfs   rw   0  0

and then, as root, executing the commands:

kldload linprocfs
mount /compat/linux/proc


-- 
40 yrs navigating and computing in blue waters.
English Owner  Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing May bound for Europe via Panama Canal.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: procfs in 5.4

2005-05-22 Thread Chris Radlinski
That fixed it.  Thanks.

Chris





Tobias Fendin wrote:

You have to mount it. Add this line to /etc/fstab:

proc/proc   procfs  rw 0 0

And then run:

mount /proc

You might also check out the man-page: procfs(9)


//Tobias


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: procfs in 5.4

2005-05-22 Thread Kris Kennaway
On Sat, May 21, 2005 at 11:56:30PM -0500, Chris Radlinski wrote:
 I'm running 5.4 Release.  Whenever I run 'ps -ef' I get this message:
 
 ps: Process environment requires procfs(5)
 
 My kernel config contains these two lines:
 
 options PROCFS  # Process filesystem (requires
 PSEUDOFS)
 options PSEUDOFS# Pseudo-filesystem framework
 
 I should have procfs.  However, my /proc directory is empty.
 
 What gives?

Did you *mount* procfs in that directory?  See the manpage.

Kris
 

pgpy8X5xViYFA.pgp
Description: PGP signature


Re: procfs in 5.4

2005-05-22 Thread Chris Radlinski
That was it.  Thanks.

Chris

On Sun, 2005-05-22 at 12:26 -0700, Kris Kennaway wrote:
 On Sat, May 21, 2005 at 11:56:30PM -0500, Chris Radlinski wrote:
  I'm running 5.4 Release.  Whenever I run 'ps -ef' I get this message:
  
  ps: Process environment requires procfs(5)
  
  My kernel config contains these two lines:
  
  options PROCFS  # Process filesystem (requires
  PSEUDOFS)
  options PSEUDOFS# Pseudo-filesystem framework
  
  I should have procfs.  However, my /proc directory is empty.
  
  What gives?
 
 Did you *mount* procfs in that directory?  See the manpage.
 
 Kris
  

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PROCFS

2004-08-18 Thread Garance A Drosihn
At 10:08 PM -0700 8/17/04, Kris Kennaway wrote:
On Tue, Aug 17, 2004 at 09:14:06PM -0700, Dennis George wrote:
 Hi all,
  Can I disable PROCFS (through kernel configuration[sysctl/GENERIC] )
   in freeBSD
Yes.  It's clear from the GENERIC config how to do this
(remove the entry)).
Is there also some entry needed in /etc/fstab?  I do PROCFS
and PSEUDOFS, but I do not have a proc filesystem.  If the
filesystem is not mounted, is there any risk from it?
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PROCFS

2004-08-17 Thread Kris Kennaway
On Tue, Aug 17, 2004 at 09:14:06PM -0700, Dennis George wrote:
 Hi all,
  
 Can I disable PROCFS (through kernel configuration[sysctl/GENERIC] ) in freeBSD

Yes.  It's clear from the GENERIC config how to do this (remove the entry)).

  If yes then what will the effect of this ???
  
 I mean to say that, do we really need the PROCFS ?

No, unless you run the one or two applications that require it.

  If I disable it will I get any improvement in system performance in terms of speed ?

No.  It is better for security on a multi-user system though since
procfs has had a lot of security vulnerabilities over time, so there
may be more.

Kris



pgpZfegvp0NCr.pgp
Description: PGP signature