From owner-freebsd-questions Fri Feb 2 9:24:44 2001 Delivered-To: freebsd-questions@freebsd.org Received: from siafu.iconnect.co.ke (upagraha.iconnect.co.ke [209.198.248.2]) by hub.freebsd.org (Postfix) with ESMTP id C3E3B37B6A2 for ; Fri, 2 Feb 2001 09:24:19 -0800 (PST) Received: from [64.110.74.50] (helo=poeza.iconnect.co.ke) by siafu.iconnect.co.ke with esmtp (Exim 2.12 #1) id 14Ojus-000L0z-00; Fri, 2 Feb 2001 20:22:36 +0300 Received: from wash by poeza.iconnect.co.ke with local (Exim 3.20 #1) id 14Ojwq-000LWl-00; Fri, 02 Feb 2001 20:24:36 +0300 Date: Fri, 2 Feb 2001 20:24:36 +0300 From: Odhiambo Washington To: Mike Meyer Cc: FBSD-Q Subject: Re: kern.securelevel changes? Message-ID: <20010202202436.B82567@poeza.iconnect.co.ke> Mail-Followup-To: Odhiambo Washington , Mike Meyer , FBSD-Q References: <92820033@toto.iv> <14970.59812.328312.718346@guru.mired.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <14970.59812.328312.718346@guru.mired.org>; from "Mike Meyer" on Fri, Feb 02, 2001 at 11:08:52AM -0600 X-Operating-System: FreeBSD poeza.iconnect.co.ke 4.2-STABLE FreeBSD 4.2-STABLE X-Mailer: Mutt http://www.mutt.org/ X-Location: Mombasa, KE, East Africa Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Mike Meyer [20010202 20:10]: writing on the subject 'Re: kern.securelevel changes?' Mike> Omer Faruk Sen types: Mike> > hi. Mike> > Is there a document that explains all changes when I Mike> > switch my kern.securelevel from -1 to 0 or at the same Mike> > time switch it from 0 to +1? Mike> Mike> The init man page. Mike> Mike> > I want to make my users just to see their own process Mike> > not other?How can I obtain that?I was thinking that it Mike> > was about kern.securelevel but I did -1 --> 0 and Mike> > nothing has changed users still can see other Mike> > processes Mike> Mike> Well, someone claimed there was a sysctl to do that, but I don't see Mike> how, as ps reads kernel virtual memory, and once you can do that, you Mike> can read the info for any process, not just your own. Mike, then in that case how does an ordinary user circumvent this one: kern.ps_showallprocs=0 With it I can see only my own processes.... wash:~$ ps -auxw | more USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 1318 1.7 7.8 14848 12512 ?? S Thu08PM 102:27.21 /usr/X11R6/bin/X :0 (XF86_S3V) wash 1312 0.0 0.1 628 152 v1 I+ Thu08PM 0:00.01 /bin/sh /usr/X11R6/bin/startx wash 1317 0.0 0.5 2072 820 v1 I+ Thu08PM 0:00.01 xinit /home/wash/.xinitrc -- wash 1321 0.0 0.1 624 152 v1 I Thu08PM 0:00.02 /bin/sh /usr/local/bin/startkde wash 1343 0.0 2.9 16308 4688 ?? S Thu08PM 0:00.24 kdeinit: dcopserver (kdeinit) wash 1345 0.0 3.4 16504 5356 ?? I Thu08PM 0:00.12 kdeinit: klauncher (kdeinit) wash 1347 0.0 4.6 17740 7348 ?? S Thu08PM 0:50.06 kdeinit: kdesktop (kdeinit) wash 1349 0.0 3.1 16252 4964 ?? S Thu08PM 2:07.57 kdeinit: kded (kdeinit) wash 1357 0.0 3.1 16336 4984 ?? I Thu08PM 0:00.02 kdeinit: kxmlrpcd (kdeinit) wash 1365 0.0 5.1 18436 8224 ?? S Thu08PM 1:07.43 kdeinit: kicker (kdeinit) Mike> Mike> -- Mike> Mike Meyer http://www.mired.org/home/mwm/ Mike> Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. Mike> Mike> Mike> To Unsubscribe: send mail to majordomo@FreeBSD.org Mike> with "unsubscribe freebsd-questions" in the body of the message -Wash -- Odhiambo Washington Inter-Connect Ltd., wash@iconnect.co.ke 5th Flr Furaha Plaza Tel: 254 11 222604 Nkrumah Rd., Fax: 254 11 222636 PO Box 83613 MOMBASA, KE. Into each life some rain must fall, some days must be dark and dreary. -Henry Wadsworth Longfellow To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message