*BSD News Article 58740


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!gatech!newsfeed.internetmci.com!EU.net!Austria.EU.net!news.aut.alcatel.at!atusc74!ladavac
From: ladavac@aut.alcatel.at (Marino Ladavac)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: ioperm call on FreeBSD?
Date: 11 Jan 1996 15:21:22 GMT
Organization: Alcatel Austria AG
Lines: 19
Message-ID: <4d39ti$1rh@atusks02.aut.alcatel.at>
References: <DKEMoG.C19@midway.uchicago.edu> <4c49he$f8v@uriah.heep.sax.de> <4c4hcm$ur@prds-grn.demon.co.uk> <4c8ifo$30e@uriah.heep.sax.de> <4cj6sb$gip@atusks02.aut.alcatel.at> <4cmcll$eli@uriah.heep.sax.de>
NNTP-Posting-Host: atusc74.aut.alcatel.at
X-Newsreader: TIN [version 1.2 PL2]

J Wunsch (j@uriah.heep.sax.de) wrote:
: ladavac@aut.alcatel.at (Marino Ladavac) writes:

: > iomem access control being granted through a special file makes it
: > possible for the program to execute setgid iomem, rather than setuid
: > root, even though the point is moot since the iomem hole is big
: > enough to allow the program programmed io to the disc...  Still,
: > cosmetically speaking :)

: Iomem acces _is_ granted through a special file, and it's up to you to
: create a group iomem for it.

I know :)

That's the reason I like this (FreeBSD) approach better than Linux' iopl()
or whatever it is syscall which checks if your UID or EUID are zero.

/Alby