Linux 2.2.11 problem

Normal user don’t have acces to /dev/mem so either switch fulscreen off
or allow any user to write to /dev/mem. This is needed for DGA

Karsten-Olaf Laux wrote:>

Hi,

after upgrading to kernel 2.2.11 I get the following error when starting my
SDL-0.10 application:

XF86DGAGetVideo: failed to open /dev/mem (Die Operation ist nicht erlaubt)

but :
[klaux at smartie forge-install]$ ls -l /dev/mem
crw-rw-rw- 1 root kmem 1, 1 May 5 1998 /dev/mem

My application does not want to switch to fullscreen !
Running it as root works. And with kernel 2.2.5 it worked as normal user as
well in windowed mode and fullscreen.

Could someone give me a hint, what is going wrong here ?!


Karsten-O. Laux
klaux at student.uni-kl.de
http://www.rhrk.uni-kl.de/~klaux

Hi,

after upgrading to kernel 2.2.11 I get the following error when starting my
SDL-0.10 application:

XF86DGAGetVideo: failed to open /dev/mem (Die Operation ist nicht erlaubt)

but :
[klaux at smartie forge-install]$ ls -l /dev/mem
crw-rw-rw- 1 root kmem 1, 1 May 5 1998 /dev/mem

My application does not want to switch to fullscreen !
Running it as root works. And with kernel 2.2.5 it worked as normal user as
well in windowed mode and fullscreen.

Could someone give me a hint, what is going wrong here ?!–
Karsten-O. Laux
klaux at student.uni-kl.de
http://www.rhrk.uni-kl.de/~klaux

He does have user read/write permission to /dev/mem.

Karl Bartel wrote:

Normal user don’t have acces to /dev/mem so either switch fulscreen off
or allow any user to write to /dev/mem. This is needed for DGA

Karsten-Olaf Laux wrote:
[snip]> > [klaux at smartie forge-install]$ ls -l /dev/mem

crw-rw-rw- 1 root kmem 1, 1 May 5 1998 /dev/mem


Frank J. Ramsay, Software Engineer - Epsilon Data Management
fjr at epsilon.com
framsay at epsilon.com

Genetic Engineering: (noun) Proactive Evolution.

on Don, 26 Aug 1999 Frank Ramsay wrote:

He does have user read/write permission to /dev/mem.

yepp, and I do not want ro run a fullscreen app.>Karl Bartel wrote:

Normal user don’t have acces to /dev/mem so either switch fulscreen off
or allow any user to write to /dev/mem. This is needed for DGA

Karsten-Olaf Laux wrote:
[snip]

[klaux at smartie forge-install]$ ls -l /dev/mem
crw-rw-rw- 1 root kmem 1, 1 May 5 1998 /dev/mem


Frank J. Ramsay, Software Engineer - Epsilon Data Management
fjr at epsilon.com
framsay at epsilon.com

Genetic Engineering: (noun) Proactive Evolution.

Karsten-O. Laux
klaux at student.uni-kl.de
http://www.rhrk.uni-kl.de/~klaux

If you don’t want to run in fullscreen mode then don’t include the flag
SDL_FULLSCREEN in the call to SDL_SetVideoMode.

		-fjr

Karsten-Olaf Laux wrote:>

on Don, 26 Aug 1999 Frank Ramsay wrote:

He does have user read/write permission to /dev/mem.

yepp, and I do not want ro run a fullscreen app.

Karl Bartel wrote:

Normal user don’t have acces to /dev/mem so either switch fulscreen off
or allow any user to write to /dev/mem. This is needed for DGA

Karsten-Olaf Laux wrote:
[snip]

[klaux at smartie forge-install]$ ls -l /dev/mem
crw-rw-rw- 1 root kmem 1, 1 May 5 1998 /dev/mem


Frank J. Ramsay, Software Engineer - Epsilon Data Management
fjr at epsilon.com
framsay at epsilon.com

Genetic Engineering: (noun) Proactive Evolution.

Karsten-O. Laux
klaux at student.uni-kl.de
http://www.rhrk.uni-kl.de/~klaux

on Mon, 30 Aug 1999 Frank Ramsay wrote:

If you don’t want to run in fullscreen mode then don’t include the flag
SDL_FULLSCREEN in the call to SDL_SetVideoMode.

  	-fjr

hmmm, it seems that I haven’t put it clear:

Being a normal user I cannot run a SDL application using SDL 0.10 on a newly
build linux 2.2.11 kernel, regardless whether this application tries to
switch to fullscreen or not. I can only run SDL apps as root.

I am somehow curious since it seems that linux 2.2.11 forbids any user access
to /dev/mem, regardless of the set permissions. Has there been a security
hole fixed ? Has somebody else come across this problem ?
I am very sure that the kernel is causing this problem, since 2.2.9 worked fine
and I only changed the kernel.

PS: I have read the SDL docs, which are quite clear in my eyes, and I know
how to use SDL. ;)–
Karsten-O. Laux
klaux at student.uni-kl.de
http://www.rhrk.uni-kl.de/~klaux