Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!news.Hawaii.Edu!ames!hookup!news.kei.com!MathWorks.Com!europa.eng.gtefsd.com!swiss.ans.net!news.dfn.de!Germany.EU.net!EU.net!uunet!psinntp!psinntp!NetVision.net.il!Burka.NetVision.net.il!gena From: gena@Burka.NetVision.net.il (Gennady Sorokopud) Newsgroups: comp.os.386bsd.questions Subject: Re: Interesting XF86-3.1 problem. Date: 11 Oct 1994 08:29:05 GMT Organization: NetVision USENET Site. Lines: 51 Message-ID: <37dich$q3t@NS.netvision.net.il> References: <mgoveCxC5p2.4H5@netcom.com> <379fg5$22i@pdq.coe.montana.edu> NNTP-Posting-Host: burka.netvision.net.il X-Newsreader: TIN [version 1.2 PL2] Nate Williams (nate@bsd.coe.montana.edu) wrote: : In article <mgoveCxC5p2.4H5@netcom.com>, : Matthew E. Gove <mgove@netcom.com> wrote: : > : > I've encountered an interesting bug/feature of XFree86-3.1 on : >FreeBSD-1.1.5.1. If you run xload as a normal user, it dies with the : >error 'xload: couldn't obtain load average X?oeXS'. Now, here's the really : >interesting part. If you are 'root', it works fine. xload perms are: : >-rwsr-xr-x 1 root kmem 12288 Sep 28 10:08 /usr/X11R6/bin/xload : > : >I'm stumped on this one... : Check the permissions on /dev/mem and friends. It is also possible that : the xload in 3.1 doesn't do setuid/seteuid stuff handling correctly for : FreeBSD. I checked the sources and it simply does: setuid(getuid()); setgid(getgid()); And claims that it's for security reasons!!! I removed the second line ( about the gid's ) and it started to work fine for normal users too. ( Maybe there is a better way to do that but i didn't had much time to hack it ) : Nate : -- : nate@bsd.coe.montana.edu | FreeBSD core member and all around tech. : nate@cs.montana.edu | weenie. : work #: (406) 994-4836 | : home #: (406) 586-0579 | Available for contract/otherwise work. -- OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO O Gennady Sorokopud O O System Programmer at NetVision Israel O O Home of Israeli Internet O O E-Mail: gena@netvision.net.il Fax: 972-4-550-122 O O genas@netmanage.co.il O O http: http://www.netvision.net.il/~gena/ O O Tel: work: 972-4-550-123 Address: Sharet st. 21/7 O O home: 972-4-835-227 K. Tivon , Israel O OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO -----BEGIN PGP PUBLIC KEY BLOCK----- Version: 2.6 mQBNAi43i2YAAAECANV6d3p8bQLR6Hr2tyd9f4FEUakUIbF0YOtsiil3hR/ebGRe y4EC2Y45ZS7VPiP8Pp8zyAinWEtJ/tBKBYoHdPEABRG0LEdlbm5hZHkgQi4gU29y b2tvcHVkIDxnZW5hQG5ldHZpc2lvbi5uZXQuaWw+ =bvR+ -----END PGP PUBLIC KEY BLOCK-----